News for hackers. Stuff that matters.
Re:Vercel Build Output API: Infrastructure-as-Filesystem by tedmiston on Friday July 22, 2022 @06:38PM (#32197936)
I tried their Python Runtime Beta semi-recently out of similar curiosity.

I expected the base Python use case to support common Python function deploy setups, say Flask, FastAPI / Starlette, etc.

It didn't seem like that's actually possible (if it is, the docs should mention it!)... and instead this is "Advanced Usage".

I really don't consider Hello World running in Flask to be "Advanced Usage".

But the alternative with the verbosity of using BaseHTTPRequestHandler with no framework is just nuts. Of course, no one is doing that on other platforms.

Python is still a second-class citizen on Vercel.

Heroku made this smooth... a decade ago... I really don't understand why Vercel doesn't make a serious investment in Python. It would unlock so much more potential for their platform. [Vercel, my email is in bio if you're listening ;).]

Re:Vercel Build Output API: Infrastructure-as-Filesystem by leerob on Friday July 22, 2022 @08:32PM (#32198893)
Sending you an email. I'd like to improve our Python on Vercel docs (lee at vercel.com if anyone else has Python feedback).
Re:Vercel Build Output API: Infrastructure-as-Filesystem by simonw on Friday July 22, 2022 @08:52PM (#32199036)
I've run Starlette apps and Flask apps on Vercel just fine. I wrote some notes here that you might find useful: https://til.simonwillison.net/zeit-now/python-asgi-on-now-v2
Re:Vercel Build Output API: Infrastructure-as-Filesystem by rmnclmnt on Friday July 22, 2022 @07:54PM (#32198597)
I have been using Vercel with Python for a few years now, it’s pretty good! Be it Flask, FastAPI or Datasette, it does the job pretty well. I admit there were some rough edges when it was still called Now but Python is now officially supported.
Re:Vercel Build Output API: Infrastructure-as-Filesystem by cercatrova on Friday July 22, 2022 @07:16PM (#32198268)
If you're looking for a Heroku like experience, I've heard good things about fly.io.