periapsis
Package for efficiently modeling and fitting orbits with various parameterizations and priors with support for data from a variety of sources.
Installing
pip
pip install periapsis
Usage Example
import periapsis as p
import numpy as np
fit_data = p.JointData([
p.AstrometryData(t_astro, x, y,x_err,y_err,units={'t':'day','x':'mas','y':'mas','x_err':'mas','y_err':'mas'},system=1),
p.RadialVelocityData(t_rv, rv,rv_err,units={'t':'day','rv':'km/s','rv_err':'km/s'},system=1)
])
fitter = p.MCMCFitter(
nwalkers=32,
niter=10000,
P=p.UniformPrior(10, 20000), # orbital period, days
t0=p.UniformPrior(-0.5, 0.5), # Tp/P,
# where Tp is time of periapsis passage
a1=p.UniformPrior(0.01, 1000), # semi-major axis, AU
e=p.UniformPrior(0, 1), # eccentricity
cosi=p.UniformPrior(-1, 1), # cos(inclination)
omega1=p.UniformPrior(0, 2*np.pi), # argument of periapsis
Omega1=p.UniformPrior(0, 2*np.pi), # longitude of ascending node
)
result = fitter.fit(fit_data)
Metadata
Release files for periapsis 0.99.45
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| periapsis-0.99.45.tar.gz | 92.6 kB | With provenance | Details for periapsis-0.99.45.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| periapsis-0.99.45-py3-none-any.whl | Python 3 | none | any | Details for periapsis-0.99.45-py3-none-any.whl |
Total release size: 173.2 kB
Release files / periapsis-0.99.45.tar.gz
| Download URL | periapsis-0.99.45.tar.gz |
|---|---|
| Size | 92.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4434c2d375ca80a686f8096bb55d86a1c0a7df38545be306498ec576f70822ff
|
|
BLAKE2b-256 checksum How to use checksums |
05aa57acad899478830c0e44ad73be498a5383c2046562f7c70054e9713f7f17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 19, 2026.
Transparency logRelease files / periapsis-0.99.45-py3-none-any.whl
| Download URL | periapsis-0.99.45-py3-none-any.whl |
|---|---|
| Size | 80.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a36c6baff8b02e0cfd05614c087816d658181f106acec93597b170f116c643bf
|
|
BLAKE2b-256 checksum How to use checksums |
f873a0d03e547e14303376f5731eb3521b41a6d1f087898d70df2c73d570fa30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Oct 19, 2026.
Transparency logSecurity for periapsis 0.99.45
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.
Attestation for periapsis-0.99.45.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 Oct 19, 2026.
Transparency logA 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.