Skip to main content

A small galaxy to learn poetry

Project description

mygalaxy

A small galaxy to learn poetry.

How to install

pip install mygalaxy

How to use

Create your planet

from mygalaxy.planet import Planet
earth = Planet(name='earth', radius=6371000, gravity=9.807, system='solar')
print(earth.gravity)

Make your planet spin

earth.spin()

Make your planet orbit

earth.orbit()

Learn the shape of your planet

earth.commons()

Compute the mass of your planet

earth.mass()

Compute the volume of your planet

earth.volume()

You may also use the mass and volume compute functions separately by doing:

from mygalaxy.calc import planet_mass, planet_vol
r = 6371000
g = 9.807
print(planet_mass(gravity=g, radius=r))
print(planet_vol(radius=r))

Related URLs

Project details


Download files

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

Source Distribution

mygalaxy-0.1.2.tar.gz (2.1 kB view hashes)

Uploaded Source

Built Distribution

mygalaxy-0.1.2-py3-none-any.whl (2.3 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