Metadata-Version: 2.4
Name: eshana
Version: 0.4.1
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Rust
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Scientific/Engineering :: Astronomy
Requires-Dist: pytest>=8 ; extra == 'test'
Requires-Dist: jsonschema>=4 ; extra == 'test'
Provides-Extra: test
License-File: LICENSE
Summary: ESHANA - Extensible Spatiotemporal Hypersystem for Astroinformatics, Natural Cycles & Associations. A Rust-first computation layer for celestial positions, traditions and traceable derived knowledge.
Keywords: astronomy,ephemeris,astrology,jyotish,numerology,human-design,provenance
Author: Neo-Pragnya
License-Expression: Apache-2.0
Requires-Python: >=3.9
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Documentation, https://neo-pragnya.github.io/ESHANA/docs/
Project-URL: Homepage, https://neo-pragnya.github.io/ESHANA/
Project-URL: Repository, https://github.com/Neo-Pragnya/ESHANA

<!-- Generated by scripts/pypi_readme.py from the repository README.md. Do not edit by hand. -->

<div align="center">

<img src="https://neo-pragnya.github.io/ESHANA/readme/hero.svg" alt="ESHANA: a turning zodiac wheel with the 27 nakshatras and the grahas on their orbits" width="100%" />

# ESHANA

**E**xtensible **S**patiotemporal **H**ypersystem for **A**stroinformatics, **N**atural Cycles & **A**ssociations

### *From celestial positions to connected meaning.*

A Rust engine for celestial positions, civil time and the traditions built on them (Jyotiṣa, Western astrology,
Human Design and numerology), with an offline **chart studio**, a Python API and a CLI. Every number is computed,
every rule is named, and **no interpretation is ever invented**.

[![PyPI](https://img.shields.io/pypi/v/eshana?label=PyPI&color=f5c451&labelColor=1b2156)](https://pypi.org/project/eshana/)
[![Python](https://img.shields.io/badge/python-3.9%2B-8f7bff?labelColor=1b2156)](https://pypi.org/project/eshana/)
[![Rust](https://img.shields.io/badge/engine-Rust-e8744f?labelColor=1b2156)](https://github.com/Neo-Pragnya/ESHANA/tree/main/crates/eshana-engine)
[![WebAssembly](https://img.shields.io/badge/studio-WebAssembly-5dade2?labelColor=1b2156)](https://github.com/Neo-Pragnya/ESHANA/blob/main/docs/adr/013-local-engine-adapter.md)
[![License](https://img.shields.io/badge/license-Apache--2.0-58d68d?labelColor=1b2156)](https://github.com/Neo-Pragnya/ESHANA/blob/main/LICENSE)
[![CI](https://github.com/Neo-Pragnya/ESHANA/actions/workflows/ci.yml/badge.svg)](https://github.com/Neo-Pragnya/ESHANA/actions/workflows/ci.yml)
[![Docs site](https://github.com/Neo-Pragnya/ESHANA/actions/workflows/docs-site.yml/badge.svg)](https://neo-pragnya.github.io/ESHANA/)
[![Acceptance](https://img.shields.io/badge/release%20gate-122%20scenarios%20·%20PROMOTE-58d68d?labelColor=1b2156)](https://github.com/Neo-Pragnya/ESHANA/blob/main/acceptance/README.md)

[**📖 Docs**](https://neo-pragnya.github.io/ESHANA/) ·
[**🖼️ Gallery**](https://neo-pragnya.github.io/ESHANA/gallery/) ·
[**🪐 Live studio**](https://neo-pragnya.github.io/ESHANA/reports/example-studio-app.html) ·
[**📝 Changelog**](https://github.com/Neo-Pragnya/ESHANA/blob/main/CHANGELOG.md) ·
[**🗺️ Roadmap**](https://github.com/Neo-Pragnya/ESHANA/blob/main/docs/next-steps.md)

</div>

---

## 📚 Contents

- [✨ Why ESHANA?](#-why-eshana)
- [🧭 Three layers, kept apart](#-three-layers-kept-apart)
- [⚡ Quick start](#-quick-start)
- [🪐 ESHANA Studio](#-eshana-studio)
- [🔭 What it computes](#-what-it-computes)
- [⚙️ How it works](#️-how-it-works)
- [🧪 One engine, every question](#-one-engine-every-question)
- [🛡️ Guarantees](#️-guarantees)
- [📏 Accuracy, measured](#-accuracy-measured)
- [🧩 Ways to use it](#-ways-to-use-it)
- [🛠️ Development](#️-development)
- [🗺️ Repository map](#️-repository-map)
- [🤝 Status and honesty](#-status-and-honesty)

---

## ✨ Why ESHANA?

Astrology software usually mixes three very different things on one screen: astronomy you can verify, rules that
belong to one school, and readings someone wrote. ESHANA pulls them apart so each can be checked on its own terms.

| | 😕 The usual way | 🌟 With ESHANA |
|---|---|---|
| 🕰️ **Birth time** | A local time is quietly turned into UTC; a time that the clocks skipped becomes *something* | IANA zones with historic offsets; a skipped or repeated time is an **error with a code**, never a guess |
| 📐 **Methods** | Ayanāṃśa, houses and daśā variants are buried in settings | Every method has an **id**; an unknown one is refused (`ESH-METHOD`); the choice travels with the result |
| 🧾 **Results** | Numbers without a trail | **Provenance** on every envelope: engine, provider, tz database, rule versions, assumptions and a `config_hash` |
| 🔮 **Meaning** | Readings presented as facts | `interpretations` is **always empty**; rules are labelled `tradition_rule`; research scores are labelled *experimental* |
| 🌍 **Surfaces** | The web app and the API drift apart | One `Engine::execute_json` behind the CLI, Python and the studio (compiled to WebAssembly) |
| 🔒 **Privacy** | Birth data uploaded to a server | Everything runs on your machine; the studio is one offline HTML file |

---

## 🧭 Three layers, kept apart

| Layer | Example | Produced by |
|---|---|---|
| 🧮 **Calculated** | ecliptic longitude, speed, Ascendant, sunrise | verifiable code, tested against JPL DE440s and the Swiss Ephemeris |
| 📜 **Derived by a named system** | nakshatra and pada, varga sign, daśā period, muhūrta window, Human Design gate, name number | a versioned **rule pack** with a method id, labelled `tradition_rule` |
| 🔮 **Interpretive** | character, meaning, compatibility | **never the engine**: `interpretations` is always empty |

ESHANA does not claim that astrology, numerology or Human Design predict anything. It makes their rules
**computable and auditable**.

---

## ⚡ Quick start

<img src="https://neo-pragnya.github.io/ESHANA/readme/walkthrough-studio.svg" alt="Terminal walkthrough: pip install eshana; eshana-report writes ramana.html; eshana-report new waits for birth details in a local form and writes charts/asha-rao-1990-05-15.html" width="100%" />

```bash
pip install eshana

# 🪐 a full chart studio in one offline HTML file
eshana-report --date 1992-05-28 --time 20:05 --tz Asia/Kolkata --lat 17.385 --lon 78.487 -o chart.html

# 📝 or let a form ask for the details: it opens in your browser, writes the chart, and stops
eshana-report new -o charts/
```

```python
from eshana import ChartEngine, Context

ctx = Context.from_local_birth(date="1992-05-28", time="20:05:00", timezone="Asia/Kolkata",
                               latitude=17.385, longitude=78.487)
chart = ChartEngine().vedic_chart(ctx, ayanamsha="lahiri", divisions=[1, 9], dasha=True)

chart.position("moon")["sign"]["name"]           # 'Meena'
chart.attribute("vedic.moon.nakshatra")["name"]  # 'Revati'
chart.provenance["assumptions"]                  # everything that was chosen for you
chart.to_html("chart.html")                      # the studio, from Python
```

---

## 🪐 ESHANA Studio

`eshana-report` writes **one self-contained HTML file** that works as a multi-page app: no server, no network,
prints cleanly. With `--live` it carries the engine itself, compiled to WebAssembly, so the compare workspace and the
playground recompute offline with exactly the same rules as Python and the CLI.

<table>
<tr>
<td width="33%"><a href="https://neo-pragnya.github.io/ESHANA/reports/reference-ramana.html#/chakra"><img src="https://neo-pragnya.github.io/ESHANA/gallery/jyotish-chakra.webp" alt="Jyotish Chakra"/></a><br/><b>🌀 Jyotish Chakra</b><br/><sub>Every graha by exact degree on the nakshatra, pada and rāśi rings, with the D1 chart and the Nadi directions in the centre.</sub></td>
<td width="33%"><a href="https://neo-pragnya.github.io/ESHANA/reports/reference-ramana.html#/charts"><img src="https://neo-pragnya.github.io/ESHANA/gallery/charts.webp" alt="South and North Indian charts"/></a><br/><b>🔲 South and North Indian charts</b><br/><sub>Grahas bold and first; ārūḍha padas and aspect marks smaller; crowded signs reflow.</sub></td>
<td width="33%"><a href="https://neo-pragnya.github.io/ESHANA/reports/reference-ramana.html#/vargas"><img src="https://neo-pragnya.github.io/ESHANA/gallery/vargas.webp" alt="Vargas"/></a><br/><b>🧩 Vargas</b><br/><sub>D1 to D60, plus parivṛtti D2/D3, D81, D108 and D144 as named methods.</sub></td>
</tr>
<tr>
<td><a href="https://neo-pragnya.github.io/ESHANA/reports/example-studio-app.html#/calendar"><img src="https://neo-pragnya.github.io/ESHANA/gallery/calendar.webp" alt="Personal calendar"/></a><br/><b>📅 Personal calendar</b><br/><sub>Muhūrta windows with tārā and candra bala; export CSV or ICS.</sub></td>
<td><a href="https://neo-pragnya.github.io/ESHANA/reports/example-studio-app.html#/horary"><img src="https://neo-pragnya.github.io/ESHANA/gallery/kp-horary.webp" alt="KP horary"/></a><br/><b>🎯 KP horary</b><br/><sub>Numbers 1–249; cusps within 0.07″ of an independent reference.</sub></td>
<td><a href="https://neo-pragnya.github.io/ESHANA/reports/example-studio-app.html#/compare"><img src="https://neo-pragnya.github.io/ESHANA/gallery/compare.webp" alt="Compare workspace"/></a><br/><b>🔁 Compare</b><br/><sub>Natal, progressed and transit side by side, recomputed in the page.</sub></td>
</tr>
<tr>
<td><a href="https://neo-pragnya.github.io/ESHANA/reports/reference-ramana.html#/dasha/chara"><img src="https://neo-pragnya.github.io/ESHANA/gallery/dasha.webp" alt="Daśā"/></a><br/><b>⏳ Daśās</b><br/><sub>Sixteen systems, including seven conditional daśās that say whether their condition holds.</sub></td>
<td><a href="https://neo-pragnya.github.io/ESHANA/reports/reference-ramana.html#/strength"><img src="https://neo-pragnya.github.io/ESHANA/gallery/strength.webp" alt="Strength"/></a><br/><b>💪 Strength</b><br/><sub>Ṣaḍbala against the required minimum, bhāva bala and viṃśopaka.</sub></td>
<td><a href="https://neo-pragnya.github.io/ESHANA/reports/example-birth-chart.html#/human-design"><img src="https://neo-pragnya.github.io/ESHANA/gallery/human-design.webp" alt="Human Design"/></a><br/><b>🧬 Human Design</b><br/><sub>The design instant by the 88° solar arc, gates, channels and properties.</sub></td>
</tr>
</table>

**Also in the studio:**
- 🖼️ **Download any chart as PNG or SVG**, exactly as shown: your layers, filters, rotation, theme and language. The PNG
  is print-sized with a caption, and the SVG opens in any editor.
- 🌐 **Interface language** as a reader setting: English by default, Hindi included. Labels only, never values.
- ⌨️ **Keyboard first**: ⌘K palette, a playground driven by the arrow keys with undo, focus rings everywhere.
- 🌗 **Light and dark themes**, checked for contrast by tests on every page.

👉 [**See all 23 views in the gallery**](https://neo-pragnya.github.io/ESHANA/gallery/) ·
[**Open the live studio**](https://neo-pragnya.github.io/ESHANA/reports/example-studio-app.html) ·
[Studio guide](https://github.com/Neo-Pragnya/ESHANA/blob/main/docs/guides/html-report.md)

---

## 🔭 What it computes

| Area | Highlights |
|---|---|
| 🕰️ **Time and positions** | IANA zones with historic offsets (war time, double summer time, local mean time); ten bodies plus the nodes, apparent geocentric; an `analytic` provider with no data files and an `spk` provider for JPL kernels |
| 🌙 **Jyotiṣa** | rāśi, nakshatra and pada; vargas D1–D60 plus D81, D108 and D144; **ten ayanāṃśas**; graha and rāśi drishti; aṣṭakavarga; ṣaḍbala; Jaimini kārakas and ārūḍhas; yogas and doshas; sahams; Sarvatobhadra and Kota chakras; varṣaphala; pañca pakṣī |
| ⏳ **Daśās** | Vimśottarī to five levels, Yoginī, Chara and more, **sixteen systems** in all, including seven conditional daśās that report whether their condition holds |
| 🗓️ **Timing** | stations and retrograde intervals; exact crossings and aspects; **dated aṣṭakavarga**; pañcāṅga with horā, choghaḍiyā and the kālams |
| 🪔 **Muhūrta** | windows as exact `[start, end)` intervals under versioned profiles; an empty result says which rule removed every window; **personal and pair calendars** (JSON, CSV, ICS) |
| 🎯 **KP** | sub-lords and significators; **horary numbers 1–249** with Placidus cusps; cusp-occupancy methods named, the natal default unchanged |
| 💞 **Matching** | the 36-point aṣṭakūṭa, unchanged byte for byte; rajju, vedha, mahendra, strī-dīrgha and Maṅgala doṣa with every cancellation listed; cross-chart factors |
| ♈ **Western** | tropical; whole-sign, equal and Placidus (refused where undefined); aspects with the applying state; **secondary progressions** with named angle methods |
| 🧬 **Human Design** | the design instant by solving the 88° solar arc (not "88 days"), gates, lines, channels, centres, type, authority and profile |
| 🔢 **Numerology** | Pythagorean and Chaldean as separate schemas, Lo Shu and Kua, compound numbers, letter transits |
| 🧪 **Research (experimental)** | each score is written up first (factors, weights, worked examples); one window-ranking model, labelled experimental |

Every method family and id the engine knows: `eshana methods`, or [docs/reference/methods.md](https://github.com/Neo-Pragnya/ESHANA/blob/main/docs/reference/methods.md).

---

## ⚙️ How it works

<img src="https://neo-pragnya.github.io/ESHANA/readme/eshana-flow.svg" alt="Animated flow: your question is resolved to UTC by civil time, the engine computes positions from an ephemeris and rules from versioned rule packs, and returns one envelope with provenance that the surfaces only render" width="100%" />

- **One entry point.** `Engine::execute_json` takes a JSON request (with an `op`) and returns a JSON envelope. The CLI,
  the Python package and the studio's WebAssembly build are thin shells around it.
- **Rule packs are data.** YAML files with versions and method ids, printed by `eshana rulesets`. A changed formula is
  a new rule version, with golden fixtures that show the difference.
- **Surfaces never compute.** The studio renders envelopes; it never works out a factor of its own.

---

## 🧪 One engine, every question

<img src="https://neo-pragnya.github.io/ESHANA/readme/walkthrough-engine.svg" alt="Terminal walkthrough: a Vedic chart's positions, the Moon's nakshatra and pada, muhūrta windows that skip Wednesday for Abhijit, a KP horary Ascendant and sub-lord, and an ESH-TIME-NONEXISTENT error for a skipped clock time" width="100%" />

Every line in these walkthroughs is real output from eshana 0.4 (regenerate them from
[`assets/readme/src/`](https://neo-pragnya.github.io/ESHANA/readme/src)).

---

## 🛡️ Guarantees

Each of these is a scenario in the release gate (`make acceptance`: **122 scenarios**, all passing):

- 🚫 **Sidereal without an ayanāṃśa is refused**, unless you ask for defaults, in which case the default is recorded.
- ⏰ **A skipped or repeated local time is refused** with its own code; pick `--fold earliest|latest` to resolve a repeat.
- 🧊 **Placidus beyond the polar circle is refused**, not approximated.
- ❓ **An unknown birth time gets intervals, not noon.** The Ascendant and houses are never invented.
- 🔁 **The same request returns the same bytes**, with a `config_hash` naming the settings.
- 🙈 **A chart writes nothing to disk** and sends nothing anywhere.
- 🧷 **Unavailable is not zero.** A factor that cannot be computed (a polar sunrise, a node without a table) says so,
  and says what is missing.

---

## 📏 Accuracy, measured

Not promised: measured against independent references and written down.

| What | Against | Result |
|---|---|---|
| 🌍 Positions, `spk` provider | an independent JPL DE440s pipeline | **0.3″** |
| 🌍 Positions, `analytic` provider (40 charts) | Swiss Ephemeris (offline oracle) | Moon 6″ worst, Sun 18″; outer planets arc-minute class |
| 🧭 Ascendant and cusps | Swiss Ephemeris | **3.2″** worst |
| 🎯 KP horary cusps | Swiss Ephemeris `houses_armc` | **0.07″** |
| 📐 Ten ayanāṃśas, 1800–2100 | Swiss Ephemeris | **0.05″** worst (De Luce) |
| ⏱️ Stations and crossings | Swiss Ephemeris event search | within the stated solver tolerance |
| 📚 Published charts | printed reference values | see the accuracy report |

The Swiss Ephemeris is used **only** as an offline test oracle: never bundled, never linked. Details:
[accuracy report](https://github.com/Neo-Pragnya/ESHANA/blob/main/benchmarks/accuracy/birth-chart-accuracy.md) · [provider accuracy](https://github.com/Neo-Pragnya/ESHANA/blob/main/benchmarks/golden/accuracy.md) ·
[accuracy guide](https://github.com/Neo-Pragnya/ESHANA/blob/main/docs/guides/accuracy-suite.md).

---

## 🧩 Ways to use it

| You want… | Use | Example |
|---|---|---|
| 🪐 a chart to read, offline | `eshana-report` | `eshana-report --date … --tz … --lat … --lon … --live -o chart.html` |
| 📝 to type details, not flags | `eshana-report new` | a local form on 127.0.0.1 that writes the chart and stops |
| 🐍 numbers in Python | `eshana` | `eshana.execute({"op": "muhurta_windows", …})` or `ChartEngine()` |
| 🧰 JSON from a shell | the Rust CLI | `eshana chart vedic …`, `eshana muhurta …`, `eshana kp-horary …` |
| 🗓️ a calendar file | `personal_calendar` | `format: "ics"` for any calendar app |
| 🕸️ the engine in a browser | `eshana-wasm` | three C functions, no bindings generator ([ADR-013](https://github.com/Neo-Pragnya/ESHANA/blob/main/docs/adr/013-local-engine-adapter.md)) |

```bash
pip install eshana                                    # Python package + eshana-report
cargo build --release -p eshana-cli                   # the Rust CLI, from source
```

The prebuilt wheel is for macOS on Apple silicon (abi3, CPython 3.9 and later); other platforms build from the sdist,
which needs a Rust toolchain. More in [ways to use ESHANA](https://github.com/Neo-Pragnya/ESHANA/blob/main/docs/guides/ways-to-use.md).

---

## 🛠️ Development

```bash
make verify            # fmt, clippy -D warnings, every Rust test, Python tests, tracker freshness, accuracy suite
make acceptance        # the Gherkin release gate (must say PROMOTE)
make studio-journeys   # real Chrome: every studio page, text hierarchy, downloads, contrast, the new-chart form
make preview           # local preview of the studio and the website
```

Work is tracked in [`planning/backlog.json`](https://github.com/Neo-Pragnya/ESHANA/blob/main/planning/backlog.json), rendered as
[`planning/TRACKING.md`](https://github.com/Neo-Pragnya/ESHANA/blob/main/planning/TRACKING.md), with exact status words: *proposed*, *implemented*, *verified*
(evidence required) and *released*. Publishing: [docs/guides/publishing.md](https://github.com/Neo-Pragnya/ESHANA/blob/main/docs/guides/publishing.md).

---

## 🗺️ Repository map

| Path | What |
|---|---|
| `crates/` | `eshana-core`, `-time`, `-ephemeris`, `-engine` (rules and rule packs), `-cli`, `-python`, `-wasm` |
| `docs/` | concepts, guides, reference and ADRs; also the source of the website |
| `website/` | the Astro site: landing page, live demos, gallery |
| `acceptance/` | Gherkin capability scenarios, the release gate, and the browser journeys |
| `accuracy/`, `benchmarks/` | the birth-chart accuracy suite, golden fixtures and offline oracle data |
| `examples/` | example studio reports and the gallery screenshots, all generated by the real engine |
| `assets/readme/` | the animated SVGs on this page, with their sources |
| `planning/` | the backlog, the tracker and the capability-expansion plan |

---

## 🤝 Status and honesty

- 📦 **Version 0.4**, on [PyPI](https://pypi.org/project/eshana/). Open source under Apache-2.0
  ([ADR-011](https://github.com/Neo-Pragnya/ESHANA/blob/main/docs/adr/011-open-source-distribution.md)).
- 🧪 **Experimental pieces are labelled.** Muhūrta purpose presets and the research window score wait for a
  practitioner's review. The conditional daśās wait for published worked examples.
- 🔭 **Know the provider.** `analytic` is arc-minute class for Jupiter and Saturn; use `spk` with a JPL kernel when
  that matters.
- 🧭 Next steps: [docs/next-steps.md](https://github.com/Neo-Pragnya/ESHANA/blob/main/docs/next-steps.md) · changes: [CHANGELOG.md](https://github.com/Neo-Pragnya/ESHANA/blob/main/CHANGELOG.md) ·
  design record: [ESHANA_Project_Vision_and_Master_Plan.md](https://github.com/Neo-Pragnya/ESHANA/blob/main/ESHANA_Project_Vision_and_Master_Plan.md).

<div align="center">

**Calculated · Derived by a named system · Never interpreted for you** 🌌

</div>

