Skip to main content

Pure Rust astrology/ephemeris engine — natal charts, synastry, transits, progressions, composites, and Linked Open Data (RDF/SKOS/PROV-O) output

Project description

oxiephemeris (Python)

Pure-Rust astrology / ephemeris engine with Python bindings.

Compute full natal charts, synastry, transits, secondary progressions, and midpoint composites — signs, houses (7 systems), aspects, essential dignities, Arabic Parts, declinations — plus their Linked Open Data (RDF Turtle / N-Triples with SKOS and PROV-O provenance).

The astronomy comes from JPL DE ephemerides (DE440/DE441), passed in as a bytes buffer, so nothing touches the filesystem.

import oxiephemeris as oxi

with open("de440/linux_p1550p2650.440", "rb") as f:
    de = f.read()

# The Unix epoch at the Royal Observatory, Greenwich.
chart = oxi.natal(de, "1970-01-01T00:00:00Z", lat=51.4779, lon=0.0)
sun = next(b for b in chart["bodies"] if b["body"] == "Sun")
print(sun["sign"], round(sun["sign_degrees"], 2), "house", sun["house"])
# -> Capricorn 10.16 house 4

turtle = oxi.natal_rdf(de, "1970-01-01T00:00:00Z", lat=51.4779, lon=0.0)
print(turtle.splitlines()[-3:])

API

  • natal(de, date, lat, lon, *, alt=0, dut1=0, cal="gregorian", system="placidus", sidereal=None, rulership="traditional") -> dict
  • natal_rdf(...) -> str (Turtle; ntriples=True for N-Triples)
  • synastry(de, a, b, *, system, dut1, cal) -> dict / synastry_rdf(...) -> stra/b are objects with date, lat, lon
  • transit(de, natal, transit, ...) -> dict
  • progress(de, natal, target, ...) -> dict
  • composite(de, a, b, ...) -> dict / composite_rdf(...) -> str
  • julday(year, month, day, hours=0, calendar="gregorian") -> float
  • revjul(jd, calendar="gregorian") -> dict

All results are the same stable schema the CLI and the WASM build emit.

Apache-2.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

oxiephemeris-0.1.1-cp38-abi3-win_amd64.whl (383.4 kB view details)

Uploaded CPython 3.8+Windows x86-64

oxiephemeris-0.1.1-cp38-abi3-manylinux_2_34_x86_64.whl (555.5 kB view details)

Uploaded CPython 3.8+manylinux: glibc 2.34+ x86-64

oxiephemeris-0.1.1-cp38-abi3-macosx_11_0_arm64.whl (488.9 kB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

File details

Details for the file oxiephemeris-0.1.1-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: oxiephemeris-0.1.1-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 383.4 kB
  • Tags: CPython 3.8+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for oxiephemeris-0.1.1-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 b09480249fbc3d86e91d642e274532cbfc715393092af1e4237ae666d92c69d6
MD5 50459ca7ddc6e71fd8611de248532fc5
BLAKE2b-256 f72a0fb840951bde5b8b526102b5eae809161545f633ab21344893fc2cc009e2

See more details on using hashes here.

Provenance

The following attestation bundles were made for oxiephemeris-0.1.1-cp38-abi3-win_amd64.whl:

Publisher: pypi-publish.yml on cool-japan/oxiephemeris

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file oxiephemeris-0.1.1-cp38-abi3-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for oxiephemeris-0.1.1-cp38-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 1ad7731267fcd02ad8d121eccd5bf43115aabfdddc3b033833d2359f15c72783
MD5 a73b77cdb5d7a82ad2013e86b05e67cf
BLAKE2b-256 570fdb61817b5b1df28efe06c5594991de95bbee9cd626ae0ed3635db11d9766

See more details on using hashes here.

Provenance

The following attestation bundles were made for oxiephemeris-0.1.1-cp38-abi3-manylinux_2_34_x86_64.whl:

Publisher: pypi-publish.yml on cool-japan/oxiephemeris

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file oxiephemeris-0.1.1-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for oxiephemeris-0.1.1-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 37d02d03ddd60589964d8a98dec53030aa8759fdd1e288604d64c26901510fa9
MD5 d74fec47df5a6cd5a0063a78a5121652
BLAKE2b-256 518e99c73cab6c56fec204f773b4210e07c3e2477d87c04a22348893c50997af

See more details on using hashes here.

Provenance

The following attestation bundles were made for oxiephemeris-0.1.1-cp38-abi3-macosx_11_0_arm64.whl:

Publisher: pypi-publish.yml on cool-japan/oxiephemeris

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page