
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
core-astrology-engine
Advanced tools
A comprehensive Vedic astrology calculation library with developer-friendly API
A comprehensive, production-ready Vedic astrology calculation library with a developer-friendly API. Built for accuracy, simplicity, and performance.
pip install core-astrology-engine
from core_astrology_engine import get_birth_chart, get_current_dasha
# Get a birth chart with one line
chart = get_birth_chart("1997-10-24T06:30:00", 27.7172, 85.3240)
print(f"Moon at: {chart['planets']['Moon']['longitude']:.1f}° {chart['planets']['Moon']['sign']}")
# Get current dasha periods
dasha = get_current_dasha("1997-10-24T06:30:00", 27.7172, 85.3240)
print(f"Current Mahadasha: {dasha['current_mahadasha']['planet']}")
from core_astrology_engine import SimpleAstrology
from datetime import datetime
# Initialize the API
astro = SimpleAstrology()
# Birth details
birth_datetime = datetime(1997, 10, 24, 6, 30)
latitude, longitude = 27.7172, 85.3240 # Kathmandu
# Get complete birth information
info = astro.quick_birth_info(birth_datetime, latitude, longitude)
# Individual calculations
chart = astro.get_chart(birth_datetime, latitude, longitude)
dashas = astro.get_current_dashas(birth_datetime, latitude, longitude)
panchanga = astro.get_panchanga(birth_datetime, latitude, longitude)
from core_astrology_engine import BatchProcessor, BatchRequest
# Process multiple charts efficiently
batch = BatchProcessor(max_workers=4)
requests = [
BatchRequest("person1", datetime(1997, 10, 24, 6, 30), 27.7172, 85.3240),
BatchRequest("person2", datetime(1985, 5, 15, 14, 20), 28.6139, 77.2090),
]
results = batch.process_charts(requests)
batch.export_results(results, "charts.json")
# Dictionary format (default)
chart = astro.get_chart(birth_datetime, lat, lon, format='dict')
# JSON string
chart_json = astro.get_chart(birth_datetime, lat, lon, format='json')
# Raw objects (for advanced usage)
chart_obj = astro.get_chart(birth_datetime, lat, lon, format='object')
# Automatically detects timezone for Nepal/India
chart = astro.get_chart(birth_datetime, latitude, longitude)
# Manual timezone specification
chart = astro.get_chart(birth_datetime, latitude, longitude, timezone_offset=5.75)
This library has been extensively tested with real birth data:
Test Case: October 24, 1997, 6:30 AM, Kathmandu
core_astrology_engine/
├── api/ # Simple API layer
├── services/ # Core calculation services
├── models/ # Data models
├── utils/ # Utility functions
├── config/ # Configuration management
└── data/ # Ephemeris data
Contributions are welcome! Please read our Contributing Guide for details.
This project is licensed under the MIT License - see the LICENSE file for details.
Note: This software uses the Swiss Ephemeris, which has its own licensing terms for commercial use. See the LICENSE file for details.
Made with ❤️ for the astrology and developer communities
Made with ❤️ for the astrology and developer communities
mypy core_astrology_engine/
git checkout -b feature/amazing-feature
)git commit -m 'Add amazing feature'
)git push origin feature/amazing-feature
)This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
A comprehensive Vedic astrology calculation library with developer-friendly API
We found that core-astrology-engine demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.