Metadata-Version: 2.4
Name: pytrius
Version: 0.1.1
Summary: This is a jpype wrapping of the original PATRIUS java code.
Project-URL: source, https://github.com/CNES/patrius
Project-URL: homepage, https://patrius.cnes.fr/index.php/Accueil
Author-email: Cloe Alcaria <cloe.alcaria@cnes.fr>
License: License :: OSI Approved :: Apache Software License
License-File: LICENCE.txt
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering
Requires-Python: >=3.6
Requires-Dist: jpype1
Requires-Dist: numpy
Provides-Extra: tests
Requires-Dist: coverage; extra == 'tests'
Requires-Dist: pytest; extra == 'tests'
Requires-Dist: pytest-cov; extra == 'tests'
Description-Content-Type: text/markdown

The Patrius python wrapper enables to use Patrius within a Python environment. This is done by creating a wrapper around the java library.

# Installation

* Requirements:
  * JDK installed on your system (as pytrius is Java based)
  * Python >= 3.6
  * `pip`

To install from source:
```bash
git clone git@gitlab.cnes.fr:patrius/internal/pytrius.git
or
git clone https://gitlab.cnes.fr/patrius/internal/pytrius.git
```

Followed by: 

```bash
mvn clean install
pip install -e .
```

# Usage

You will find examples of how to use pytrius in the `examples` and `test` folders. The examples given are heavily inspired from the already existing [Patrius Tutorial GitHub page](https://github.com/CNES/patrius-tutorials/tree/main) in java (but obviously translated to python in this case). 

```python
import pytrius
pytrius.initVM(jvmpath="path\\to\\jvm.dll")

from fr.cnes.sirius.addons.patriusdataset import PatriusDataset

from fr.cnes.sirius.patrius.frames import FramesFactory
from fr.cnes.sirius.patrius.time import AbsoluteDate, TimeScalesFactory

if __name__ == '__main__':
    # do stuff
```