ISKCON compliant Ekadashi calculator using Swiss Ephemeris
Project description
Ekadashi Python Module
A lightweight Python module to calculate Vaishnava Ekadashi dates using astronomical calculations.
Ekadashi is a sacred fasting day observed on the eleventh lunar day (Ekadashi Tithi) of each fortnight in the Hindu lunar calendar. This module determines Ekadashi using Sun–Moon angular calculations and traditional Vaishnava observance rules.
Installation
Install the module from PyPI:
pip install ekadashi
Usage
Once installed, you can simply import the module in Python:
import ekadashi
# Check if today is Ekadashi
print(ekadashi.is_ekadashi("2026-03-29"))
# Find the next upcoming Ekadashi
print(ekadashi.next_ekadashi())
# Get all Ekadashi dates for a given year
print(ekadashi.get_ekadashi_dates(2026))
Example output:
{
"date": "2026-03-29",
"paksha": "Shukla",
"days_until": 14
}
Features
- Accurate Ekadashi detection using astronomical tithi calculations
- Implements Vaishnava Ekadashi observance rules
- Handles Dashami purity and Arunodaya conditions
- Check if a specific date is Ekadashi
- Find the next upcoming Ekadashi
- Retrieve all Ekadashi dates for a given year
- Lightweight and easy to integrate into applications
Example
import ekadashi
dates = ekadashi.get_ekadashi_dates(2026)
for d in dates:
print(d)
Use Cases
This module can be used for:
- Hindu calendar applications
- Panchang software
- Devotional reminder apps
- Astronomy-based calendar calculations
- Educational or research tools
Author
Developed and maintained by Hari Prajwal ❤️
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ekadashi-0.1.1.tar.gz.
File metadata
- Download URL: ekadashi-0.1.1.tar.gz
- Upload date:
- Size: 4.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
513581041b76004cbc782b7d09ee2679f6f2303d6dd227ab3e9582dfba57ff96
|
|
| MD5 |
0c6308f28428d2162ae6ecab075868c6
|
|
| BLAKE2b-256 |
e1c7ff46dc9c00fe048f62ec799ec9188fd8b3fb748385451525077a27ae8bf2
|
File details
Details for the file ekadashi-0.1.1-py3-none-any.whl.
File metadata
- Download URL: ekadashi-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c14407cc35d5875908a6278b59eab4dbf69f348b2d48d7b35b3dfda8cd46ffa6
|
|
| MD5 |
9ddf87ff4c973beab4ec021c9f8b20ec
|
|
| BLAKE2b-256 |
b6678407c0689b9608b2cdf97298aed8ab0a735453b40144600ad51c2336f2e6
|