Library for calculating stuff having to do with gravity
Project description
pygravity
Join the Discord channel for live tech support!
pygravity is a library used for calculating gravity in Python.
Installation
Either install from source: (Note that you will need a C compiler installed)
$ git clone https://github.com/gaming32/pygravity
$ cd pygravity
$ python setup.py install
Or install from pip:
$ python -m pip install python-gravity
Documentation
API documentation can be found at https://gaming32.github.io/pygravity/. Following is some short documentation.
Pygravity is made up of a math module (pygravity.math
) for generic gravity-related math, and a subpackage (pygravity.twod
) for doing 2D calculations.
For in-depth documentation please install the package and use pydoc
(python -m pydoc -b
).
pygravity.twod
This package has three lower-level modules for doing gravity math: pygravity.twod.vector
, pygravity.twod.physics
, and pygravity.twod.gravity
.
It also provides two higher-level modules for doing simple math: pygravity.twod.util
and pygravity.twod.pygame_simulation
.
Most of pygravity.twod.pygame_simulation
should be considered in beta and should not be used without examining it's code first.
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
Built Distributions
Hashes for Python_Gravity-1.0.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2efab7dd8ddad3be698855b5aad79a8c6dc6dd01631704b332169055bd900ffc |
|
MD5 | e950e795e5cb5636f30807c88236544c |
|
BLAKE2b-256 | 0955495be126eb35b844e003553d7420d58282d42fbd2ab55ebacf2f0770efae |
Hashes for Python_Gravity-1.0.1-cp39-cp39-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | caf83ff524150a507404492af5d250ae591866e04e01a196daee9e86d035bf8c |
|
MD5 | fae067d1a609984fb96ac4dcf8fb86bb |
|
BLAKE2b-256 | a203a24c1d72e889549a4d74756dd8ece298d515d3f9af623a6227787c1c757a |
Hashes for Python_Gravity-1.0.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29cd16ed886dd8355a02f526ed5477b6e738c76d474a6a050213cb2a3934aa57 |
|
MD5 | dc9daf483fc2b8217679c1e336a2d32e |
|
BLAKE2b-256 | ce7d582b1eb229da70e38b43bd52b588040c276269734b54ac44a61dd4bd15e0 |
Hashes for Python_Gravity-1.0.1-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55021c11b124c6dbac6470769b3f639204d72a270d3526e7d5cc29cf4aa086fb |
|
MD5 | 89b65806fa2b24d13a799435f06c896b |
|
BLAKE2b-256 | 507d6560bd73f1f22ab1390bab314973467699229863a881fc8397f0adf98e76 |
Hashes for Python_Gravity-1.0.1-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef62564f237e1711c8f9d46cffa9ee99a4fd2de975ace573cf40639cb7ebac97 |
|
MD5 | 29d4682a8a2b76a4a7001c9b2816fad3 |
|
BLAKE2b-256 | d7aa9b05bc20b12c8b6b1c4a7d72ab9be307598227a78a855b2af715be4f896b |