Python: Creating a Python project
This documentation is part of the Development platform guide. View the full guide here: Prepare your development platform for a smooth and productive experience.
👋 Welcome to the Stackhero documentation!
Stackhero provides a ready-to-use Python cloud solution designed to streamline your deployment process:
- Deploy your application to production in seconds with a simple
git push.- Use your own domain name, with automatic HTTPS certificate configuration for secure connections handled for you.
- Rely on automatic backups, one-click updates, and predictable pricing, so you can focus on your code, not infrastructure management.
- Benefit from strong performance and security on a private, dedicated infrastructure. Your environment is isolated and protected.
Save time and simplify your workflow: you can have your code running with Stackhero's Python cloud hosting in just 5 minutes.
You can start a new Python project with just a few steps:
mkdir my_project
cd my_project
To set the Python version for this project and initialize 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 right away.
A local Git repository has been initialized for your Python project, but it is not yet connected to a remote hosting service.
For reliable backups and collaboration, you can create a repository on platforms like GitLab, GitHub, or Bitbucket.
If you need a dedicated and secure Git hosting solution, Stackhero provides a GitLab cloud service that runs on private infrastructure in Europe or the USA. This option offers fast setup and ensures confidentiality for your code.