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 details)

Uploaded Source

Built Distributions

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

Uploaded CPython 3.9 Windows x86-64

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

Uploaded CPython 3.9

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

Uploaded CPython 3.8 Windows x86-64

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

Uploaded CPython 3.8

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

Uploaded CPython 3.7m Windows x86-64

File details

Details for the file Python-Gravity-1.0.2.tar.gz.

File metadata

  • Download URL: Python-Gravity-1.0.2.tar.gz
  • Upload date:
  • Size: 161.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.5

File hashes

Hashes for Python-Gravity-1.0.2.tar.gz
Algorithm Hash digest
SHA256 9159103b8dcd54617da7ac65fc3ce9a19f0040022f69ff7dc7057136e0c0453e
MD5 052cdef157cceb32da47e69f3cca0bba
BLAKE2b-256 8ef0cd907aeaa30e42f6e7b6eb39678500b02c5c8a7eb7ce581784b21d28372b

See more details on using hashes here.

File details

Details for the file Python_Gravity-1.0.2-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: Python_Gravity-1.0.2-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 112.0 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.5

File hashes

Hashes for Python_Gravity-1.0.2-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 17f80817983a58764222235aec51fd7225018adae6c13f51990cc8a54c205272
MD5 7071c7c19ae4bd99308f2d31148af768
BLAKE2b-256 06d0a13f3db841f29f4f154e88cde24b83a9ce30b93a43a0c9da92cb89187eea

See more details on using hashes here.

File details

Details for the file Python_Gravity-1.0.2-cp39-cp39-manylinux1_x86_64.whl.

File metadata

  • Download URL: Python_Gravity-1.0.2-cp39-cp39-manylinux1_x86_64.whl
  • Upload date:
  • Size: 506.0 kB
  • Tags: CPython 3.9
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.5

File hashes

Hashes for Python_Gravity-1.0.2-cp39-cp39-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 3290ac3d8573267b48986f30fa134c11326b7a83c6bb2e54727b05a7274c2263
MD5 f62b8f2ef3b3703ce4a06bd091ade2c0
BLAKE2b-256 f29291c72cf65284c84c6a6d36911a03ada6f20cc80a59f287383011f960333e

See more details on using hashes here.

File details

Details for the file Python_Gravity-1.0.2-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: Python_Gravity-1.0.2-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 112.0 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.5

File hashes

Hashes for Python_Gravity-1.0.2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 531304fd5b13475d1f652678b044d389ca732eeff503476d7a5a251860ae0163
MD5 d2e3b621d70c8324e6614febed473529
BLAKE2b-256 acbbbe1bc24361254363aae18b553e74ae4812caf01c5df1f775adfe8326ff79

See more details on using hashes here.

File details

Details for the file Python_Gravity-1.0.2-cp38-cp38-manylinux1_x86_64.whl.

File metadata

  • Download URL: Python_Gravity-1.0.2-cp38-cp38-manylinux1_x86_64.whl
  • Upload date:
  • Size: 534.5 kB
  • Tags: CPython 3.8
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.5

File hashes

Hashes for Python_Gravity-1.0.2-cp38-cp38-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 97fb2d358670dccccd7161bd62f4eae644619d77a6ddfa1f5056c86d5ba01a9b
MD5 b28a8b2587840220d6e226e7f6d04721
BLAKE2b-256 4359afaa600c0e52e2f3c52a4595c0b9471c3f64adcc83bc0a8d2a5243f61224

See more details on using hashes here.

File details

Details for the file Python_Gravity-1.0.2-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: Python_Gravity-1.0.2-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 109.8 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.5

File hashes

Hashes for Python_Gravity-1.0.2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 9b9bd0c5951adde0de4a727afcbe7f2fe0162f75f5d892d848506c46862bdcb0
MD5 e090c153678318be5409f5096aafbf5f
BLAKE2b-256 3d56e0f468caed9cb2ca8a507f4cc07409d1dffba2733700f2053a7b2c49b461

See more details on using hashes here.

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