Skip to main content

Library for calculating stuff having to do with gravity

Project description

pygravity

PyPI - Downloads PyPI - License Libraries.io SourceRank PyPI PyPI - Format GitHub last commit

Discord

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


Download files

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

Files for Python-Gravity, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size Python_Gravity-1.0.1-cp37-cp37m-win_amd64.whl (109.7 kB) File type Wheel Python version cp37 Upload date Hashes View
Filename, size Python_Gravity-1.0.1-cp38-cp38-manylinux1_x86_64.whl (534.4 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size Python_Gravity-1.0.1-cp38-cp38-win_amd64.whl (112.0 kB) File type Wheel Python version cp38 Upload date Hashes View
Filename, size Python_Gravity-1.0.1-cp39-cp39-manylinux1_x86_64.whl (506.0 kB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size Python_Gravity-1.0.1-cp39-cp39-win_amd64.whl (112.0 kB) File type Wheel Python version cp39 Upload date Hashes View
Filename, size Python-Gravity-1.0.1.tar.gz (161.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page