Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
The MOEX API have a lot of interesting data, at least for me, maybe for you is boring. For our use case, what I'm going to do is basically expose the data that you can use to make some candlestick charts. For this purpose I wrote a pretty simple Python client to interact with this API, you can find it here, is called moexiss.
Now for our docker image I use the Python3.9 image as the base image, honestly I tried to make other way at first. I tried to use a distroless container, but is a pain in the ass, really annoying. This is only with Python, with Golang images works like a charm, no complaining about that, but with Python man that's another story. The main problem that you will find is with uvicorn, no more comment on this matters, if you know how let me know.
FastAPI
Related posts
- Package your FastAPI application with “Distroless” Docker Images
- Recipe for using distroless container images with FastAPI
- How to Deploy a Fast API Application to a Kubernetes Cluster using Podman and Minikube
- Analysing FastAPI Middleware Performance
- Little Data: How do we query personal data? (2013)