# sideralib
sideralib is a simple Python package designed for astrology enthusiasts. This package empowers users to calculate charts and determine planetary positions within the zodiac signs, adhering to the sidereal system.
# Example
```
from sideralib import astrochart, astrodata
if __name__ == "__main__":
# Example UTC: +5:30 which is used by India
# Example Location Mumbai India latitude: 19.0760 and Longitude: 72.8777
# Year: 2009 Month: 3 Day: 30 Hour: 9 Minute: 36 Second: 0 utc_hour: 5 utc_minute: 30 latitude: 19.0760 Longitude: 72.8777 ayanamsa: ay_lahiri
year = 2009
month = 3
day = 30
hour = 9
minute = 36
second = 0
utc_hour = 5
utc_minute = 30
latitude = 19.0760
longitude = 72.8777
ayanamsa = "ay_lahiri"
data = astrodata.AstroData(year, month, day, hour, minute, second, utc_hour, utc_minute, latitude, longitude, ayanamsa=ayanamsa)
planet_data = data.planets_rashi() # get planet data
kundli = astrochart.Chart(planet_data).lagnaChart() # returns list with all the houses in Lagna Chart
# kundli[0] -> house 1
# kundli[1] -> house 2
# ...
# ...
# kundli[11] -> house 12
# kundli[0].sign_num returns rashi sign in first house.
# kundli[0].planets returns dict with all the planet information in first house.
for house in range(len(kundli)):
if kundli[house].is_ascendant == True:
print("Asc lon: ", kundli[house].asc_lon)
print("Asc Signlon: ", kundli[house].asc_signlon)
print("Asc minute: ", kundli[house].asc_minute)
print("Asc sec: ", kundli[house].asc_second)
print("Asc: ", kundli[house].asc_degree)
print("house: {0} sign_num: {1} planet: {2}".format(house+1, kundli[house].sign_num, kundli[house].planets))
```
#
```
# Output:
# Asc lon: 37.606448680104336
# Asc Signlon: 7.606448680104336
# Asc minute: 36.38692080626015
# Asc sec: 23.215248375609086
# Asc: 07:36:23
# house: 1 sign_num: 2 planet: {'moon': {'signlon': 0.4326922465451801, 'minute': 25.961534792710808, 'second': 57.69208756264839, 'lon': 30.43269224654518, 'degree': '00:25:57', 'retrograde': False}}
# house: 2 sign_num: 3 planet: {}
# house: 3 sign_num: 4 planet: {'ketu': {'signlon': 12.303851305303283, 'minute': 18.231078318196978, 'second': 13.864699091818732, 'lon': 102.30385130530328, 'degree': '12:18:13', 'retrograde': True}}
# house: 4 sign_num: 5 planet: {'saturn': {'signlon': 22.758987182069518, 'minute': 45.53923092417108, 'second': 32.353855450264746, 'lon': 142.75898718206952, 'degree': '22:45:32', 'retrograde': True}}
# house: 5 sign_num: 6 planet: {}
# house: 6 sign_num: 7 planet: {}
# house: 7 sign_num: 8 planet: {}
# house: 8 sign_num: 9 planet: {'pluto': {'signlon': 9.30237002216532, 'minute': 18.142201329919203, 'second': 8.532079795152224, 'lon': 249.30237002216532, 'degree': '09:18:08', 'retrograde': False}}
# house: 9 sign_num: 10 planet: {'jupiter': {'signlon': 24.766072525924358, 'minute': 45.96435155546146, 'second': 57.86109332768774, 'lon': 294.76607252592436, 'degree': '24:45:57', 'retrograde': False}, 'rahu': {'signlon': 12.303851305303283, 'minute': 18.231078318196978, 'second': 13.864699091818732, 'lon': 282.3038513053033, 'degree': '12:18:13', 'retrograde': True}}
# house: 10 sign_num: 11 planet: {'mars': {'signlon': 17.779569685040656, 'minute': 46.77418110243934, 'second': 46.45086614636038, 'lon': 317.77956968504066, 'degree': '17:46:46', 'retrograde': False}, 'uranus': {'signlon': 29.585563853318888, 'minute': 35.13383119913328, 'second': 8.029871947996847, 'lon': 329.5855638533189, 'degree': '29:35:08', 'retrograde': False}, 'neptune': {'signlon': 1.5493690559594597, 'minute': 32.962143357567584, 'second': 57.72860145405505, 'lon': 301.54936905595946, 'degree': '01:32:57', 'retrograde': False}}
# house: 11 sign_num: 12 planet: {'sun': {'signlon': 15.606050560341089, 'minute': 36.36303362046533, 'second': 21.7820172279199, 'lon': 345.6060505603411, 'degree': '15:36:21', 'retrograde': False}, 'mercury': {'signlon': 14.595579878481658, 'minute': 35.73479270889948, 'second': 44.08756253396846, 'lon': 344.59557987848166, 'degree': '14:35:44', 'retrograde': False}, 'venus': {'signlon': 11.793622040073728, 'minute': 47.6173224044237, 'second': 37.039344265422216, 'lon': 341.7936220400737, 'degree': '11:47:37', 'retrograde': True}}
# house: 12 sign_num: 1 planet: {}
```
#
kundli[0] -> house 1
kundli[1] -> house 2
...
...
kundli[11] -> house 12
kundli[0].sign_num returns rashi sign number in first house.
kundli[0].planets returns dict with all the planet information in first house.
ayanamsa options:
"ay_fagan_bradley"
"ay_lahiri"
"ay_deluce"
"ay_raman"
"ay_krishnamurti"
"ay_sassanian"
"ay_aldebaran_15tau"
"ay_galcenter_5sag"
#
```kundli[0].sign_num```: returns sign number in the first house
```kundli[0].asc_signlon```: returns the ascendant degree
```kundli[0].asc_minute```: returns the ascendant minute
```kundli[0].asc_second```: returns the ascendant second
```kundli[0].asc_degree```: returns the ascendant degree in string format
```kundli[0].asc_lon```: returns the ascendant longitude
```kundli[0].planets```: returns dict with planet information in the first house
#
```astrochart.Chart```:
- ```astrochart.Chart(data.planets_rashi()).lagnaChart()```: returns Lagna Chart
- ```astrochart.Chart(data.planets_rashi()).moonChart()```: returns Moon Chart
#
```astrodata.AstroData```:
- ```astrodata.AstroData(year, month, day, hour, minute, second, utc_hour, utc_minute, latitude, longitude, ayanamsa=ayanamsa).planets_rashi()```:returns dict with planets information
- ```astrodata.AstroData(year, month, day, hour, minute, second, utc_hour, utc_minute, latitude, longitude, ayanamsa=ayanamsa).get_chiron_rashi("resources\swefiles")```: returns dict with chiron information
```
# Example
data = astrodata.AstroData(year, month, day, hour, minute, second, utc_hour, utc_minute, latitude, longitude, ayanamsa="ay_lahiri")
data.get_chiron_rashi("resources\swefiles") # returns dict with chiron information
kundli = astrochart.Chart(data.planets_rashi()).lagnaChart() # returns list with all the houses in Lagna Chart
```
# Installl
```
pip install sideralib
```
or
download the files from https://github.com/EH30/sideralib
then cd to the folder and enter the command:
```
pip install .
```
Raw data
{
"_id": null,
"home_page": "https://github.com/EH30/sideralib",
"name": "sideralib",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "Astrology,Sidereal Astrology,Kundli,Sidereal,Tools,Chart,Sidereal Sign,Astrology Chart,Astrology Kundli,Sidereal Library,Ayanamsa,Sidereal Kundli,Sidereal Chart,Sidereal Calculations,Sidereal Number,Sidereal Package,Astro,Astro signs,Astro Number,Sidereal Ayanamsa",
"author": "EH",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/6c/ff/208237c663b1800ef4d89b35d04e2586a8f8c46b02aa37c4850d5b1e2414/sideralib-3.0.0.tar.gz",
"platform": null,
"description": "# sideralib\r\n \r\nsideralib is a simple Python package designed for astrology enthusiasts. This package empowers users to calculate charts and determine planetary positions within the zodiac signs, adhering to the sidereal system. \r\n\r\n# Example\r\n```\r\nfrom sideralib import astrochart, astrodata\r\n\r\nif __name__ == \"__main__\":\r\n # Example UTC: +5:30 which is used by India\r\n # Example Location Mumbai India latitude: 19.0760 and Longitude: 72.8777 \r\n # Year: 2009 Month: 3 Day: 30 Hour: 9 Minute: 36 Second: 0 utc_hour: 5 utc_minute: 30 latitude: 19.0760 Longitude: 72.8777 ayanamsa: ay_lahiri \r\n year = 2009\r\n month = 3\r\n day = 30\r\n hour = 9\r\n minute = 36\r\n second = 0\r\n utc_hour = 5\r\n utc_minute = 30\r\n latitude = 19.0760\r\n longitude = 72.8777\r\n ayanamsa = \"ay_lahiri\"\r\n data = astrodata.AstroData(year, month, day, hour, minute, second, utc_hour, utc_minute, latitude, longitude, ayanamsa=ayanamsa)\r\n planet_data = data.planets_rashi() # get planet data \r\n kundli = astrochart.Chart(planet_data).lagnaChart() # returns list with all the houses in Lagna Chart\r\n # kundli[0] -> house 1 \r\n # kundli[1] -> house 2 \r\n # ... \r\n # ... \r\n # kundli[11] -> house 12\r\n\r\n # kundli[0].sign_num returns rashi sign in first house. \r\n # kundli[0].planets returns dict with all the planet information in first house. \r\n for house in range(len(kundli)):\r\n if kundli[house].is_ascendant == True:\r\n print(\"Asc lon: \", kundli[house].asc_lon)\r\n print(\"Asc Signlon: \", kundli[house].asc_signlon)\r\n print(\"Asc minute: \", kundli[house].asc_minute)\r\n print(\"Asc sec: \", kundli[house].asc_second)\r\n print(\"Asc: \", kundli[house].asc_degree)\r\n print(\"house: {0} sign_num: {1} planet: {2}\".format(house+1, kundli[house].sign_num, kundli[house].planets))\r\n\r\n``` \r\n# \r\n``` \r\n# Output: \r\n# Asc lon: 37.606448680104336\r\n# Asc Signlon: 7.606448680104336\r\n# Asc minute: 36.38692080626015\r\n# Asc sec: 23.215248375609086\r\n# Asc: 07:36:23\r\n# house: 1 sign_num: 2 planet: {'moon': {'signlon': 0.4326922465451801, 'minute': 25.961534792710808, 'second': 57.69208756264839, 'lon': 30.43269224654518, 'degree': '00:25:57', 'retrograde': False}}\r\n# house: 2 sign_num: 3 planet: {}\r\n# house: 3 sign_num: 4 planet: {'ketu': {'signlon': 12.303851305303283, 'minute': 18.231078318196978, 'second': 13.864699091818732, 'lon': 102.30385130530328, 'degree': '12:18:13', 'retrograde': True}}\r\n# house: 4 sign_num: 5 planet: {'saturn': {'signlon': 22.758987182069518, 'minute': 45.53923092417108, 'second': 32.353855450264746, 'lon': 142.75898718206952, 'degree': '22:45:32', 'retrograde': True}}\r\n# house: 5 sign_num: 6 planet: {}\r\n# house: 6 sign_num: 7 planet: {}\r\n# house: 7 sign_num: 8 planet: {}\r\n# house: 8 sign_num: 9 planet: {'pluto': {'signlon': 9.30237002216532, 'minute': 18.142201329919203, 'second': 8.532079795152224, 'lon': 249.30237002216532, 'degree': '09:18:08', 'retrograde': False}}\r\n# house: 9 sign_num: 10 planet: {'jupiter': {'signlon': 24.766072525924358, 'minute': 45.96435155546146, 'second': 57.86109332768774, 'lon': 294.76607252592436, 'degree': '24:45:57', 'retrograde': False}, 'rahu': {'signlon': 12.303851305303283, 'minute': 18.231078318196978, 'second': 13.864699091818732, 'lon': 282.3038513053033, 'degree': '12:18:13', 'retrograde': True}}\r\n# house: 10 sign_num: 11 planet: {'mars': {'signlon': 17.779569685040656, 'minute': 46.77418110243934, 'second': 46.45086614636038, 'lon': 317.77956968504066, 'degree': '17:46:46', 'retrograde': False}, 'uranus': {'signlon': 29.585563853318888, 'minute': 35.13383119913328, 'second': 8.029871947996847, 'lon': 329.5855638533189, 'degree': '29:35:08', 'retrograde': False}, 'neptune': {'signlon': 1.5493690559594597, 'minute': 32.962143357567584, 'second': 57.72860145405505, 'lon': 301.54936905595946, 'degree': '01:32:57', 'retrograde': False}}\r\n# house: 11 sign_num: 12 planet: {'sun': {'signlon': 15.606050560341089, 'minute': 36.36303362046533, 'second': 21.7820172279199, 'lon': 345.6060505603411, 'degree': '15:36:21', 'retrograde': False}, 'mercury': {'signlon': 14.595579878481658, 'minute': 35.73479270889948, 'second': 44.08756253396846, 'lon': 344.59557987848166, 'degree': '14:35:44', 'retrograde': False}, 'venus': {'signlon': 11.793622040073728, 'minute': 47.6173224044237, 'second': 37.039344265422216, 'lon': 341.7936220400737, 'degree': '11:47:37', 'retrograde': True}}\r\n# house: 12 sign_num: 1 planet: {}\r\n``` \r\n\r\n\r\n# \r\nkundli[0] -> house 1 \r\nkundli[1] -> house 2 \r\n... \r\n... \r\nkundli[11] -> house 12\r\n\r\nkundli[0].sign_num returns rashi sign number in first house. \r\nkundli[0].planets returns dict with all the planet information in first house.\r\n\r\nayanamsa options: \r\n\"ay_fagan_bradley\" \r\n\"ay_lahiri\" \r\n\"ay_deluce\" \r\n\"ay_raman\" \r\n\"ay_krishnamurti\" \r\n\"ay_sassanian\" \r\n\"ay_aldebaran_15tau\" \r\n\"ay_galcenter_5sag\" \r\n \r\n\r\n# \r\n```kundli[0].sign_num```: returns sign number in the first house \r\n```kundli[0].asc_signlon```: returns the ascendant degree \r\n```kundli[0].asc_minute```: returns the ascendant minute \r\n```kundli[0].asc_second```: returns the ascendant second \r\n```kundli[0].asc_degree```: returns the ascendant degree in string format \r\n```kundli[0].asc_lon```: returns the ascendant longitude \r\n```kundli[0].planets```: returns dict with planet information in the first house \r\n#\r\n```astrochart.Chart```: \r\n- ```astrochart.Chart(data.planets_rashi()).lagnaChart()```: returns Lagna Chart \r\n- ```astrochart.Chart(data.planets_rashi()).moonChart()```: returns Moon Chart \r\n#\r\n```astrodata.AstroData```:\r\n- ```astrodata.AstroData(year, month, day, hour, minute, second, utc_hour, utc_minute, latitude, longitude, ayanamsa=ayanamsa).planets_rashi()```:returns dict with planets information\r\n- ```astrodata.AstroData(year, month, day, hour, minute, second, utc_hour, utc_minute, latitude, longitude, ayanamsa=ayanamsa).get_chiron_rashi(\"resources\\swefiles\")```: returns dict with chiron information\r\n \r\n``` \r\n# Example \r\ndata = astrodata.AstroData(year, month, day, hour, minute, second, utc_hour, utc_minute, latitude, longitude, ayanamsa=\"ay_lahiri\")\r\ndata.get_chiron_rashi(\"resources\\swefiles\") # returns dict with chiron information\r\nkundli = astrochart.Chart(data.planets_rashi()).lagnaChart() # returns list with all the houses in Lagna Chart\r\n``` \r\n\r\n\r\n\r\n# Installl\r\n``` \r\npip install sideralib\r\n``` \r\nor \r\ndownload the files from https://github.com/EH30/sideralib \r\nthen cd to the folder and enter the command: \r\n\r\n``` \r\npip install .\r\n``` \r\n",
"bugtrack_url": null,
"license": "Unlicense",
"summary": "This Python package is for astrology and uses the sidereal system.",
"version": "3.0.0",
"project_urls": {
"Homepage": "https://github.com/EH30/sideralib"
},
"split_keywords": [
"astrology",
"sidereal astrology",
"kundli",
"sidereal",
"tools",
"chart",
"sidereal sign",
"astrology chart",
"astrology kundli",
"sidereal library",
"ayanamsa",
"sidereal kundli",
"sidereal chart",
"sidereal calculations",
"sidereal number",
"sidereal package",
"astro",
"astro signs",
"astro number",
"sidereal ayanamsa"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6cff208237c663b1800ef4d89b35d04e2586a8f8c46b02aa37c4850d5b1e2414",
"md5": "4c11b3250e9c1859186d0221e85950af",
"sha256": "09fd94164a327b56aefe0b078ca810ef6b9fe0c95fdda03a6bbc32eeced4ea75"
},
"downloads": -1,
"filename": "sideralib-3.0.0.tar.gz",
"has_sig": false,
"md5_digest": "4c11b3250e9c1859186d0221e85950af",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 9058,
"upload_time": "2023-09-27T07:31:59",
"upload_time_iso_8601": "2023-09-27T07:31:59.490640Z",
"url": "https://files.pythonhosted.org/packages/6c/ff/208237c663b1800ef4d89b35d04e2586a8f8c46b02aa37c4850d5b1e2414/sideralib-3.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-09-27 07:31:59",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "EH30",
"github_project": "sideralib",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "sideralib"
}