Skip to main content

HΛZΛRDOUS

Predictive Competing Risks and Survival Analysis.

Tests

Installation and usage

Installation:

pip install hazardous

Then browse the online documentation and run the examples/ to get started.

Development and testing

Install in "editable" mode in your current Python env (after a standard installation to install the dependencies):

pip install flit
pip install . -v
pip install -e ".[dev]" --no-build-isolation -v
pre-commit install

Run the tests with nox to test in an environment that matches exactly on specific CI build, for instance:

nox -p 3.11 -s test_latest_from_pypi -r

The -r flag makes it possible to reuse an existing env.

You can also install the test dependencies in the current env and use pytest directly with arbitrary command line arguments:

pip install -e ".[test]" --no-build-isolation -v
pytest -vl -x -k test_name_pattern

Building the doc

Using nox:

nox -s doc -r

or manually:

pip install -e ".[doc]" --no-build-isolation -v
cd doc
make html

The resulting html files are generated under the doc/_build folder.

Building a release

pip install build
python -m build
ls dist/

TODO: make it possible to automate a release using GitHub Actions for a given tag.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hazardous-0.2.0.tar.gz (10.1 MB view details)

Uploaded Source

Built Distribution

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

hazardous-0.2.0-py3-none-any.whl (11.1 MB view details)

Uploaded Python 3

File details

Details for the file hazardous-0.2.0.tar.gz.

File metadata

  • Download URL: hazardous-0.2.0.tar.gz
  • Upload date:
  • Size: 10.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for hazardous-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4cb8fbe3e5a328ad012bd936b2345b53027ce4fb69162391d4a7af2473332199
MD5 2314be6da5f08bce48eabc32afaf5c5c
BLAKE2b-256 726ae3ea3de3808047ae9c73ed72c07895bb3621f21e5f5b1d95b2b84a3cea0e

See more details on using hashes here.

File details

Details for the file hazardous-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: hazardous-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 11.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for hazardous-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0c25c1b2f76f14bf2d50f68abe762283c01b2c83341420b95302b13cdd94c86f
MD5 003d74af3a2100289d45e30a644f1e68
BLAKE2b-256 6a06c97a4efb355fbcf6980f08183a720ed12016e4c09025942a70e3857bba94

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page