Metadata-Version: 2.1
Name: pyteseo
Version: 0.0.6
Summary: Python package developed to simplify and facilitate the setup and processing of TESEO simulations (https://ihcantabria.com/en/specialized-software/teseo/)
Author-email: German Aragon Caminero <german.aragon@unican.es>
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Physics
Classifier: Development Status :: 1 - Planning
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Requires-Dist: geopandas
Requires-Dist: owslib
Requires-Dist: xarray
Requires-Dist: dask
Requires-Dist: netcdf4<=1.5.8
Requires-Dist: bottleneck
Requires-Dist: ipykernel
Requires-Dist: matplotlib
Requires-Dist: geojson
Requires-Dist: pytest >=7
Requires-Dist: lxml
Requires-Dist: scipy
Requires-Dist: python-dotenv
Requires-Dist: pydap
Requires-Dist: openpyxl
Requires-Dist: flit ; extra == "dev"
Requires-Dist: black ; extra == "dev"
Requires-Dist: sphinx ; extra == "dev"
Requires-Dist: coverage[toml] ; extra == "dev"
Requires-Dist: myst-nb ; extra == "dev"
Requires-Dist: sphinx-autoapi ; extra == "dev"
Requires-Dist: sphinx_rtd_theme ; extra == "dev"
Project-URL: changelog, https://github.com/IHCantabria/pyteseo/blob/main/CHANGELOG.md
Project-URL: documentation, https://ihcantabria.github.io/pyteseo
Project-URL: home, https://ihcantabria.com/specialized-software/english-teseo/
Project-URL: repository, https://github.com/IHCantabria/pyteseo
Provides-Extra: dev

## Package under development!
---

<p align="center">
<img align="center" width="600" src="https://ihcantabria.github.io/pyteseo/_images/pyTESEO_logo.png">
</p>

[![pypi](https://img.shields.io/pypi/v/pyteseo)](https://pypi.org/project/pyteseo/)
[![Github release (latest by date)](https://img.shields.io/github/v/release/ihcantabria/pyteseo?label=last%20release)](https://github.com/IHCantabria/pyteseo/releases)
[![GitHub tag (latest by date)](https://img.shields.io/github/v/tag/IHCantabria/pyteseo?label=last%20tag)](https://github.com/IHCantabria/pyteseo/tags)
[![GitHub last commit](https://img.shields.io/github/last-commit/ihcantabria/pyteseo)](https://github.com/IHCantabria/pyteseo/commits/main)
[![docs](https://github.com/IHCantabria/pyteseo/actions/workflows/docs.yml/badge.svg)](https://github.com/IHCantabria/pyteseo/actions/workflows/docs.yml)
[![tests](https://github.com/IHCantabria/pyteseo/actions/workflows/tests.yml/badge.svg)](https://github.com/IHCantabria/pyteseo/actions/workflows/tests.yml)
[![GitHub repo size](https://img.shields.io/github/repo-size/IHCantabria/pyteseo)](https://github.com/IHCantabria/pyteseo)
[![GitHub license](https://img.shields.io/github/license/IHCantabria/pyteseo)](https://github.com/IHCantabria/pyteseo/blob/main/LICENSE.md)
[![Python versions](https://img.shields.io/pypi/pyversions/pyteseo)](https://www.python.org/)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)



**pyTESEO** is a python package developed by [IHCantabria](https://ihcantabria.com/en/) to simplify and facilitate the setup and processing of [TESEO](https://ihcantabria.com/en/specialized-software/teseo/) simulations *(TESEO is a lagrangian numerical model also developed by IHCantabria.)*


---

## :computer: Installation

1 - Install the python library using pip:

```bash
# 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)

    ```bash
        dotenv set TESEO_PATH /path/to/teseo_executable
    ```
3 - Opendap connection to some [CMEMS products](https://data.marine.copernicus.eu/products) is available at the library `pyteseo/connections/cmems.py` but needs authetication through the following environement variables:
```bash
dotenv set CMEMS_username your_username_at_CMEMS
```
```bash
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](https://docs.pytest.org/).

Run tests to verify your package installation:
```bash
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:
```bash
# 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](.github/workflows/docs.yml)
* Install and test package in diferent environments in [.github/workflows/tests.yml](.github/workflows/tests.yml)
* Precommit hooks for formats and linting in [.pre-commit-config.yaml](.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](https://github.com/aragong) @ :office: [IHCantabria](https://github.com/IHCantabria).

---

