zzz233
WARNING: this package is only to demonstrate how to build a minimal python package. Any functions provided in this package could be changed in an incompatible way in the future. DO NOT use it in production.
A minimal python package.
- download locally
- clone repository:
git clone git@github.com:husisy/zzz233.git - download zip:
wget xxx - download released package: TODO
- clone repository:
- install
- install from pypi:
pip install zzz233 - install locally:
pip install . - (for developer) install locally:
pip install ".[dev]" - (for documentation developer) install locally:
pip install ".[doc]" - install from github:
pip install git+https://github.com/husisy/zzz233.git
- install from pypi:
- uninstall
pip uninstall zzz233 - scrips
- run in command line:
zzz233
- run in command line:
- unittest: download locally
pytest- (require developer install locally) coverage
pytest --cov=python/zzz233
- documentation
- build locally:
mkdocs serve - website:
https://husisy.github.io/zzz233/
- build locally:
- github action (CI/CD)
- build documentation, enable github page (select deploy from actions)
- unittest
- reading material
- github/setuptools_scm (Source Code Management)
- setuptools/pyproject-config
- distribute package to pypi
TODO make a clear table
usage
# a dummy example
from zzz233 import from_pickle, to_pickle
a = 233
to_pickle(a=a)
assert from_pickle('a')==a
TODO
- semantic versioning link
development
new environment
micromamba create -n zzz233 python
micromamba activate zzz233
pip install .
# pip install -e ".[dev]"
mkdocs serve
publish to pypi
# cleanup the branch and tag the latest commit with a valid version
# otherwise the build will fail
rm -rf ./dist
pip install build
python -m build
# testpypi
# setup testpypi apikey $HOME/.pypirc (the username is "__token__")
twine upload --repository testpypi dist/*
# --repository-url https://test.pypi.org/legacy/
pip uninstall zzz233
pip install --upgrade -i https://test.pypi.org/simple/ zzz233
# pypi
# --repository-url https://upload.pypi.org/legacy/
Acknowledgements
This project uses the following third-party libraries:
- h5py: A Python interface to the HDF5 binary data format. Licensed under the BSD-3-Clause License. h5py-License
License
Metadata
Release files for zzz233 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| zzz233-0.5.0.tar.gz | 11.1 kB | Without provenance | Details for zzz233-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zzz233-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for zzz233-0.5.0-py3-none-any.whl |
Total release size: 18.8 kB
Release files / zzz233-0.5.0.tar.gz
| Download URL | zzz233-0.5.0.tar.gz |
|---|---|
| Size | 11.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
93a2989f4b39cf5e19b5ade62eed7c556b640772b4610a16a3c265d2ad66ab98
|
|
BLAKE2b-256 checksum How to use checksums |
4979296941eb3876057bcbf0ef5acd3bb95d872dd075b7282d7abbad60636876
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / zzz233-0.5.0-py3-none-any.whl
| Download URL | zzz233-0.5.0-py3-none-any.whl |
|---|---|
| Size | 7.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8d64c407659b1b7a7418aecf493e3b0b037124c63968efde35c9bcfc8a59ed3b
|
|
BLAKE2b-256 checksum How to use checksums |
1dc869d1649d6a8621d0b4bb9c005e6d846ae20b8c5a2089fb6493f700a8d713
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for zzz233 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.