Assuming you have already installed Hostza and logged in. If you haven’t done so yet, you should check our login section. Hostza is a cloud computing platform known for its comprehensive support for various types of services. This article explores the Python features and support that Hostza provides.

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.
When preparing your Python project for deployment on Hostza, make sure to include the essential application files in a zip file.

Files to Exclude Before Upload

This software is pre-installed in the Hostza environment, so there’s no need to include this folder in your project.
This folder contains the virtual environment for your project. Hostza provides an isolated environment, so this folder is not necessary.
While this file defines system build requirements and dependencies, Hostza uses requirements.txt for dependency management.
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 application file for Hostza to initialize your project.
Your application’s dependency file for Hostza to read and install your project’s dependencies.

Uploading the Project to Hostza

After preparing your project files, you can now upload them to Hostza and host your project.