Search overlay panel for performing site-wide searches
Salesforce (Heroku) Named a Leader. Learn More!
Two intertwined, abstract shapes in blue and yellow against a red background.

Cloud platform for building Pythonic apps and APIs

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

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…

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

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

Man taking a selfie with a mountainous landscape in the background under a clear blue sky.

Ed Morley

Python Language Owner

Illustration of a blue snake with the words "Beautiful blue sky, bright sun, and airplanes moving, winding through the clouds" in its body.

Download our Python haiku illustration

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

Ready to Get Started?

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

Sign Up Now