Skip to main content

Python client for SsODNet data access.

Project description

python version PyPI Documentation Status Code style: black

Features - Install - Documentation

Disclaimer: The SsODNet service and its database are in an alpha version and under constant revision. The provided values and access methods may change without notice.

Features

Explore asteroid data on the command-line...

$ rocks id 221
(221) Eos

$ rocks class Eos
MB>Outer

$ rocks albedo Eos
0.136 +- 0.004

$ rocks taxonomy Eos
K

$ rocks density Eos
4.559e+03 +- 1.139e+03 kg/m$^3$

... and in a python script.

>>> import rocks
>>> rocks.identify("1902ug")
('Fortuna', 19)
>>> ceres = rocks.Rock("ceres")
>>> ceres.diameter.value
848.4
>>> ceres.mass.value
9.384e+20
>>> ceres.mass.error
6.711e+17

Install

Install from PyPi using pip:

 $ pip install space-rocks

The minimum required python version is 3.7.

Documentation

Check out the documentation at rocks.readthedocs.io or run

 $ rocks docs

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

space-rocks-1.4.24.tar.gz (30.9 kB view hashes)

Uploaded Source

Built Distribution

space_rocks-1.4.24-py3-none-any.whl (34.0 kB view hashes)

Uploaded Python 3

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