Skip to main content

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

Metadata

Release files for mygalaxy 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mygalaxy 0.1.2
File Size Uploaded
mygalaxy-0.1.2.tar.gz 2.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mygalaxy 0.1.2
File Interpreter ABI Platform
mygalaxy-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 4.5 kB

Release files / mygalaxy-0.1.2.tar.gz

Download URL mygalaxy-0.1.2.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
292082e502a32efb1fdb45140fe297cc3acd9c3648cf83cde2ca4ab8e8537de5
BLAKE2b-256 checksum
How to use checksums
61c787e8c38197e7d09786f872868367cfb78d221816b1d7070385301962fa4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.7 Darwin/19.6.0

Release files / mygalaxy-0.1.2-py3-none-any.whl

Download URL mygalaxy-0.1.2-py3-none-any.whl
Size 2.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c1f6c214575da749d5bfa755078b33a33067a764403b1e9817d900e049d0cb7e
BLAKE2b-256 checksum
How to use checksums
856ff8290b7c1793c2c1c5fb5f2987a8c41f18d82372c418fab0ba2d3388491b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.7 Darwin/19.6.0

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page