Skip to main content

Open source python library for assessing hydrologic model results in Queensland

Project description

bulum

Installation

This package may be installed using pip from GitHub, directly from PyPi (public), or from a .tar.gz. Examples are shown below.

pip install git+https://github.com/odhydrology/bulum
pip install bulum
pip install .\dist\bulum-0.0.32.tar.gz

Usage

import bulum

# returns the package version
bulum.__version__

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

API documentation is available at odhydrology.github.io/bulum.

Build and Upload 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\bulum-0.0.32.tar.gz

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

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

Where can I find the API token password? Chas has it in his emails. It is also here on the network at .\ODH working files\Professional development, reading, etc\Software\ODHSoftware\bulum\PyPi_password_and_instructions.txt.

How do I make a new API token? Go to your PyPi account settings, and click on "API tokens". Then click on "Add API token", and give it a name. The token will be displayed on the next screen.

Unit Tests

WARNING: Run unit tests from an anaconda environment with compatible dependencies!

Install the nose2 test-runner framework.

pip install nose2

Then from the root project folder run the nose2 module. You can do this as a python modules, or just directly from the anaconda prompt (both examples given below). This will automatically find and run tests in any modules named "test_*".

python -m nose2
nose2

You can run specific tests by specifying the module name. Example below.

nose2 src.bulum.stats.tests

License

Refer to LICENCE.md

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

bulum-0.3.2.tar.gz (81.0 kB view details)

Uploaded Source

File details

Details for the file bulum-0.3.2.tar.gz.

File metadata

  • Download URL: bulum-0.3.2.tar.gz
  • Upload date:
  • Size: 81.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for bulum-0.3.2.tar.gz
Algorithm Hash digest
SHA256 d5a423e61db8575d2061c73259d74b63d57ca592b4f5a2826de26db7bae82fd5
MD5 913199d4fcbef012cf09f8c5348cb635
BLAKE2b-256 3721e5f18f81a48abc8dfbbe877215921d80fad1693485d7809df3dd68f59f41

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