Python: Creating a Python project

This documentation is part of the Development platform guide. You can view the complete guide here: Prepare your development platform for a smooth and productive experience.

👋 Welcome to the Stackhero documentation!

Stackhero offers a ready-to-use Python cloud solution designed to simplify your deployments:

  • Deploy your application to production within seconds using a simple git push.
  • Use your own domain name, with automatic HTTPS certificate setup for secure connections managed on your behalf.
  • Take advantage of automatic backups, one-click updates, and predictable pricing, so you can focus on your code rather than infrastructure management.
  • Benefit from high performance and security on a private, dedicated infrastructure. Your environment is isolated and protected.

Save time and streamline your workflow: your code can be up and running with Stackhero's Python cloud hosting in just 5 minutes.

You can start a new Python project in just a few steps:

mkdir my_project
cd my_project

To set the Python version for this project and initialise a Git repository:

asdf install python latest \
  && asdf local python latest

echo "__pycache__/" >> .gitignore

git init
git add -A .
git commit -m "First commit"

These commands create a new directory, configure your Python version for the project, and start version control with an initial commit. You can begin development straight away.

A local Git repository has been initialised for your Python project, but it is not yet connected to a remote hosting service.

For reliable backups and easier collaboration, you can create a repository on platforms such as GitLab, GitHub, or Bitbucket.

If you are looking for a dedicated and secure Git hosting solution, Stackhero offers a GitLab cloud service running on private infrastructure in Europe or the USA. This option allows for rapid setup and ensures the confidentiality of your code.