Skip to main content

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.

Release files for orhelper 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for orhelper 0.1.3
File Size Uploaded
orhelper-0.1.3.tar.gz 6.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for orhelper 0.1.3
File Interpreter ABI Platform
orhelper-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 20.6 kB

Release files / orhelper-0.1.3.tar.gz

Download URL orhelper-0.1.3.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
19f964041ea307c6ddc6e1e10f01e55df8644480ea5a1a5041b0863bf138a392
BLAKE2b-256 checksum
How to use checksums
ef99e47191c9a9c7f910e6c09dc12199d33e551d19ab5baf3b34f319fe406932
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.6

Release files / orhelper-0.1.3-py3-none-any.whl

Download URL orhelper-0.1.3-py3-none-any.whl
Size 14.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
24b1cce9902ae3824e600754dbafda1d6244a5aab2746b13bc8f5afca44568a0
BLAKE2b-256 checksum
How to use checksums
127d4e2d0788434b7c11d7090faf5490075fa8609b7884ab652bfdaea8b1b999
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.6

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page