PHAB utilities for data processing
Project description
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"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file phab_utils-0.9.0.tar.gz.
File metadata
- Download URL: phab_utils-0.9.0.tar.gz
- Upload date:
- Size: 42.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0ea659a8c7f216bc7bd7199d392774d693ca2b654f3e86290edf664b7d50622
|
|
| MD5 |
51686a441bdafcf8eda2426dd7547685
|
|
| BLAKE2b-256 |
967c53dfd6835cdd83382cf8a463844c471cec5383ebe714c9b8221c2d04f521
|
File details
Details for the file phab_utils-0.9.0-py3-none-any.whl.
File metadata
- Download URL: phab_utils-0.9.0-py3-none-any.whl
- Upload date:
- Size: 47.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae02128245abcbed20b0e58c28fa594c2ea6d803d40220e65f16cac11c40dcda
|
|
| MD5 |
20bff9e51aa7abb00a153bd4f34db8c8
|
|
| BLAKE2b-256 |
4d72dbcae01ac78faff1d4b73a155ea40cc5813e2aec2bb66ed3ebb32b5fb1fd
|