> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hostza.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Python

Assuming you have already installed Hostza and logged in. If you haven't done so yet, you should check our [login](https://dash.hostza.org/auth/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

<Warning>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](https://www.python.org).</Warning>

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

<AccordionGroup>
  <Accordion title="ffmpeg">
    This software is pre-installed in the Hostza environment, so there's no need to include this folder in your project.
  </Accordion>

  <Accordion title=".venv">
    This folder contains the virtual environment for your project. Hostza provides an isolated environment, so this folder is not necessary.
  </Accordion>

  <Accordion title="pyproject.toml">
    While this file defines system build requirements and dependencies, Hostza uses `requirements.txt` for dependency management.
  </Accordion>

  <Accordion title="poetry.lock">
    Since Hostza currently does not support Poetry, this file should be excluded to avoid potential issues during deployment.
  </Accordion>
</AccordionGroup>

## Why Exclude These Files?

There are several reasons to exclude and before uploading your project: `ffmpeg` `.venv` `pyproject.toml` `poetry.lock`

<Steps>
  <Step title="Installation Consistency" icon={"cloud"}>
    Hostza creates a new environment for your project. Including these files is unnecessary and may lead to conflicts with cloud environment settings.
  </Step>

  <Step title="Up-to-Date Installations" icon={"server"}>
    The production environment will install the latest compatible versions of listed dependencies, providing a clean start for your application.
  </Step>

  <Step title="Reduced Upload Size" icon={"upload"}>
    Leaving these files out reduces the upload file size, speeding up the upload process and making deployment more efficient.
  </Step>
</Steps>

## Required Files

Two files are required to host your Python project on Hostza:

<AccordionGroup>
  <Accordion title="main.py (Example main file)">
    Main application file for Hostza to initialize your project.
  </Accordion>

  <Accordion title="requirements.txt (Dependency File)">
    Your application's dependency file for Hostza to read and install your project's dependencies.
  </Accordion>
</AccordionGroup>

## Uploading the Project to Hostza

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

<Frame>
  <img src="https://linkaisocial.com.br/files/235a26d5-6f25-4bec-a5ac-a9e6cd6d6311" />
</Frame>
