Skip to main content

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.

Installation

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

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytrius-0.1.1.tar.gz (4.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytrius-0.1.1-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

Details for the file pytrius-0.1.1.tar.gz.

File metadata

  • Download URL: pytrius-0.1.1.tar.gz
  • Upload date:
  • Size: 4.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pytrius-0.1.1.tar.gz
Algorithm Hash digest
SHA256 153241e4ea75007a1699964586a16eb66c49f31dd57435437ec548e56b3bdfd0
MD5 fb075dca43e3b42a83bd490e415b0421
BLAKE2b-256 f73a1d99a05db63b443dc9fd816ec2a1de10b4eb1d7cc39cbaea7c85a3a7cf0c

See more details on using hashes here.

File details

Details for the file pytrius-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pytrius-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pytrius-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 824088dc0f64f0f473fd33d12962e077f24ae6b18dfeba7dc12c7b123d6e0162
MD5 5c08aa7b98f2fe2efca98817af3e2c83
BLAKE2b-256 ee2509d0a6a3992e5f993c30c0caa9a01ab3313675069ead04164566057e3ce1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page