Skip to content

Python Project Setup ​

Base setup for a new Python project — virtual environment, requirements, gitignore, repo. The framework guides (Crawl4AI, FastAPI, Typer) all start from these steps.

Create new Python project ​

bash
mkdir zoonix.python
cd zoonix.python

Create virtual environment ​

bash
python3 -m venv .venv
source .venv/bin/activate

Add requirements ​

bash
pip freeze > requirements.txt

.gitignore ​

bash
echo '
.venv

# editors
/.idea/
/.vscode/' >> .gitignore

Stub script ​

bash
touch main.py

Create Repo ​

bash
gh repo create zoonix.python --private

Commit to repo ​

bash
git init
git add -A
git commit -m 'Initial Python setup'
git branch -M main
bash
git remote add origin git@github.com:zoonix/zoonix.python.git
bash
git push -u origin main