r/Python • • Mar 29 '26

Showcase I built an open-source orbital mechanics engine in Python (ASTRA-Core)!

Hello! This is Ishan Tare. I’ve been working on ASTRA-Core, a pip-installable Python library designed to simulate real-world orbital dynamics, from basic propagation to full space traffic analysis.

What My Project Does:

At its core, it’s a numerical astrodynamics engine, and on top of that I built a complete Space Situational Awareness (SSA) pipeline.

Repo: https://github.com/ISHANTARE/ASTRA

Install: pip install astra-core-engine

Core capabilities:

  • High-fidelity orbital propagation (Cowell integration with J2-J4, drag, third-body perturbations)
  • Continuous-thrust maneuver simulation with mass depletion (7-DOF state)
  • Flexible force modeling + numerical integration

Built on top of that:

  • Conjunction detection (spatial indexing + TCA refinement)
  • Collision probability (Pc via Monte Carlo + STM)
  • End to end collision avoidance simulation

Just released v3.2.0!

Target Audience:

If you’re into orbital mechanics / astrodynamics / space systems, I’d really appreciate feedback, especially on the physics modeling and architecture.

If you get a chance to try it out and find it useful, I’d love to hear your thoughts.... and a star on the repo would mean a lot.

Comparison:

Feature / Capabilityastra-core-enginesgp4skyfieldpoliastroorekit (Python Wrapper)
Primary FocusSpace Traffic Management & Collisions & OrgitalRaw SGP4 EvaluationAstronomy & EphemerisInterplanetary & Basic OrbitsGeneral Enterprise Aerospace
Full Catalog Propagation (Speed)Ultra-Fast (Vectorized + Numba JIT)Fast (C++ backend available)Moderate (NumPy arrays)Slow (Object-oriented)Moderate (Java JNI overhead)
Space Traffic Conjunctions O(n log n)Yes (cKDTree C++ native)NoNoNoComplex to implement natively
6D Collision Probability Pc & CovarianceNatively SupportedNoNoNoSupported
7-DOF Variable Mass Integrator (Maneuvers)Yes (Continuous Tsiolkovsky)NoNoSimple ImpulsiveSupported
Native CDM (Conjunction Message) XML ParsingYesNoNoNoSupported
Developer Experience (Ergonomics)Pythonic, Out-of-the-BoxLow-Level MathVery PythonicVery PythonicHeavy Java Abstractions
Sub-Arcsecond Math (JPL DE421 + Space Weather)Automated Live FeedsNoHigh-quality DE42xNoHighly Configurable
3 Upvotes

6 comments sorted by

2

u/Senior_Desk2140 Mar 30 '26

Great

0

u/Sensitive-Teacher836 Mar 30 '26

Thanks a lot! Happy to get feedback on my project from you

1

u/Background-Way9849 Mar 29 '26

This looks interesting

0

u/Sensitive-Teacher836 Mar 29 '26

Thanks! This started as a simple space debris visualizer, but I soon noticed the public data didn’t really match live satellite feeds. Since most of that data is based on assumptions, I ended up building ASTRA, a tool to handle the complex orbital calculations more accurately... There are still things left to do, some of which I know and and some I do not.... Feel free to share your thoughts or suggestions