Python package developed to simplify and facilitate the setup and processing of TESEO simulations (https://ihcantabria.com/en/specialized-software/teseo/)
Project description
Package under development!
pyTESEO is a python package developed by IHCantabria to simplify and facilitate the setup and processing of TESEO simulations (TESEO is a lagrangian numerical model also developed by IHCantabria.)
:computer: Installation
1 - Install the python library using pip:
# From pypi repository
pip install pyteseo
# Or directly from github repository
pip install git+https://github.com/IHCantabria/pyteseo
2 - Install TESEO model binary (Not available yet!):
-
Get access to the binary: https://github.com/IHCantabria/TESEO/blob/main/bin
-
Set up environment variable "TESEO_PATH" with the path to the model executable. You can use the command following CLI command after activate the python environement (python-dotenv library)
dotenv set TESEO_PATH /path/to/teseo_executable
3 - Opendap connection to some CMEMS products is available at the library pyteseo/connections/cmems.py
but needs authetication through the following environement variables:
dotenv set CMEMS_username your_username_at_CMEMS
dotenv set CMEMS_password your_password_at_CMEMS
:heavy_check_mark: Tests
Tests are located in pyteseo/tests/
and data required for tests are located in pyteseo/tests/data/
.
Tests have been developed using pytest.
Run tests to verify your package installation:
pyteseo-test # Run tests and prompt pytest-report
If you have cloned the repository, you also can run coverage.py
functionalities based on current pytproyect.toml
configuration from your terminal command line interface:
# Commands should be executed from the root directory of the repo
coverage run # For run tests and generate ".coverage" file
coverage report # For prompt results from ".coverage" file
coverage html # For generate html report on "htmlcov" folder
:recycle: Continuous integration (CI)
- Build and deploy documentation on Github Pages in .github/workflows/docs.yml
- Install and test package in diferent environments in .github/workflows/tests.yml
- Precommit hooks for formats and linting in .pre-commit-config.yaml
For Linux, Windows, MacOS and compatible python versions defined in installation section
:books: Documentation
Documentation is available at https://ihcantabria.github.io/pyteseo
:copyright: Credits
Developed and maintained by :man_technologist: German Aragon @ :office: IHCantabria.
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
Built Distribution
File details
Details for the file pyteseo-0.0.6.tar.gz
.
File metadata
- Download URL: pyteseo-0.0.6.tar.gz
- Upload date:
- Size: 6.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.28.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf3381550223dea7710aadb046cff731093a6547637914d51e69bbbbaad59b96 |
|
MD5 | 827ef0d5b24b4b06aa045a8f7f1670d2 |
|
BLAKE2b-256 | d711249c902c70a70ee2341b112ab1a27a21f91be38cdeb4c77333ae397bc73a |
File details
Details for the file pyteseo-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: pyteseo-0.0.6-py3-none-any.whl
- Upload date:
- Size: 5.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.28.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb4678f8e21caa9eb4775238d75203fc2d5eb39256748011bb80e82f4db86024 |
|
MD5 | 7514618d1d6a1354cb717f6bef49eb4f |
|
BLAKE2b-256 | 9c817eb8e23859f8385138b538cb702d6e1d7a915f520e70fee7dcbbf6211576 |