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 pleasant and efficient experience.

👋 Welcome to the Stackhero documentation!

Stackhero offers a ready-to-use Python cloud solution that provides a host of benefits, including:

  • Deploy your application in seconds with a simple git push.
  • Use your own domain name and benefit from the automatic configuration of HTTPS certificates for enhanced security.
  • Enjoy peace of mind with automatic backups, one-click updates, and straightforward, transparent, and predictable pricing.
  • Get optimal performance and robust security thanks to a private and dedicated VM.

Save time and simplify your life: it only takes 5 minutes to try Stackhero's Python cloud hosting solution!

Creating a Python project is straightforward. Begin by creating a new directory for your project:

mkdir my_project
cd my_project

Next, set the Python version for your project (using the latest version) and initialize the Git repository:

asdf install python latest \
  && asdf local python latest

echo "__pycache__/" >> .gitignore

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

These steps will create a new Python project directory, configure the Python version, and initialize a Git repository with an initial commit, setting the foundation for your project's development.

We have initialized a local Git repository for your Python project, but we have not yet connected it to a remote repository hosting service.

To ensure the safety and version control of your project, it is highly recommended to create a project on your preferred repository hosting platform, such as GitLab, GitHub, or Bitbucket.

If you are looking for a Git repository hosting service, Stackhero offers GitLab cloud service that can be set up in just 2 minutes, running on a private and dedicated VM for maximum confidentiality and security, available in Europe or the USA depending on your choice.