learning-pypi-demo-nisimi

An educational Python package to demonstrate the PyPI publishing process. This package serves as a learning tool for understanding how to create, build, and publish Python packages to the Python Package Index (PyPI).
Features
- Installation Message: Displays "HELLO NEW PACKAGE" during pip installation
- Simple API: Includes a basic
hello() function for demonstration
- Hash-based Installation: Supports secure installation via
pip install -r requirements.txt --require-hashes
- Educational Purpose: Minimal codebase designed for learning PyPI publishing
Installation
Standard Installation
pip install learning-pypi-demo-nisimi
Hash-verified Installation
For secure, hash-verified installation:
pip install -r requirements.txt --require-hashes
Usage
from learning_pypi_demo_nisimi import hello
print(hello())
print(hello("Alice"))
Package Structure
learning-pypi-demo-nisimi/
├── learning_pypi_demo_nisimi/
│ ├── __init__.py # Package initialization
│ └── core.py # Core functionality
├── setup.py # Setup configuration with custom install
├── pyproject.toml # Modern Python packaging configuration
├── requirements.txt # Hash-verified requirements
├── README.md # This file
├── LICENSE # MIT License
└── MANIFEST.in # Additional files for distribution
Development
This package is designed as an educational tool for learning PyPI publishing. The custom installation message demonstrates how to extend the standard pip installation process.
Building the Package
python -m build
Publishing to PyPI
twine upload dist/*
Educational Value
This package demonstrates:
- Custom installation commands in setup.py
- Modern packaging with pyproject.toml
- Hash-based dependency management
- Proper package structure and documentation
- PyPI publishing workflow
Requirements
- Python 3.7 or higher
- No external dependencies (kept minimal for educational purposes)
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing
This is an educational package. Feel free to fork and experiment with your own versions to learn about PyPI publishing!
Author
nisimi
Acknowledgments
- Python Packaging Authority for excellent packaging documentation
- PyPI for providing the platform for package distribution