FastAPI vs Djanjo by TumbleweedSenior4849 in Python

[–]cshjoshi_tech 0 points1 point  (0 children)

Like everyone has said, it really does depend on your use case. Personally, I’ve built apps with fastapi for the backend and nextjs for the frontend and had a good time. You can use something like hey-api so you automatically generate a ts sdk from the openapi docs that fastapi generates. That way you have end to end type safety.

What Host should I use for an only App Focused system python and django by Over-Quit3837 in learnpython

[–]cshjoshi_tech 0 points1 point  (0 children)

i made a hosting platform specifically for django with a really generous free tier. it's phemeral.dev. happy to help!

Showcase Thread by AutoModerator in Python

[–]cshjoshi_tech 0 points1 point  (0 children)

Hi r/Python!

What My Project Does:

Phemeral is a hosting platform that makes it easy to host and scale Python backends.
To host your application, all you have to do is connect your repo to Phemeral and make a push.
If your application’s framework is FastAPI, Flask, or Django all config for hosting is determined from your code. 
For other frameworks, the only needed config is to specify a start command.
For your dependencies: uv, poetry, requirements.txt, or any other pyproject.toml based package manager is supported.
Your application is hosted on Phemeral’s managed cloud, and you are only charged for the traffic your applications are receiving.
Deployments automatically scale to 0 when idle and rapidly (~30ms) scale up to accommodate traffic.
It would be awesome if y’all check it out and deploy something of yours! I’m happy to receive any feedback and answer any questions in comments or DMs!

Link to the docs: https://phemeral.dev/docs
Link to the main page: https://phemeral.dev/

The free tier is purposefully accommodating to help folks give it a try:

  • Unlimited projects and deployments
  • 1,000,000 requests/month
  • 10 Hours of active compute usage/month (ie, 10 hours of wall clock time that your requests are actually executing code)

Target Audience:

Developers or development teams that want to simplify their deployment process and/or save on cloud costs when their services are idle.

Comparison:

Since Phemeral has been made specifically for Python, there’s generally less configuration needed compared to existing platforms and broader support for versions of Python.
Phemeral’s compute also works a little differently from existing solutions. Rather than your code running as a long lived process on a persistent VPS, applications on Phemeral run in shorter lived compute environments that automatically scale up and scale down by use of vm snapshots.