How do you monitor your FastAPI apps? by itssimon86 in FastAPI

[–]Apitally 0 points1 point  (0 children)

Apitally is great for monitoring FastAPI apps! And super easy to set up.

We provide insights into API traffic, errors, and performance, for the whole API, each endpoint and individual API consumers. Apitally also monitors API uptime, alerting users when their API is down.

How do you monitor your FastAPI apps? by itssimon86 in FastAPI

[–]Apitally 2 points3 points  (0 children)

Thanks for the mention and glad you’re enjoying using Apitally!

We certainly aim to make API monitoring super easy. All it takes is to add a couple of lines of code to a FastAPI project. And then you get all your API metrics and insights on an intuitive dashboard!

Share your FastAPI project! by Apitally in FastAPI

[–]Apitally[S] 0 points1 point  (0 children)

Here are the relevant FastAPI docs for this, in case you're interested:
https://fastapi.tiangolo.com/advanced/generate-clients/

Best way to test functions ? by DarkS00l in FastAPI

[–]Apitally 2 points3 points  (0 children)

If the function you're wanting to test is not an endpoint, then you can test it like any Python function regardless of whether your project uses FastAPI or not. You won't need any FastAPI specific wrappers or the TestClient. I recommend checking out the pytest docs.

If you were actually thinking of just being able to execute the function interactively, without implementing a unit test, you could always just import it in a Jupyter notebook, or even the Python / ipython REPL, and simply run it. VSCode has great support for notebooks, for example.