Skip to main content

a minimalistic python package

Project description

zzz233

FOSSA Status

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.

  1. download locally
    • clone repository: git clone git@github.com:husisy/zzz233.git
    • download zip: wget xxx
    • download released package: TODO
  2. 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
  3. uninstall pip uninstall zzz233
  4. scrips
    • run in command line: zzz233
  5. unittest: download locally
    • pytest
    • (require developer install locally) coverage pytest --cov=python/zzz233
  6. documentation
    • build locally: mkdocs serve
    • website: https://husisy.github.io/zzz233/
  7. github action (CI/CD)
    • build documentation, enable github page (select deploy from actions)
    • unittest
  8. reading material

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

  1. 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

FOSSA Status

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

zzz233-0.5.0.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zzz233-0.5.0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file zzz233-0.5.0.tar.gz.

File metadata

  • Download URL: zzz233-0.5.0.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for zzz233-0.5.0.tar.gz
Algorithm Hash digest
SHA256 93a2989f4b39cf5e19b5ade62eed7c556b640772b4610a16a3c265d2ad66ab98
MD5 1dc2a0dbb14a99fb5fbd8c6a02cec5fb
BLAKE2b-256 4979296941eb3876057bcbf0ef5acd3bb95d872dd075b7282d7abbad60636876

See more details on using hashes here.

File details

Details for the file zzz233-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: zzz233-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for zzz233-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8d64c407659b1b7a7418aecf493e3b0b037124c63968efde35c9bcfc8a59ed3b
MD5 c0c1d8f4f568e40b1312ef6f3d1c9caa
BLAKE2b-256 1dc869d1649d6a8621d0b4bb9c005e6d846ae20b8c5a2089fb6493f700a8d713

See more details on using hashes here.

Supported by

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