Sankashti Chaturthi calculation module using astronomical tithi and moonrise calculations
Project description
Sankashti Python Module
A lightweight Python module to calculate Sankashti Chaturthi dates using astronomical calculations.
Sankashti Chaturthi is a sacred day dedicated to Lord Ganesha, observed on the fourth lunar day (Krishna Paksha Chaturthi) after the full moon. This module determines Sankashti based on moonrise and tithi calculations.
Installation
Install the module from PyPI:
pip install sankashti
Usage
Once installed, you can simply import the module in Python:
import sankashti
# Find the next Sankashti Chaturthi
print(sankashti.next_sankashti())
# Check if a specific date is Sankashti
print(sankashti.is_sankashti("2026-03-07"))
# Get all Sankashti dates for a given year
print(sankashti.sankashti_year(2026))
Example output:
{
"date": "2026-03-07",
"days_until": 5,
"about": "Sankashti Chaturthi dedicated to Lord Ganesha"
}
Features
- Accurate Sankashti detection using tithi calculations
- Moonrise-based validation
- Simple Python API
- Works for past and future dates
- Lightweight and easy to integrate into applications
Example
import sankashti
dates = sankashti.sankashti_year(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 sankashti-0.1.1.tar.gz.
File metadata
- Download URL: sankashti-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 |
346442eabeec00a1fba88b0a9bef681947bd536a1b40df030a1136b24d965bc5
|
|
| MD5 |
120397a22a4ac27b6ed37f0769e8cae6
|
|
| BLAKE2b-256 |
cd900c96ae838128720a0ceb34986a269ca790cb8f8aadc4f4ba6897b49a2d51
|
File details
Details for the file sankashti-0.1.1-py3-none-any.whl.
File metadata
- Download URL: sankashti-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 |
2e17fe47c4408b385a686b6dcc82bbdafd578d8284cc0787c48303e4d35b16a4
|
|
| MD5 |
0579d805db2aab75d5e5594d24802f9f
|
|
| BLAKE2b-256 |
07fbff545f28db01827200c5e385fda0e469bc898b487e018a3df913b66f68f9
|