Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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.0rc1

Version 0.2.0rc1 is a pre-release. 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.0rc1

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.0rc1
File Size Uploaded Provenance Actions
gragra-0.2.0rc1.tar.gz 4.7 MB With provenance Details for gragra-0.2.0rc1.tar.gz

Built distribution (wheel)

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

Total release size: 5.5 MB

Release files / gragra-0.2.0rc1.tar.gz

Download URL gragra-0.2.0rc1.tar.gz
Size 4.7 MB
Tags Source
SHA-256 checksum
How to use checksums
92bdc0aee55bde97c5a622b50789a9ba0fc672c0e68d1cdd293a5ba9b767516d
BLAKE2b-256 checksum
How to use checksums
ecabf562e83bc04c934bd606e0d52b9c71faa82d7755bab6153096eb2a2c4be4
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 11, 2026.

Transparency log

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

Download URL gragra-0.2.0rc1-py3-none-any.whl
Size 803.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
922198f14f0060fbe561d8ed9ccb00c4f4e49c7b18d27801cf3c371441f064a1
BLAKE2b-256 checksum
How to use checksums
4ec2669aac7c8e8f9dedbac85d89b3d95909b566d0360c6ca776c7db354d822b
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 11, 2026.

Transparency log

Security for gragra 0.2.0rc1

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.0rc1.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 11, 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