Skip to main content

OrHelper is a module which aims to facilitate interacting and scripting with OpenRocket from Python.

Project description

orhelper

orhelper is a module which aims to facilitate interacting and scripting with OpenRocket from Python.

Prerequisites

  • OpenRocket 15.03
  • Java JDK 1.8
  • Python >=3.6

Setup JDK

Linux

For most people jpype will be able to automatically find the JDK. However, if it fails or you want to be sure you are using the correct version, add the JDK path to a JAVA_HOME environment variable:

  • Find installation directory (e.g. /usr/lib/jvm/[YOUR JDK 1.8 FOLDER HERE])
  • Open the ~/.bashrc file with your favorite text editor (will likely need sudo privileges)
  • Add the following line to the ~/.bashrc file:
    export JAVA_HOME="/usr/lib/jvm/[YOUR JDK 1.8 FOLDER HERE]"
    
  • Restart your terminal or run the following for the changes to take effect:
    source ~/.bashrc
    

Windows

  • Set Windows environment variables to the following:
    • Oracle
      JAVA_HOME = C:\Program Files\Java\[YOUR JDK 1.8 FOLDER HERE]
      
    • OpenJDK
      JAVA_HOME = C:\Program Files\ojdkbuild\[YOUR JDK 1.8 FOLDER HERE]
      

Installing

  • Install orhelper from pip

    pip install orhelper
    
  • Download the OpenRocket .jar file (if you don't already have it)

    • Linux
      wget https://github.com/openrocket/openrocket/releases/download/release-15.03/OpenRocket-15.03.jar
      
  • Set environment variable CLASSPATH path to OpenRocket .jar file. (Only required if it's not already at .\OpenRocket-15.03.jar)

    CLASSPATH=\some\path\to\OpenRocket-15.03.jar
    
  • See examples/ for usage examples

  • See the OpenRocket wiki for more info on usage and the examples

Credits

  • Richard Graham for the original script: Source
  • @not7cd for some initial organization and clean-up: Source
  • And of course everyone who has contributed to OpenRocket over the years.

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

orhelper-0.1.2.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

orhelper-0.1.2-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file orhelper-0.1.2.tar.gz.

File metadata

  • Download URL: orhelper-0.1.2.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.6

File hashes

Hashes for orhelper-0.1.2.tar.gz
Algorithm Hash digest
SHA256 fa62069b40cd0039b7d4c210159a25a815856db2929a573f1544ebc50fd581ff
MD5 c9e8346128c5c1ed1e169c33d7973e81
BLAKE2b-256 14e545e4c092db630133d69368b827841f70c7575d1b46357408b83e3ae9cf80

See more details on using hashes here.

File details

Details for the file orhelper-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: orhelper-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.6

File hashes

Hashes for orhelper-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 aef92314f16df5e201413c48b7bbeb458e9ee358140bbc6a818662293649630d
MD5 998542cd40a0b2c94b4f84addfe8e0a6
BLAKE2b-256 d198b574509de28e43fcd7df4b6dcbca21fd3275fe45f868036b96583e8dc2d8

See more details on using hashes here.

Supported by

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