Skip to content

y-sunflower/python-packaging-essentials

Repository files navigation

Python Packaging Essentials

The aim of this site it to provide all the must known practices when it comes to create a Python package. It offers multiple blog posts, where each of them covers one topic with a few key points. The goal here is to empower anyone with just basic Python knowledge.

The site is live here.



Progress

Post Section State
Intro to packaging Create a package
Organize a package Create a package
Handling dependencies Create a package
Unit tests Code quality
Writing documentation Code quality
Errors and warnings Code quality
API design Code quality
Github Actions Workflow
Pre-commit hooks Workflow
Publish to PyPI Workflow
Bonus Bonus



Contributing

Set up environment

In order to follow the steps below, you'll need to have Git, uv and Quarto installed on your machine.

git clone https://github.com/YourUsername/python-packaging-essentials.git
  • Create a new Git branch
git checkout -b branch-name
  • Set up your environment

MacOS/Unix-like

uv python install
uv sync
source .venv/bin/activate

Windows

uv python install
uv sync
.venv\Scripts\activate

Make changes

Each blog post lives in a Quarto file (.qmd). It's a mix of markdown and chunk of code.

You can preview locally your changes with:

quarto preview

If not done automatically, open your browser at http://localhost:4000/

About

Practical guide that walks you through creating, organizing, testing, and publishing Python packages.

Resources

Contributing

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages