Skip to main content

A sample Python project

Project description

My notes:

https://packaging.python.org/en/latest/tutorials/packaging-projects/#generating-distribution-archives

# update the pyproject.toml [project] name (to be the package name)
python3 -m pip install --upgrade build
# go to folder that contains pyproject.toml and run this:
python3 -m build

https://packaging.python.org/en/latest/tutorials/packaging-projects/#uploading-the-distribution-archives

python3 -m pip install --upgrade twine
# go folder containing dist and run this:
python3 -m twine upload --repository testpypi dist/*
python3 -m twine upload dist/*
python3 -m pip install [your-package]

A sample Python project

Python Logo

A sample project that exists as an aid to the Python Packaging User Guide's Tutorial on Packaging and Distributing Projects.

This project does not aim to cover best practices for Python project development as a whole. For example, it does not provide guidance or tool recommendations for version control, documentation, or testing.

The source for this project is available here.

The metadata for a Python project is defined in the pyproject.toml file, an example of which is included in this project. You should edit this file accordingly to adapt this sample project to your needs.


This is the README file for the project.

The file should use UTF-8 encoding and can be written using reStructuredText or markdown with the appropriate key set. It will be used to generate the project webpage on PyPI and will be displayed as the project homepage on common code-hosting services, and should be written for that purpose.

Typical contents for this file would include an overview of the project, basic usage examples, etc. Generally, including the project changelog in here is not a good idea, although a simple “What's New” section for the most recent version may be appropriate.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

example_package_hchiam-0.0.1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

example_package_hchiam-0.0.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file example_package_hchiam-0.0.1.tar.gz.

File metadata

File hashes

Hashes for example_package_hchiam-0.0.1.tar.gz
Algorithm Hash digest
SHA256 34e5d22902132c632bd2506db571d1bf718709e1956c8b57be0cd7db2e775414
MD5 4c52d3e4b93a56cf3886b4afb239ee5a
BLAKE2b-256 3f2c8301c7d66f719e04e0a78fb74f52e496a005dcd457fc5335ddaba1229680

See more details on using hashes here.

File details

Details for the file example_package_hchiam-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for example_package_hchiam-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ec8034c05be637d8982aeffd7735f66b9d6a7562c97c916799662b26912c0cb4
MD5 23577338732d3c946d6665c8b5b0fec7
BLAKE2b-256 3d2358b6677258080e2c1d21ef07271a209dd446f35f8b354a15be5f2024f81f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page