astronereus
Python frontend for Nereus — trans-dimensional Bayesian inference for exoplanet orbits.
You do not need Julia. Nereus itself is Julia, but this package fetches a prebuilt runtime on first use and runs it out-of-process in a warm daemon. Nothing is compiled at install time.
pip install astronereus
That is the whole install. The first time you actually ask for a fit, the runtime (~480 MB) is fetched and warmed once, and you are told it is happening:
astronereus: no Julia runtime yet -- fetching it once now.
astronereus: fetching runtime (macos-arm64, julia 1.11.9) ...
astronereus: unpacking ...
astronereus: warming the runtime (one-time, a few minutes) ...
astronereus: ready (207s)
pip cannot do that step itself -- wheels have no post-install hook -- so it
happens on first use instead. To get it over with ahead of a workshop or a
flight, run it deliberately:
python -c "import astronereus; astronereus.install()"
NEREUS_NO_AUTO_INSTALL=1 turns the automatic fetch off and makes the first
call fail with instructions instead, for CI and air-gapped machines.
The distribution and the import are both astronereus. The name nereus on
PyPI belongs to an unrelated geophysics package, and a distribution whose import
name differs from its install name is a thing every user has to be told, so they
are deliberately the same string here.
Use
import astronereus
summary = astronereus.run_job(cfg) # one-shot
with astronereus.session() as s: # or reuse one warm daemon
a = s.run_job(cfg_a)
pg = s.detect.rv_periodogram(t=t, rv=rv, rv_err=err)
Typed entry points per observable — fit_rv, fit_transit, fit_astrometry,
fit_rm, fit_tomography, fit_ttv, fit_binary, fit_joint — take channel
objects (RV, Transit, Astrometry, RM, Night, TTV, SB2) and return
a JobResult.
The first install() unpacks the runtime and warms it once (a few minutes);
every process after that starts in about twenty seconds. NEREUS_BUNDLE_URL
points the installer at a local file or file:// URL — that is the intended
path for a workshop room, where thirty people pulling half a gigabyte over
conference wifi is not a plan.
Runtime bundles
Prebuilt runtimes are attached to the
Nereus.jl releases, with
SHA256SUMS alongside:
| platform | size |
|---|---|
macos-arm64 |
466 MiB |
linux-x86_64 |
690 MiB |
linux-aarch64 |
650 MiB |
install() picks the one for your platform and verifies it against the
published checksum.
Upgrading the package does not refresh a runtime you already have — the
bundle is a separate download cached outside site-packages. When a release
ships against a newer Nereus, session() says so on start-up; get it with:
python -c "import astronereus; astronereus.install(force=True)"
``` For a classroom, fetch it once and point everyone at the
local copy instead:
```sh
export NEREUS_BUNDLE_URL=/Volumes/NEREUS/nereus-runtime-1.11.9-macos-arm64.tar.zst
NEREUS_HOME relocates the runtime cache out of the default platform cache
directory.
Licence
MIT — see LICENSE.
Metadata
Release files for astronereus 0.4.34
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 |
|---|---|---|---|---|
| astronereus-0.4.34.tar.gz | 82.4 kB | Without provenance | Details for astronereus-0.4.34.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| astronereus-0.4.34-py3-none-any.whl | Python 3 | none | any | Details for astronereus-0.4.34-py3-none-any.whl |
Total release size: 163.9 kB
Release files / astronereus-0.4.34.tar.gz
| Download URL | astronereus-0.4.34.tar.gz |
|---|---|
| Size | 82.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
454a83bf5c952bc7e5ab741d2579c4f2cb85b433ecb2a45a2b0fa8b4b91d5c36
|
|
BLAKE2b-256 checksum How to use checksums |
9a526cb48e0d79cfe83ba3b32fcfb2fa306e3ad6dd5c00c487bd9b13b879646c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.15
|
Release files / astronereus-0.4.34-py3-none-any.whl
| Download URL | astronereus-0.4.34-py3-none-any.whl |
|---|---|
| Size | 81.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e8ae06d611a410d38c56c8afb8e737c78f71450dc910be04f7feba74b9870ae5
|
|
BLAKE2b-256 checksum How to use checksums |
9f5337cde1bee90e84b899a08ce1ef1ebc5da689419c1d3c08f458659b3e045e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.15
|
Security for astronereus 0.4.34
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.