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.

Source Distribution

Python-Gravity-1.0.2.tar.gz (161.7 kB view hashes)

Uploaded Source

Built Distributions

Python_Gravity-1.0.2-cp39-cp39-win_amd64.whl (112.0 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

Python_Gravity-1.0.2-cp39-cp39-manylinux1_x86_64.whl (506.0 kB view hashes)

Uploaded CPython 3.9

Python_Gravity-1.0.2-cp38-cp38-win_amd64.whl (112.0 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

Python_Gravity-1.0.2-cp38-cp38-manylinux1_x86_64.whl (534.5 kB view hashes)

Uploaded CPython 3.8

Python_Gravity-1.0.2-cp37-cp37m-win_amd64.whl (109.8 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page