Introduction
Before you begin, make sure you have Python and pip installed on your system. If you don’t have them yet, you can download them from the official Python website.
Files to Exclude Before Upload
ffmpeg
ffmpeg
This software is pre-installed in the Hostza environment, so there’s no need to include this folder in your project.
.venv
.venv
This folder contains the virtual environment for your project. Hostza provides an isolated environment, so this folder is not necessary.
pyproject.toml
pyproject.toml
While this file defines system build requirements and dependencies, Hostza uses
requirements.txt
for dependency management.poetry.lock
poetry.lock
Since Hostza currently does not support Poetry, this file should be excluded to avoid potential issues during deployment.
Why Exclude These Files?
There are several reasons to exclude and before uploading your project:ffmpeg
.venv
pyproject.toml
poetry.lock
Installation Consistency
Hostza creates a new environment for your project. Including these files is unnecessary and may lead to conflicts with cloud environment settings.
Up-to-Date Installations
The production environment will install the latest compatible versions of listed dependencies, providing a clean start for your application.
Reduced Upload Size
Leaving these files out reduces the upload file size, speeding up the upload process and making deployment more efficient.
Required Files
Two files are required to host your Python project on Hostza:main.py (Example main file)
main.py (Example main file)
Main application file for Hostza to initialize your project.
requirements.txt (Dependency File)
requirements.txt (Dependency File)
Your application’s dependency file for Hostza to read and install your project’s dependencies.