Your package is now pip-ready and built successfully! Follow these steps to publish it to PyPI.
- Create a PyPI account at https://pypi.org/account/register/
- Generate an API token at https://pypi.org/manage/account/
- Install
twine(PyPI upload tool)
pip install twinecd /home/moundher/Desktop/Streamix
python -m build --sdist --wheelThis creates:
dist/streamix_queue-0.1.0-py3-none-any.whl(wheel)dist/streamix_queue-0.1.0.tar.gz(source)
twine check dist/*First test on TestPyPI:
twine upload --repository testpypi dist/* --username __token__ --password pypi-YOUR_TEST_TOKENThen test installation:
pip install --index-url https://test.pypi.org/simple/ streamix-queueOnce verified, upload to the real PyPI:
twine upload dist/* --username __token__ --password pypi-YOUR_PROD_TOKENOr use interactive mode (will prompt for token):
twine upload dist/*pip install streamix-queue
python -c "from streamix_queue import publish, consume; print('Success!')"- ✅ Properly structured -
src/streamix_queue/layout - ✅ pyproject.toml - Modern Python packaging config
- ✅ setup.py - Compatibility layer
- ✅ LICENSE - MIT license included
- ✅ README.md - PyPI description
- ✅ MANIFEST.in - File inclusion rules
- ✅ Built successfully - Both wheel and sdist formats
- ✅ Imports work - Tested and verified
Update the version in pyproject.toml for future releases:
version = "0.2.0"Then rebuild and upload with twine upload dist/* --skip-existing
The package includes:
- Name:
streamix-queue - Import name:
streamix_queue - Python: 3.10+
- Dependencies: redis>=5.0.0
- License: MIT
- Keywords: redis, streams, event, messaging, queue, async