Hipparchus and Rugged version

I would like to print the Hipparchus and Rugged version in my python script.
At the moment i am able to print only the Orekit, and Java version :
vm = orekit.initVM()
print (‘Orekit version:’, orekit.VERSION)
print (‘Java version:’,vm.java_version)
Any suggestion for Hipparchus and Rugged version ?

Hi Benedetto,

Good question and would indeed be an interesting confirmation. That would need to go through the java engine somehow - the version shown on orekit.VERSION is the one set in the wrapper build.

By Googling on this it seems it is not obvious how to do this in java. If someone knows please pitch in?

One way seems to get some metadata by in python on an object (like utc here): utc.getClass().getProtectionDomain().toString()

gives

ProtectionDomain (file:/home/petrushy/Development/orekit/orekit-support/.pixi/envs/default/lib/python3.12/site-packages/orekit_jpype/jars/orekit-12.2.1.jar )\n sun.misc.Launcher$AppClassLoader@18b4aac2\n \n java.security.Permissions@71e7a66b (\n (“java.io.FilePermission” “/home/petrushy/Development/orekit/orekit-support/.pixi/envs/default/lib/python3.12/site-packages/orekit_jpype/jars/orekit-12.2.1.jar” “read”)\n (“java.lang.RuntimePermission” “exitVM”)\n)\n\n’

and from there one could at least parse which version of the jars based on jar naming. Not ideal but could give some info.

This is something I wanted to do for some time for all our libraries.
I have found some hints based on looking in jar built by maven, but up to now did not found anything that could also work when running directly from an IDE (like Eclipse, or Intellij, or Netbeans…).
I have open issue-1653 for this on Orekit side and issue-367 on Hipparchus side.

I added my suggested solution to the issue: Add a getVersion method to OrekitConfiguration (#1653) · Issues · Orekit / Orekit · GitLab

Let me know if that’s what you want!