Metadata-Version: 2.4
Name: drik-panchanga
Version: 0.1.0
Summary: Observational Indian lunisolar calendar (Drik Panchanga) using Swiss Ephemeris
Author: Satish BD
License: AGPL-3.0-or-later
Project-URL: Homepage, https://github.com/bdsatish/drik-panchanga
Project-URL: Repository, https://github.com/bdsatish/drik-panchanga
Project-URL: Issues, https://github.com/bdsatish/drik-panchanga/issues
Keywords: panchanga,hindu,calendar,tithi,nakshatra,swiss-ephemeris
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Religion
Classifier: Topic :: Scientific/Engineering :: Astronomy
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pyswisseph
Dynamic: license-file

# drik-panchanga

Observational Indian lunisolar calendar (Hindu Drig-ganita / Drik Panchanga)
using the [Swiss Ephemeris](https://www.astro.com/swisseph/).

This PyPI package installs only the core library module `panchanga.py`.

## Install

```bash
pip install drik-panchanga
```

Swiss Ephemeris needs `.se1` data files. Either set `SE_EPHE_PATH` to a
directory that contains them, or place them in the default location used by
this library:

- Linux / macOS: `~/.local/share/swisseph` (or `$XDG_DATA_HOME/swisseph`)
- Windows: `%LOCALAPPDATA%\swisseph`

## Usage

```python
import panchanga

panchanga.set_chosen_ayanamsa("citra")
place = panchanga.Place(12.972, 77.594, +5.5)  # lat, lon, timezone hours
jd = panchanga.gregorian_to_jd(panchanga.Date(2026, 1, 15))
print(panchanga.tithi(jd, place))
print(panchanga.nakshatra(jd, place))
```

Full source, GUI, festival rules, and PDF calendar live in the
[GitHub repository](https://github.com/bdsatish/drik-panchanga).

## License

GNU Affero General Public License v3 or later (AGPL-3.0-or-later).
