Planet-Objects

Planetary data stored as objects


Keywords
planets, python
License
MIT
Install
pip install Planet-Objects==1.0.4

Documentation

Planets

CodeFactor

Planetary data stored as objects

To install the package use:

pip install Planet-Objects

To import the package use:

from planets.planets import *

then you can call:

mercury, venus, earth, moon, mars, jupiter, saturn, uranus, neptune, pluto

with any of the following attributes:

name, mass, diameter, density, gravity, esc_velocity, rotation_period, day_length, from_sun, periheleon, apheleon, orbit_period, orbit_velocity, orbit_inclination, orbit_eccentricity, obliquity_to_orbit, temp, surface_pressure, moons, ring_sys, gmf, img, atmosphere_comp

All data from: https://nssdc.gsfc.nasa.gov/planetary/factsheet/