# uio-exoplanet-group
UiO exoplanet group: data processing tools and knowledge base. Created for [Centre for Earth Evolution and Dynamics](https://mn.uio.no/ceed/) and its successor [Centre for Planetary Habitability](https://mn.uio.no/phab/english/).
<!-- MarkdownTOC -->
- [Installing](#installing)
- [From PyPI](#from-pypi)
- [From sources](#from-sources)
- [Building a wheel](#building-a-wheel)
- [Modules](#modules)
- [Data](#data)
- [Documentation](#documentation)
- [API](#api)
- [wiki](#wiki)
- [Tests](#tests)
<!-- /MarkdownTOC -->
## Installing
### From PyPI
``` sh
$ pip install uio-exoplanet-group
```
### From sources
``` sh
$ cd /path/to/uio-exoplanet-group/
$ 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:
``` sh
$ pip install -e .
```
#### Building a wheel
You can also build a wheel and distribute/install that instead:
``` sh
$ cd /path/to/uio-exoplanet-group/
$ python -m build
$ pip install ./dist/uio_exoplanet_group-*.whl
```
## Modules
- `utility` - reusable/common utility modules;
- `tasks` - special module for performing particular tasks.
## 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](https://github.com/retifrav/uio-exoplanet-group/tree/master/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](https://uio.decovar.dev/).
It is generated with [pdoc](https://pdoc.dev):
``` sh
$ pip install pdoc
$ cd /path/to/uio-exoplanet-group
$ rm -r ./documentation/_deploy/*
$ UIO_PACKAGE_VERSION=$(git rev-parse --short HEAD) pdoc ./src/uio/utility ./src/uio/tasks \
--template-directory ./documentation/_templates/ \
--edit-url="uio=https://github.com/retifrav/uio-exoplanet-group/blob/master/src/uio/" \
--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](https://github.com/mitmproxy/pdoc/blob/main/.github/workflows/docs.yml).
### 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:
``` sh
$ pip install pytest
$ python -m pytest ./src/uio/tests/*[^_*].py
$ python -m pytest ./src/uio/tests/databases.py
$ python -m pytest ./src/uio/tests/databases.py -k "test_get_parameters_that_are_double_in_nasa"
```
Raw data
{
"_id": null,
"home_page": "https://github.com/retifrav/uio-exoplanet-group",
"name": "uio-exoplanet-group",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "tap, adql, astronomy, astrophysics, cosmology, science",
"author": "retif",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/0f/fc/eadd31700073360a3457e59e2d9182c083b6302b6fcd8530183e6de36478/uio_exoplanet_group-0.7.0.tar.gz",
"platform": null,
"description": "# uio-exoplanet-group\n\nUiO exoplanet group: data processing tools and knowledge base. Created for [Centre for Earth Evolution and Dynamics](https://mn.uio.no/ceed/) and its successor [Centre for Planetary Habitability](https://mn.uio.no/phab/english/).\n\n<!-- MarkdownTOC -->\n\n- [Installing](#installing)\n - [From PyPI](#from-pypi)\n - [From sources](#from-sources)\n - [Building a wheel](#building-a-wheel)\n- [Modules](#modules)\n- [Data](#data)\n- [Documentation](#documentation)\n - [API](#api)\n - [wiki](#wiki)\n- [Tests](#tests)\n\n<!-- /MarkdownTOC -->\n\n## Installing\n\n### From PyPI\n\n``` sh\n$ pip install uio-exoplanet-group\n```\n\n### From sources\n\n``` sh\n$ cd /path/to/uio-exoplanet-group/\n$ pip install .\n```\n\nAdd 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:\n\n``` sh\n$ pip install -e .\n```\n\n#### Building a wheel\n\nYou can also build a wheel and distribute/install that instead:\n\n``` sh\n$ cd /path/to/uio-exoplanet-group/\n$ python -m build\n$ pip install ./dist/uio_exoplanet_group-*.whl\n```\n\n## Modules\n\n- `utility` - reusable/common utility modules;\n- `tasks` - special module for performing particular tasks.\n\n## Data\n\nWherever 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](https://github.com/retifrav/uio-exoplanet-group/tree/master/data) folder - chances are, that file will be provided there.\n\n## Documentation\n\nThere are two different pieces of documentation.\n\n### API\n\nLocated in `documentation`. This is the package API documentation, which is published [here](https://uio.decovar.dev/).\n\nIt is generated with [pdoc](https://pdoc.dev):\n\n``` sh\n$ pip install pdoc\n\n$ cd /path/to/uio-exoplanet-group\n$ rm -r ./documentation/_deploy/*\n\n$ UIO_PACKAGE_VERSION=$(git rev-parse --short HEAD) pdoc ./src/uio/utility ./src/uio/tasks \\\n --template-directory ./documentation/_templates/ \\\n --edit-url=\"uio=https://github.com/retifrav/uio-exoplanet-group/blob/master/src/uio/\" \\\n --output-directory ./documentation/_deploy/\n$ cp ./documentation/{favicon.ico,phab.jpg} ./documentation/_deploy/\n```\n\nFor 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](https://github.com/mitmproxy/pdoc/blob/main/.github/workflows/docs.yml).\n\n### wiki\n\nLocated 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.\n\nIt 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.\n\n## Tests\n\nTo run tests:\n\n``` sh\n$ pip install pytest\n\n$ python -m pytest ./src/uio/tests/*[^_*].py\n$ python -m pytest ./src/uio/tests/databases.py\n$ python -m pytest ./src/uio/tests/databases.py -k \"test_get_parameters_that_are_double_in_nasa\"\n```\n",
"bugtrack_url": null,
"license": null,
"summary": "UiO exoplanet group tools for data processing",
"version": "0.7.0",
"project_urls": {
"Bug Tracker": "https://github.com/retifrav/uio-exoplanet-group/issues",
"Changelog": "https://github.com/retifrav/uio-exoplanet-group/blob/master/changelog.md",
"Documentation": "https://uio.decovar.dev/",
"Homepage": "https://github.com/retifrav/uio-exoplanet-group"
},
"split_keywords": [
"tap",
" adql",
" astronomy",
" astrophysics",
" cosmology",
" science"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "db6cc59a1d94c09bc6d78237be6c5c66641d56551a5fe3a36f6d50cbec830847",
"md5": "28386d99aa05fc83811d670483c06b33",
"sha256": "0f374db5f16e5770b852de617fc38b3fe56fe9b19b8c209071f0f5df8ff74a8f"
},
"downloads": -1,
"filename": "uio_exoplanet_group-0.7.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "28386d99aa05fc83811d670483c06b33",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 39406,
"upload_time": "2024-10-20T16:22:55",
"upload_time_iso_8601": "2024-10-20T16:22:55.037841Z",
"url": "https://files.pythonhosted.org/packages/db/6c/c59a1d94c09bc6d78237be6c5c66641d56551a5fe3a36f6d50cbec830847/uio_exoplanet_group-0.7.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "0ffceadd31700073360a3457e59e2d9182c083b6302b6fcd8530183e6de36478",
"md5": "93f59f59051eeba6eadc0ef75efae935",
"sha256": "c7a794b935953123983999a4ebbc6c18391950e784820a5957832c8424dfbdf2"
},
"downloads": -1,
"filename": "uio_exoplanet_group-0.7.0.tar.gz",
"has_sig": false,
"md5_digest": "93f59f59051eeba6eadc0ef75efae935",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 35863,
"upload_time": "2024-10-20T16:22:56",
"upload_time_iso_8601": "2024-10-20T16:22:56.876431Z",
"url": "https://files.pythonhosted.org/packages/0f/fc/eadd31700073360a3457e59e2d9182c083b6302b6fcd8530183e6de36478/uio_exoplanet_group-0.7.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-20 16:22:56",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "retifrav",
"github_project": "uio-exoplanet-group",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "uio-exoplanet-group"
}