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
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
mygalaxy-0.1.2.tar.gz
(2.1 kB
view details)
Built Distribution
File details
Details for the file mygalaxy-0.1.2.tar.gz
.
File metadata
- Download URL: mygalaxy-0.1.2.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.9.7 Darwin/19.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 292082e502a32efb1fdb45140fe297cc3acd9c3648cf83cde2ca4ab8e8537de5 |
|
MD5 | f015f4074f99f1bea3b8c186c42145e1 |
|
BLAKE2b-256 | 61c787e8c38197e7d09786f872868367cfb78d221816b1d7070385301962fa4a |
File details
Details for the file mygalaxy-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: mygalaxy-0.1.2-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.9.7 Darwin/19.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1f6c214575da749d5bfa755078b33a33067a764403b1e9817d900e049d0cb7e |
|
MD5 | 276505584d07377a5e8c18c6a8bb524f |
|
BLAKE2b-256 | 856ff8290b7c1793c2c1c5fb5f2987a8c41f18d82372c418fab0ba2d3388491b |