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.
Release files for Python-Gravity 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| Python-Gravity-1.0.2.tar.gz | 161.7 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| Python_Gravity-1.0.2-cp39-cp39-win_amd64.whl | CPython 3.9 | CPython 3.9 | Windows x86-64 | Details |
| Python_Gravity-1.0.2-cp39-cp39-manylinux1_x86_64.whl | CPython 3.9 | CPython 3.9 | Linux glibc 2.5+ x86-64 | Details |
| Python_Gravity-1.0.2-cp38-cp38-win_amd64.whl | CPython 3.8 | CPython 3.8 | Windows x86-64 | Details |
| Python_Gravity-1.0.2-cp38-cp38-manylinux1_x86_64.whl | CPython 3.8 | CPython 3.8 | Linux glibc 2.5+ x86-64 | Details |
| Python_Gravity-1.0.2-cp37-cp37m-win_amd64.whl | CPython 3.7 | CPython 3.7 pymalloc | Windows x86-64 | Details |
Total release size: 1.5 MB
Release files / Python-Gravity-1.0.2.tar.gz
| Download URL | Python-Gravity-1.0.2.tar.gz |
|---|---|
| Size | 161.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9159103b8dcd54617da7ac65fc3ce9a19f0040022f69ff7dc7057136e0c0453e
|
|
BLAKE2b-256 checksum How to use checksums |
8ef0cd907aeaa30e42f6e7b6eb39678500b02c5c8a7eb7ce581784b21d28372b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / Python_Gravity-1.0.2-cp39-cp39-win_amd64.whl
| Download URL | Python_Gravity-1.0.2-cp39-cp39-win_amd64.whl |
|---|---|
| Size | 112.0 kB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
17f80817983a58764222235aec51fd7225018adae6c13f51990cc8a54c205272
|
|
BLAKE2b-256 checksum How to use checksums |
06d0a13f3db841f29f4f154e88cde24b83a9ce30b93a43a0c9da92cb89187eea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / Python_Gravity-1.0.2-cp39-cp39-manylinux1_x86_64.whl
| Download URL | Python_Gravity-1.0.2-cp39-cp39-manylinux1_x86_64.whl |
|---|---|
| Size | 506.0 kB |
| Tags | CPython 3.9 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
3290ac3d8573267b48986f30fa134c11326b7a83c6bb2e54727b05a7274c2263
|
|
BLAKE2b-256 checksum How to use checksums |
f29291c72cf65284c84c6a6d36911a03ada6f20cc80a59f287383011f960333e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / Python_Gravity-1.0.2-cp38-cp38-win_amd64.whl
| Download URL | Python_Gravity-1.0.2-cp38-cp38-win_amd64.whl |
|---|---|
| Size | 112.0 kB |
| Tags | CPython 3.8 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
531304fd5b13475d1f652678b044d389ca732eeff503476d7a5a251860ae0163
|
|
BLAKE2b-256 checksum How to use checksums |
acbbbe1bc24361254363aae18b553e74ae4812caf01c5df1f775adfe8326ff79
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / Python_Gravity-1.0.2-cp38-cp38-manylinux1_x86_64.whl
| Download URL | Python_Gravity-1.0.2-cp38-cp38-manylinux1_x86_64.whl |
|---|---|
| Size | 534.5 kB |
| Tags | CPython 3.8 Linux glibc 2.5+ x86-64 |
|
SHA-256 checksum How to use checksums |
97fb2d358670dccccd7161bd62f4eae644619d77a6ddfa1f5056c86d5ba01a9b
|
|
BLAKE2b-256 checksum How to use checksums |
4359afaa600c0e52e2f3c52a4595c0b9471c3f64adcc83bc0a8d2a5243f61224
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / Python_Gravity-1.0.2-cp37-cp37m-win_amd64.whl
| Download URL | Python_Gravity-1.0.2-cp37-cp37m-win_amd64.whl |
|---|---|
| Size | 109.8 kB |
| Tags | CPython 3.7 CPython 3.7 pymalloc Windows x86-64 |
|
SHA-256 checksum How to use checksums |
9b9bd0c5951adde0de4a727afcbe7f2fe0162f75f5d892d848506c46862bdcb0
|
|
BLAKE2b-256 checksum How to use checksums |
3d56e0f468caed9cb2ca8a507f4cc07409d1dffba2733700f2053a7b2c49b461
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|