✨ JyotishCore
Disclaimer: JyotishCore is an astronomical calculation engine, not a deterministic fortune-telling system. Any interpretive text (e.g., Yogas) is classical reference material, not actionable life advice.
JyotishCore is a high-performance Vedic Astrology (Jyotisha) calculation library. It is built as a Rust core on top of the Swiss Ephemeris and exposed through a typed, object-oriented Python SDK.
Features
- Blazing Fast Calculations: Rust core enables calculating hundreds of charts in milliseconds using Rayon data-parallelism.
- Extreme Precision: Leverages the NASA-backed Swiss Ephemeris (
Clibrary embedded via Rust). - Object-Oriented Python SDK: Designed for modern developers with strict typing, immutable models (
@dataclass), and clean interfaces. - Regional Panchanga & Calendars: Native support for the Bikram Sambat (BS) calendar and built-in localization translation mapping for Hindi and Nepali.
- Muhurta Finder Engine: Blazing fast step-and-search algorithms to hunt for auspicious time windows in microseconds.
Performance Benchmark
| Engine | Single Chart | Batch (1,000) | Backend |
|---|---|---|---|
| JyotishCore (Rust) | ~0.2 ms | ~15 ms | Rust/PyO3 |
| Flatlib | ~5.0 ms | ~4,800 ms | Pure Python |
| SwissEph (Raw) | ~0.5 ms | ~500 ms | C/Python |
Installation
pip install jyotishcore
Quick Start
1. Modern Object-Oriented Initialization (Recommended)
from jyotishcore import Chart, GeoLocation, JyotishTime, Ayanamsa
# 1. Define Time and Location
time = JyotishTime(year=2024, month=5, day=15, hour=12, minute=0)
location = GeoLocation(latitude=27.7172, longitude=85.3240, timezone="Asia/Kathmandu")
# 2. Compute the Chart
chart = Chart.compute(time=time, location=location, ayanamsa_obj=Ayanamsa.LAHIRI)
# 3. Retrieve Ascendant (Lagna)
print(f"Lagna: {chart.ascendant():.2f}°")
# 4. Explore Planetary Positions
planets = chart.planets()
sun = planets["sun"]
print(f"Sun is in {sun.sign} at {sun.longitude:.2f}° (House {sun.house})")
2. Regional Panchanga (Localization)
Easily output results in Hindi (hi) or Nepali (ne).
from jyotishcore import get_panchanga
# Get localized Panchanga in Hindi
p = get_panchanga(
year=2024, month=5, day=15, hour=12, minute=0, second=0,
latitude=27.7172, longitude=85.3240,
locale="hi"
)
print(p.tithi.paksha) # "शुक्ल"
print(p.tithi.name) # "अष्टमी"
Documentation
Full documentation is available on ReadTheDocs.
License
This project is dual-licensed under MIT and AGPL (due to Swiss Ephemeris dependency). See the LICENSE file for details.
Metadata
Release files for jyotishcore 1.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 | Provenance | Actions |
|---|---|---|---|---|
| jyotishcore-1.1.0.tar.gz | 1.2 MB | Without provenance | Details for jyotishcore-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jyotishcore-1.1.0-cp38-abi3-macosx_11_0_arm64.whl | CPython 3.8 | abi3 | macOS 11.0+ ARM64 | Details for jyotishcore-1.1.0-cp38-abi3-macosx_11_0_arm64.whl |
Total release size: 2.4 MB
Release files / jyotishcore-1.1.0.tar.gz
| Download URL | jyotishcore-1.1.0.tar.gz |
|---|---|
| Size | 1.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f4d4740cb89e3d1fc8fe7f2112080f170f61c3bd004dafa5f9bc3b85a036a234
|
|
BLAKE2b-256 checksum How to use checksums |
f129a4f91087f4d6f68be0f13c819b64fd43d95405b83da5571a830511e0ff70
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / jyotishcore-1.1.0-cp38-abi3-macosx_11_0_arm64.whl
| Download URL | jyotishcore-1.1.0-cp38-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.2 MB |
| Tags | CPython 3.8 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
deb25862a9bae0ec9f8a2d84b73d32e4d2b3e3555418f032c3118a35dad64338
|
|
BLAKE2b-256 checksum How to use checksums |
d698512e7d8d67124349f4d215da896ad04ec11f5bc0b342ed6af0601d6aab89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Security for jyotishcore 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.