Skip to main content

A collection of splashings to master that which has no form and count that which is uncountable.

Project description

odhpy

Installation

This package may be installed using pip from Bitbucket (requires authentication), or directly from PyPi (public). These are both shown below.

pip install git+https://bitbucket.org/odhydrology/odhpy.git
pip install odhpy

Usage

import odhpy

# returns the package version
odhpy.__version__

# prints 'Hello world!' to the console
odhpy.hello_world()

Uploading to PyPi

First build a distribution from an anaconda prompt in the root of your project, and then upload the dist to PyPi using Twine.

python setup.py sdist
twine upload dist/odhpy-0.0.31

As of Nov 2023, PyPi uses an API token instead of a conventional password. You can still use Twine, but the username is "token", and password is the API token which is very long string starting with "pypi-". Check for API tokens in your email.

username = __token__
password = pypi-#####################################################################################

Unit Tests

Install the nose2 test-runner framework. Then from the root project folder run the nose2 module. This will automatically find and run tests in any modules named "test_*".

pip install nose2
python -m nose2

License

None.

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

odhpy-0.0.32.tar.gz (27.7 kB view details)

Uploaded Source

File details

Details for the file odhpy-0.0.32.tar.gz.

File metadata

  • Download URL: odhpy-0.0.32.tar.gz
  • Upload date:
  • Size: 27.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.1

File hashes

Hashes for odhpy-0.0.32.tar.gz
Algorithm Hash digest
SHA256 2693f6185b526d4b2b5814bcc934f6bc09b8f74172cd7422d323612f59aaedf8
MD5 bfcf6c917f9d5d83c07e34c1bbc3784e
BLAKE2b-256 8598e068877296362e8640b119b5901488cbea384f9c057bb3b5d19287fcf7ac

See more details on using hashes here.

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