Skip to main content

gravity-constant

A simple Python package containing the standard gravitational acceleration constant.

Installation

pip

pip install gravity-constant

Homebrew

brew tap iiTzMarius/python-package https://github.com/iiTzMarius/python-package
brew install iiTzMarius/python-package/gravity-constant

To import the module installed by Homebrew, add it to PYTHONPATH:

PYTHONPATH="$(brew --prefix gravity-constant)/libexec" python3 -c "from gravity import G; print(G)"

Releasing

Commit and push the formula and version update to GitHub, create the release tag, build and publish the package to PyPI, then push the tag:

git push origin main
git tag v0.1.3
python3 -m build
python3 -m twine upload dist/*
git push origin v0.1.3

The Homebrew formula uses the v0.1.3 Git tag. Push the updated formula on main before publishing that tag.

Usage

from gravity import G

print(G)

Output:

9.80665

Constant

G = 9.80665 m/s²

Metadata

Release files for gravity-constant 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gravity-constant 0.1.3
File Size Uploaded Provenance Actions
gravity_constant-0.1.3.tar.gz 1.5 kB Without provenance Details for gravity_constant-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gravity-constant 0.1.3
File Interpreter ABI Platform Actions
gravity_constant-0.1.3-py3-none-any.whl Python 3 none any Details for gravity_constant-0.1.3-py3-none-any.whl

Total release size: 3.2 kB

Release files / gravity_constant-0.1.3.tar.gz

Download URL gravity_constant-0.1.3.tar.gz
Size 1.5 kB
Tags Source
SHA-256 checksum
How to use checksums
65e1f2d98a77a81ef9071f49745cfb9b8cae4f9c980dc7b6d90082b3df406d2c
BLAKE2b-256 checksum
How to use checksums
dad1d0060bc597edce1620e1352937c08f35756c038c67862868c6941e383e45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Release files / gravity_constant-0.1.3-py3-none-any.whl

Download URL gravity_constant-0.1.3-py3-none-any.whl
Size 1.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
300ee765649010c8a0b19a58ee92d6e4d327cecf2f32e1e771ecb17ef03d156a
BLAKE2b-256 checksum
How to use checksums
a8e6c327f20530913ca5f838949e84acbf85d597b54e109a972a9e4ead40a8c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Security for gravity-constant 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page