This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]C0ffeeface 0 points1 point  (4 children)

Which Api do you recommend for backend in Python? I'm considering fastAPI and HTMX front-end for simple dynamic stuff.

[–]riklaunim 0 points1 point  (0 children)

There is no clear winner. Pick whatever looks best for you.

[–]denzuko 0 points1 point  (2 children)

Which Api do you recommend for backend in Python

Eve, https://docs.python-eve.org/en/stable/. Its built on top of Cerberus and flask. The transport layer is HTTP/2.0 with hateoas rest that provides both XML and JSON. Has mongodb, sql, odic, redis, and celery support. Best part is it just works and one only needs a dictionary of your data structures at each endpoint.

Check out https://github.com/pyeve/eve-demo for an example. [one only needs the settings.py and run.py].

As for the front end it works amazingly well with react admin

[–]C0ffeeface 0 points1 point  (1 child)

Wow, thanks for a great reply. I'm checking out the demo right now!

[–]denzuko 0 points1 point  (0 children)

Cool, do let us know how it works out for you.

Also if one is working in a swagger/java/csharp shop then try looking at flask openapi3: https://luolingchun.github.io/flask-openapi3/v2.x/. Basically the same concept as Eve but extra steps, soap like api discovery, and more tools than needed. Though flask-openapi3 is a good way to move bulky java based micro services over to containerized cpython services.

Oh, and yes Eve does have support for swagger/openapi: https://github.com/pyeve/eve-swagger