Galactic is project which binds software with outer space, its a fun project to understand outerspace and Python :)
A CLI Application, where you enter your weight. The application will calculate your weight in other planets in solar system, including our star (SUN).
- To learn how to
structure
a Python project. - To understand
Python
Classes and Objects - To learn
Python Unittest
. - To learn more about
setup.py
files. Travis CI
usage and implementation for Python Project.- To Learn
Codecov
integration withTravis CI
.
Your weight is a measure of the pull of gravity between you and the body you are standing on. This force of gravity depends on a few things.
First, it depends on your mass and the mass of the planet you are standing on. If you double your mass, gravity pulls on you twice as hard. If the planet you are standing on is twice as massive, gravity also pulls on you twice as hard. On the other hand, the farther you are from the center of the planet, the weaker the pull between the planet and your body. The force gets weaker quite rapidly. If you double your distance from the planet, the force is one-fourth. If you triple your separation, the force drops to one-ninth. Ten times the distance, one-hundredth the force. See the pattern? The force drops off with the square of the distance.
- Run the following command to know the availabe options.
Install
make init
To Check Unittest
make test
To generate Coverage Report
make test-cov
To Start
make start
- Run
make start
- It will promp you to enter your weight
~/galactic(master*) » make start
python3 main.py
Enter your Weight:
For example: If we enter 80
as input.
~/galactic(master*) » make start
python3 main.py
Enter your Weight: 80
Earth : 80.0
Mercury : 30.2
Venus : 72.33
Mars : 30.26
Jupiter : 202.16
Saturn : 85.14
Uranus : 70.87
Neptune : 90.93
Pluto : 5.3
Sun : 2234.45
The above is the calculation of the given weight in other plannets in our solar system.