5 releases

0.1.4 Mar 19, 2024
0.1.3 Mar 13, 2023
0.1.2 Mar 10, 2023
0.1.1 Mar 10, 2023
0.1.0 Mar 10, 2023

#46 in Simulation

Download history 2/week @ 2024-02-27 228/week @ 2024-03-19 1/week @ 2024-03-26 7/week @ 2024-04-02

236 downloads per month

GPL-3.0 license

270KB
5K SLoC

Alt text

spacerocks Python 3.6+ PyPI version shields.io License: GPL v3 Documentation Status codecov

spacerocks is a software package that puts the solar system at your fingertips.

The package is written in Rust and is exposed to Python using PyO3.

Python Installation

To install from source, you will need to have Rust and maturin installed.

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
pip install maturin

git clone https://github.com/kjnapier/spacerocks
cd spacerocks
cd py-spacerocks
maturin develop --release

You will also need to have cspice installed on your system, and add its location to your path as

export CSPICE_DIR="/path/to/cspice"

You might also need to rename cspice.a to libcspice.a if you are on a Unix system.

We actually use very few of the cspice functions, so it should be possible to remove this dependency in the future. If you would like to help with this, please send a message!

Dependencies

~16–33MB
~514K SLoC