Skip to main content
greapy

Python 3.8+ image image image

Forks Stars

A python-based implementation of the General Relativistic Entropic Acceleration (GREA) theory

General Relativistic Entropic Acceleration is a theoretical framework that offers an alternative explanation for the observed accelerated expansion of the universe through entropic forces, without invoking a cosmological constant or dark energy. GREApy provides the core GREA background cosmology, growth factor computation, a Cobaya theory wrapper for Bayesian parameter estimation, and post-processing utilities for MCMC chains.

Quick start

import numpy as np
from greapy import GREA

# Initialise with default (best-fit) parameters
model = GREA()

# Hubble parameter as a function of redshift
z = np.linspace(0, 2, 100)
H_z = model.H(z)  # km/s/Mpc

# Key derived quantities
print(model.w0)       # effective dark energy equation-of-state today
print(model.rdrag)    # sound horizon at the drag epoch (Mpc)
print(model.alpha)    # GREA alpha parameter

Installation

uv pip install greapy          # recommended
pip install greapy             # alternative

For optional plotting and Cobaya support:

uv pip install "greapy[extra]"
pip install "greapy[extra]"

See the documentation for full installation details.

Citation

If you use GREApy in your research, consider citing:

@article{Calderon:2025dhj,
    author = "Calderon, R. and others",
    title = "{Constraining GREA, an alternative theory accounting for the present cosmic acceleration}",
    eprint = "2509.21491",
    archivePrefix = "arXiv",
    primaryClass = "astro-ph.CO",
    reportNumber = "DESI-2024-0464, IFT-UAM/CSIC-25-99, FERMILAB-PUB-25-0737-PPD",
    month = "9",
    year = "2025"
}

and

@article{Garcia-Bellido:2021idr,
    author = "Garcia-Bellido, Juan and Espinosa-Portales, Llorenc",
    title = "{Cosmic acceleration from first principles}",
    eprint = "2106.16014",
    archivePrefix = "arXiv",
    primaryClass = "gr-qc",
    reportNumber = "IFT-UAM/CSIC-21-75",
    doi = "10.1016/j.dark.2021.100892",
    journal = "Phys. Dark Univ.",
    volume = "34",
    pages = "100892",
    year = "2021"
}

Metadata

Release files for greapy 0.3.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 greapy 0.3.3
File Size Uploaded Provenance Actions
greapy-0.3.3.tar.gz 1.7 MB With provenance Details for greapy-0.3.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for greapy 0.3.3
File Interpreter ABI Platform Actions
greapy-0.3.3-py2.py3-none-any.whl Python 2, Python 3 none any Details for greapy-0.3.3-py2.py3-none-any.whl

Total release size: 1.7 MB

Release files / greapy-0.3.3.tar.gz

Download URL greapy-0.3.3.tar.gz
Size 1.7 MB
Tags Source
SHA-256 checksum
How to use checksums
9654142ac77883d850a820d90cd826610d686d6b311950a5c32863984c9593d3
BLAKE2b-256 checksum
How to use checksums
950bf3a0ebe03291db2ed3e5d71a7a88f916040edaf918b6174dd8ba302e7d3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 24, 2026.

Transparency log

Release files / greapy-0.3.3-py2.py3-none-any.whl

Download URL greapy-0.3.3-py2.py3-none-any.whl
Size 32.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
49f6820752260cd1325342bf86488914ccc2f92739ef78f5d01298c717f3b828
BLAKE2b-256 checksum
How to use checksums
9153a8af553631d15be301aaeecd005bb9eb60fee20ca994b31fefc5ab31952f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 24, 2026.

Transparency log

Security for greapy 0.3.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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for greapy-0.3.3.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 Jun 24, 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