A minimal example package for publishing to PyPI
Project description
hello-pypi
A minimal example Python package for learning how to build and publish to PyPI.
Install
pip install hello-pypi
Usage
from hello_pypi import greet
print(greet("PyPI"))
# Hello, PyPI!
Or use the CLI:
hello-pypi Alice
# Hello, Alice!
Development
# Create a virtual environment
python -m venv .venv
source .venv/bin/activate
# Install in editable mode with dev tools
pip install -e ".[dev]"
# Run tests
pytest
Build and publish (local, no GitHub needed)
pip install build twine
python -m build
twine check dist/*
# Test PyPI (recommended first)
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
# Production PyPI
twine upload dist/*
When prompted for credentials:
- Username:
__token__ - Password: your PyPI API token (starts with
pypi-)
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hello_pypi_finneganrainier-0.1.0.tar.gz.
File metadata
- Download URL: hello_pypi_finneganrainier-0.1.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08d26adc7be1ed7feb0f2424842cb5cc0e860a3ed1f155bb24c100f32c3a28ee
|
|
| MD5 |
de5b574fbc14790f0dd812f421e2b176
|
|
| BLAKE2b-256 |
9a15899af515d7d306473c634b17db9cc8fac9dce67dc13e8dbe8e7919580878
|
File details
Details for the file hello_pypi_finneganrainier-0.1.0-py3-none-any.whl.
File metadata
- Download URL: hello_pypi_finneganrainier-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec1df265aede5682225beddeef187a96e9c289cd5908a8c67c249fb54e2aa3e3
|
|
| MD5 |
02ad7d516df4ee44f694a1bdaea3ec61
|
|
| BLAKE2b-256 |
4c2ca6a44a60512f6b68a6fd8a8a36ed0e08ec1e8f2bd9ceb482d786e8cb2825
|