Skip to main content

Example package based on packaging python tutorials

Project description

python-package-example

Install using pip

pip install example-pkg-trdlo

Usage example

from example_pkg.pretty_code import Code
from example_pkg.pretty_code import PrettyCode

pretty_code = PrettyCode(6)

code = pretty_code.mirror()   # Code('408804')
pretty_code.half_and_random() # Code('666252')
pretty_code.sequence()        # Code('345678')
pretty_code.two_sequence()    # Code('876321')
pretty_code.simplest()        # Code('444444')
pretty_code.random()          # Code('286183')

print(code.code) # '408804'
print(code.hash) # 'fe5763dbf4013b6b4b984d06e351aef3e54889afe7eebb77afb3267284c5bec9'

Alternative installation method

Install using git+ssh URI schema

pip install git+ssh://git@gitlab.com/avnovoselov/python-package-example.git

Install using https URI schema

pip install https://gitlab.com/avnovoselov/python-package-example.git

Update build

After run will prompt username and password.

python3 -m build
python3 -m twine upload --repository pypi dist/*

Links

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

example-pkg-trdlo-0.1.1.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

example_pkg_trdlo-0.1.1-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

Supported by

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