Search overlay panel for performing site-wide searches
Salesforce (Heroku) Named a Leader. Learn More!

Cloud platform for building Pythonic apps and APIs

The platform for Python that just works

Image for: The platform for Python that just works

Powerful Ecosystem

Build opinionated MVC web apps with Django, powerful APIs with FastAPI, or process background jobs with Celery. Run your apps with Gunicorn, Uvicorn, or any other ASGI/WSGI server – the choice is yours!

Python Support on Heroku

Fast Deploys

Deploy from Git, your CI system, or on every push to a branch on GitHub. Dependency installs are always consistent with your local environment thanks to transparent support for pip freeze.

Getting Started with Python

Easy Scaling

Heroku’s stateless architecture is ideal for horizontal scaling of services. Issue a command or drag a slider to add capacity. Using larger dynos? Gunicorn will auto-adjust the number of worker processes it spawns.

Scaling Your Dyno Formation

Get started now with Python on Heroku

Get started now with Python on Heroku

Image for: Get started now with Python on Heroku

from cloud import Example

Image for: from cloud import Example
  • Specify our application’s dependencies
  • Use Flask to respond to requests with ‘Hello World’
  • Add the start command to our Procfile
  • Initialize our local Git repository
  • Create and deploy our app to Heroku
  • We’re live, curl evening-journey-4009.herokuapp.com

View the Docs

Heroku gives you simple, easy ways to…

Image for: Heroku gives you simple, easy ways to…

Be in the Flow

Collaborating easily, testing early, and deploying often are all part of Heroku Flow: Heroku Pipelines streamline your workflow, Heroku Review Apps auto-deploy your PRs, Heroku CI tests anything you push to GitHub, and much more.

Continuous Delivery on Heroku

Architect and scale

The Heroku runtime makes it easy to deploy loosely coupled services that run in lightweight, isolated Linux containers known as dynos. The architecture of the Heroku platform encourages best practices that ensure durability and scalability.

Heroku Platform Principles

Extend and grow

Extend your app with relational databases like PostgreSQL or MySQL, leverage NoSQL data stores such as Redis® or MongoDB, stream events into Apache Kafka or an AMQP server, send emails, monitor your app – with 200+ add-ons, the possibilities are limitless.

Heroku Add-ons

Python on Heroku

Image for: Python on Heroku

“As the Zen of Python says, ‘Simple is better than complex’, and that’s what it’s like deploying Python applications to Heroku.”

Ed Morley

Python Language Owner

Download our Python haiku illustration

Image for: Download our Python haiku illustration

Enjoy the Heroku-created Python haiku illustration wallpaper for your desktop, tablet, and mobile screens.

Ready to Get Started?

Image for: Ready to Get Started?

Stay focused on building great data-driven applications and let Heroku tackle the rest.

Sign Up Now