drik-panchanga
Observational Indian lunisolar calendar (Hindu Drig-ganita / Drik Panchanga) using the Swiss Ephemeris.
This PyPI package installs only the core library module panchanga.py.
Install
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
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.
License
GNU Affero General Public License v3 or later (AGPL-3.0-or-later).
Metadata
Release files for drik-panchanga 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| drik_panchanga-0.1.0.tar.gz | 26.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| drik_panchanga-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 52.5 kB
Release files / drik_panchanga-0.1.0.tar.gz
| Download URL | drik_panchanga-0.1.0.tar.gz |
|---|---|
| Size | 26.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1af17bd1510472f14eade63f43563d0c19d37eb78dc737b11b78cf9645ce1682
|
|
BLAKE2b-256 checksum How to use checksums |
ae8690d07160ed1560145e76f385da2832d664a24871447e01cad55505f33a2a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.11
|
Release files / drik_panchanga-0.1.0-py3-none-any.whl
| Download URL | drik_panchanga-0.1.0-py3-none-any.whl |
|---|---|
| Size | 26.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c28a7b9ab8656087c43f34b2d94023d61bfc70ae4bf5cc956f25ce46b1ebbd83
|
|
BLAKE2b-256 checksum How to use checksums |
1aae7ce90de34f589b44c7f436cdf4b8010d54a76df8d6e1ae693d4334a2f0b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.11
|