This is a jpype wrapping of the original PATRIUS java code.
Project description
The Patrius python wrapper enables to use Patrius within a Python environment. This is done by creating a wrapper around the java library. This version of the wrapper wraps Patrius v4.16 in JAVA.
Installation
- Requirements:
- JDK installed on your system (as pytrius is Java based)
- Python >= 3.6
pip
To install from PyPI:
pip install pytrius
To install from source:
git clone git@gitlab.cnes.fr:patrius/internal/pytrius.git
or
git clone https://gitlab.cnes.fr/patrius/internal/pytrius.git
Followed by:
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 in java (but obviously translated to python in this case).
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
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 pytrius-0.1.2.tar.gz.
File metadata
- Download URL: pytrius-0.1.2.tar.gz
- Upload date:
- Size: 88.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a866d8c3c72c042168b36f2f5d375f2a852062c5cfc1f0dcc853f12b33a79214
|
|
| MD5 |
97679218a85605b9c521f93aedf6baf7
|
|
| BLAKE2b-256 |
036de0fadeeae43172fcef091894645fc6ab8824ad638be642e502fabef1092f
|
File details
Details for the file pytrius-0.1.2-py3-none-any.whl.
File metadata
- Download URL: pytrius-0.1.2-py3-none-any.whl
- Upload date:
- Size: 85.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4b512954dff38ccdc2d414d7cca03c172ebdc94454f5614f5a5676fabbc9591
|
|
| MD5 |
75078fb85ae43a1757e475d030697886
|
|
| BLAKE2b-256 |
6e9875c4905b1480442defce40f996b0cc38ef767fe50780fad126978a2ec47b
|