Skip to main content

gragra

Newtonian gravitational perturbation calculations in Python.

gragra computes Newtonian gravitational potential, acceleration, and gravity-gradient tensor observables from prescribed mass distributions, density perturbations, moving sources, and displacement fields. Its principal application is Newtonian-noise modelling for gravitational-wave detectors.

Install

Requires Python 3.11 or newer.

python -m pip install gragra==0.2.0

See the model and method catalogue and verification and limitations for documented applicability conditions.

Minimal example

import numpy as np
from gragra import PointMass, point_acceleration

point = PointMass(mass_kg=1.0, position_m=[0.0, 0.0, 0.0])
acc = point_acceleration(point, [[1.0, 0.0, 0.0]])
print(acc)  # acceleration vector, m/s^2

The default NumPy backend is available without compiled extensions. Optional features include mesh I/O, HDF5 field input, Numba, and C++/GPU backends subject to their documented dependencies and environment requirements.

Documentation and development

gragra evaluates gravity perturbations from prescribed sources and fields. It is not a general elastodynamic or fluid-dynamic PDE solver.

MIT License. Maintainer: Tatsuki Washimi.

Metadata

Release files for gragra 0.2.0

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

Source distribution (sdist)

Source distribution for gragra 0.2.0
File Size Uploaded Provenance Actions
gragra-0.2.0.tar.gz 4.7 MB With provenance Details for gragra-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gragra 0.2.0
File Interpreter ABI Platform Actions
gragra-0.2.0-py3-none-any.whl Python 3 none any Details for gragra-0.2.0-py3-none-any.whl

Total release size: 5.5 MB

Release files / gragra-0.2.0.tar.gz

Download URL gragra-0.2.0.tar.gz
Size 4.7 MB
Tags Source
SHA-256 checksum
How to use checksums
66f0a2eecfca67b8c06b933f0d4fe231e8f5a429e3054d745812970161df098a
BLAKE2b-256 checksum
How to use checksums
576cb0a706f711f3e6f2d3832b3d91bccf185a95b01724dca865c03aaa3e5696
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Release files / gragra-0.2.0-py3-none-any.whl

Download URL gragra-0.2.0-py3-none-any.whl
Size 803.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ce6f961a36d720c09b0e7c977b367f7270fb88cb1215440dc64b8e02ad53094
BLAKE2b-256 checksum
How to use checksums
cffc47946944bbdfa136741a087143ff2fe7fe576e14c223fe213be4e9bb3f80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

Security for gragra 0.2.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for gragra-0.2.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.

Transparency log

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