phab-utils
Data processing tools and knowledge base of Centre for Earth Evolution and Dynamics and its successor Centre for Planetary Habitability.
Original project name was uio-exoplanet-group, which later got renamed to phab-utils (on 2025-01-29).
Installing
From PyPI
$ pip install phab-utils
If you need an older version from the original uio-exoplanet-group package, those are still available here.
From sources
$ cd /path/to/phab-utils/
$ pip install .
Add an -e argument, if you'd like to automatically update your locally installed package by pulling from the repository or/and if you intend to modify the sources:
$ pip install -e .
Building a wheel
You can also build a wheel and distribute/install that instead:
$ cd /path/to/phab-utils/
$ python -m build
$ pip install ./dist/phab_utils-*.whl
Data
Wherever you see a reference to some data files in documentation, examples, comments or anywhere else, for example some function taking a path like ./data/systems-528n.pkl, check the data folder - chances are, that file will be provided there.
Documentation
There are two different pieces of documentation.
API
Located in documentation. This is the package API documentation, which is published here.
It is generated with pdoc:
$ pip install pdoc
$ cd /path/to/phab-utils
$ rm -r ./documentation/_deploy/*
$ PHAB_PACKAGE_VERSION=$(git rev-parse --short HEAD) pdoc ./src/phab/utils ./src/phab/tasks \
--template-directory ./documentation/_templates/ \
--edit-url="utils=https://github.com/retifrav/phab-utils/blob/master/src/phab/utils/" \
--edit-url="tasks=https://github.com/retifrav/phab-utils/blob/master/src/phab/tasks/" \
--output-directory ./documentation/_deploy/
$ cp ./documentation/{favicon.ico,phab.jpg} ./documentation/_deploy/
For now it's a blunt deployment of generated HTML, but later it probably will be better to rely on GitHub Actions (if it won't spend too much of free quota) by customizing this workflow.
If you'd like to browse generated documentation locally, you can just open the main index.html from ./documentation/_deploy/ in your browser. Alternatively, you can launch a basic Python server:
$ cd ./documentation/_deploy/
$ python -m http.server 8000
and open http://localhost:8000/.
wiki
Located in wiki. This is general purpose / technical manuals, articles, notes, etc: how to install/build various tools, dependencies, how to set-up environments and so on.
It is meant to be published somewhere else, but for now it will do being a part of repository. GitHub wikis could've been an option, but those are still quite bad in terms of organizing the content.
Tests
To run tests:
$ pip install pytest
$ python -m pytest ./src/phab/tests/*[^_*].py
$ python -m pytest ./src/phab/tests/databases.py
$ python -m pytest ./src/phab/tests/databases.py -k "test_get_parameters_that_are_double_in_nasa"
Metadata
Release files for phab-utils 2026.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| phab_utils-2026.1.9.tar.gz | 42.8 kB | Without provenance | Details for phab_utils-2026.1.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| phab_utils-2026.1.9-py3-none-any.whl | Python 3 | none | any | Details for phab_utils-2026.1.9-py3-none-any.whl |
Total release size: 90.4 kB
Release files / phab_utils-2026.1.9.tar.gz
| Download URL | phab_utils-2026.1.9.tar.gz |
|---|---|
| Size | 42.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0a571cc0c994498c9a3e7ae9130827a5c73884d636e77d030b27cc25ccee9862
|
|
BLAKE2b-256 checksum How to use checksums |
69fe0e282aa07de84c429c7518ec3e171cfef910bf17fb5b257d77d4aadee832
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.11
|
Release files / phab_utils-2026.1.9-py3-none-any.whl
| Download URL | phab_utils-2026.1.9-py3-none-any.whl |
|---|---|
| Size | 47.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b523cc6c9bc7684f83285cb2023169547409d5b5c562a08f7801d6b9a338774a
|
|
BLAKE2b-256 checksum How to use checksums |
cb853365c2df36097fa19a589d3e497736de9af085b65d4f1add631a90366a76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.11
|
Security for phab-utils 2026.1.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.