kerykeion 4.9.1__py3-none-any.whl → 4.10.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of kerykeion might be problematic. Click here for more details.

@@ -51,3 +51,7 @@ LunarPhaseEmoji = Literal["🌑", "🌒", "🌓", "🌔", "🌕", "🌖", "🌗"
51
51
 
52
52
  LunarPhaseName = Literal["New Moon", "Waxing Crescent", "First Quarter", "Waxing Gibbous", "Full Moon", "Waning Gibbous", "Last Quarter", "Waning Crescent"]
53
53
  """Literal type for Lunar Phases Name"""
54
+
55
+
56
+ SiderealMode = Literal["FAGAN_BRADLEY", "LAHIRI", "DELUCE", "RAMAN", "USHASHASHI", "KRISHNAMURTI", "DJWHAL_KHUL", "YUKTESHWAR", "JN_BHASIN", "BABYL_KUGLER1", "BABYL_KUGLER2", "BABYL_KUGLER3", "BABYL_HUBER", "BABYL_ETPSC", "ALDEBARAN_15TAU", "HIPPARCHOS", "SASSANIAN", "J2000", "J1900", "B1950"]
57
+ """Literal type for Sidereal Modes, as known as Ayanamsa"""
@@ -7,7 +7,7 @@
7
7
  from typing import Union, Optional
8
8
  from pydantic import BaseModel
9
9
 
10
- from kerykeion.kr_types import LunarPhaseEmoji, LunarPhaseName, Planet, Houses, Quality, Element, Sign, ZodiacType, SignNumbers, HouseNumbers, PointType
10
+ from kerykeion.kr_types import LunarPhaseEmoji, LunarPhaseName, Planet, Houses, Quality, Element, Sign, ZodiacType, SignNumbers, HouseNumbers, PointType, SiderealMode
11
11
 
12
12
  class SubscriptableBaseModel(BaseModel):
13
13
  """
@@ -65,6 +65,7 @@ class AstrologicalSubjectModel(SubscriptableBaseModel):
65
65
  lat: float
66
66
  tz_str: str
67
67
  zodiac_type: ZodiacType
68
+ sidereal_mode: Union[SiderealMode, None]
68
69
  local_time: float
69
70
  utc_time: float
70
71
  julian_day: float
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kerykeion
3
- Version: 4.9.1
3
+ Version: 4.10.1
4
4
  Summary: A python library for astrology.
5
5
  Home-page: https://github.com/g-battaglia/kerykeion
6
6
  License: AGPL-3.0
@@ -28,8 +28,8 @@ Classifier: Typing :: Typed
28
28
  Requires-Dist: pydantic (>=2.5,<3.0)
29
29
  Requires-Dist: pyswisseph (>=2.10.3.1,<3.0.0.0)
30
30
  Requires-Dist: pytz (>=2022.7,<2023.0)
31
- Requires-Dist: requests (>=2.28.1,<3.0.0)
32
- Requires-Dist: requests-cache (>=0.9.7,<0.10.0)
31
+ Requires-Dist: requests (>=2.32.3,<3.0.0)
32
+ Requires-Dist: requests-cache (>=1.2.1,<2.0.0)
33
33
  Requires-Dist: scour (>=0.38.2,<0.39.0)
34
34
  Requires-Dist: terminaltables (>=3.1.10,<4.0.0)
35
35
  Project-URL: Repository, https://github.com/g-battaglia/kerykeion
@@ -48,7 +48,7 @@ Description-Content-Type: text/markdown
48
48
  </a>
49
49
  <a href="https://pypi.org/project/kerykeion" target="_blank">
50
50
  <img src="https://visitor-badge.laobi.icu/badge?page_id=g-battaglia.kerykeion" alt="visitors"/>
51
- </a>
51
+ </a>
52
52
  <a href="https://pypi.org/project/kerykeion" target="_blank">
53
53
  <img src="https://img.shields.io/pypi/v/kerykeion?label=pypi%20package" alt="Package version">
54
54
  </a>
@@ -137,7 +137,7 @@ kanye = AstrologicalSubject(
137
137
  The difference is that you have to pass the longitude, latitude and the timezone string, instead of the city and nation.
138
138
  If you omit the nation, it will be set to "GB" by default, but the value is not used for calculations. It's better to set it to the correct value though.
139
139
 
140
- ## Generate a SVG Chart:
140
+ ## Generate a SVG Chart
141
141
 
142
142
  ```python
143
143
  from kerykeion import AstrologicalSubject, KerykeionChartSVG
@@ -176,7 +176,7 @@ report.print_report()
176
176
 
177
177
  Returns:
178
178
 
179
- ```
179
+ ```bash
180
180
  +- Kerykeion report for Kanye -+
181
181
  +----------+------+-------------+-----------+----------+
182
182
  | Date | Time | Location | Longitude | Latitude |
@@ -222,7 +222,7 @@ Returns:
222
222
  And if you want to export it to a file:
223
223
 
224
224
  ```bash
225
- $ python3 your_script_name.py > file.txt
225
+ python3 your_script_name.py > file.txt
226
226
  ```
227
227
 
228
228
  ## Other exeples of possibles usecase
@@ -244,6 +244,18 @@ print(aspect_list[0])
244
244
 
245
245
  ```
246
246
 
247
+ ## Ayanamsa (Sidereal Modes)
248
+
249
+ You can set the zodiac type and the sidereal mode in the AstrologicalSubject class:
250
+
251
+ ```python
252
+ johnny = AstrologicalSubject("Johnny Depp", 1963, 6, 9, 0, 0, "Owensboro", "US", zodiac_type="Sidereal", sidereal_mode="LAHIRI")
253
+ ```
254
+
255
+ More examples [here](https://www.kerykeion.net/docs/examples/sidereal-modes/).
256
+
257
+ Full list of supported sidereal modes [here](https://www.kerykeion.net/pydocs/kerykeion/kr_types/kr_literals.html#SiderealMode).
258
+
247
259
  ## Documentation
248
260
 
249
261
  Most of the functions and the classes are self documented by the types and have docstrings.
@@ -266,5 +278,5 @@ To understand how this impacts your use of the software, please see the [LICENSE
266
278
  If you have questions, you can reach out to me at my [email](mailto:battaglia.giacomo@yahoo.it?subject=Kerykeion) address.
267
279
  As a rule of thumb, if you are using this library in a project, you should open source the code of the project with a compatible license.
268
280
 
269
- You can implement the logic of kerkeion in your project and also keep it closed source by using a third party API, like the [AstrologerAPI](https://rapidapi.com/gbattaglia/api/astrologer/). The AstrologerAPI is AGPL-3.0 compliant. Subscribing to the API is also, currently, the best way to support the project.
281
+ You can implement the logic of kerykeion in your project and also keep it closed source by using a third party API, like the [AstrologerAPI](https://rapidapi.com/gbattaglia/api/astrologer/). The AstrologerAPI is AGPL-3.0 compliant. Subscribing to the API is also, currently, the best way to support the project.
270
282
 
@@ -1,21 +1,21 @@
1
1
  LICENSE,sha256=UTLH8EdbAsgQei4PA2PnBCPGLSZkq5J-dhkyJuXgWQU,34273
2
- kerykeion/__init__.py,sha256=mJ7NjiDlBLjQAm1--jf1D-zZAUAm5RkNWMZFIZV3mPM,9050
2
+ kerykeion/__init__.py,sha256=9BqSYounDLNO07ajTAaqB5gZJH63Xt7QAxeh4g_d09A,9306
3
3
  kerykeion/aspects/__init__.py,sha256=9FlDVI1ndCJga0-chNIhcLitjU_x3kbtAFfFqVp2ejc,293
4
4
  kerykeion/aspects/aspects_utils.py,sha256=Rdo3ITDSU80n6U7aazpzzK4ruv7Iui2PaI3zMGqu1NQ,5832
5
5
  kerykeion/aspects/natal_aspects.py,sha256=m3_v1dM6YXvENZ6iN_EJkikKxySZBeR5QKhGsaChERk,4507
6
6
  kerykeion/aspects/synastry_aspects.py,sha256=uwg7Lc7wKnpxW9ydOdBHqx9cvO_t0ydGfIGluBIDD7c,3993
7
- kerykeion/astrological_subject.py,sha256=ufYhARWxrrfQ14S7Vjb_ApwAU_cwd3lND3H7KnY3k7I,22925
7
+ kerykeion/astrological_subject.py,sha256=ECUkDb4TafAIN3s771YoZPW1thiMCXb3wu9aSa1IdIg,24426
8
8
  kerykeion/charts/__init__.py,sha256=Juxkduy2TaagWblh_7CE8Acrg3dHL27-WEddJhau_eQ,127
9
9
  kerykeion/charts/charts_utils.py,sha256=Pfy-SkPnABIy5ZkKgypnGqxXOAKhTRIeQX3fQKO8DgQ,15065
10
- kerykeion/charts/kerykeion_chart_svg.py,sha256=vtTYgwXELnZoPKvySpEQRLZSaYVzzpDQBcUk9DwnQjw,60764
11
- kerykeion/charts/templates/chart.xml,sha256=njaX-1vglR7PFInmteCNHcxwMTjsMJPkW56TlJq0qxw,70158
10
+ kerykeion/charts/kerykeion_chart_svg.py,sha256=5PtKiubdeR2hVo3DfxYTkdGvV4ajqKEAd9i3rMOPZYo,62739
11
+ kerykeion/charts/templates/chart.xml,sha256=g8trrQdGj7Gw4B2uJS-cysyD8pf3cXA9rKF6fT75pEs,67615
12
12
  kerykeion/enums.py,sha256=Ben9GLYkPucpYY2ZDpURzUbNCc9jzK2MuaffkgiXFdQ,965
13
13
  kerykeion/fetch_geonames.py,sha256=ZWB1DbcH54ab3fQhzPhLY0Dz0OaPJqiHFn2e7DRr1MM,4588
14
14
  kerykeion/kr_types/__init__.py,sha256=-qhGQikurdoHnGtuT1bsaEeZ-IwmZtIHMjGOPC9_oqQ,295
15
15
  kerykeion/kr_types/chart_types.py,sha256=g9z53FTOsb2rusUG8nK4dtFgvVa6RCwAfAbrxFb9KaM,2180
16
16
  kerykeion/kr_types/kerykeion_exception.py,sha256=G-7VFta78qBt10l54JZWvwH-3lUNKmDwuILXaVGVu9A,314
17
- kerykeion/kr_types/kr_literals.py,sha256=uNWy9uLKPctGhX8CgZ6qXT4J38K9MMF5JDH6eQmbbSY,1641
18
- kerykeion/kr_types/kr_models.py,sha256=kAIpJcST4818qVG26qw6Nv9MXaSsR4uFPIINSiSLkA0,3054
17
+ kerykeion/kr_types/kr_literals.py,sha256=bjv5TR7EX7yXx2hv4yn-639HEwm3EGZVGGdLc4jENsI,1997
18
+ kerykeion/kr_types/kr_models.py,sha256=_BAW5moUJu4CWem1knwcyfnai6vkZZxnW8eJyu2azLY,3113
19
19
  kerykeion/kr_types/settings_models.py,sha256=Gh467QjvlGmheD6eJI1IHpuK4cz_hbtjGTJT_1NMoAE,12376
20
20
  kerykeion/relationship_score.py,sha256=R9JugfK5_gJgr5ND-EghkqpqZcutzzKlJ-2JnYUMVv4,6794
21
21
  kerykeion/report.py,sha256=kS5avIN119pJVapYjZOvabg77nEcA8sSrOuXbRifABk,2565
@@ -25,8 +25,8 @@ kerykeion/settings/kr.config.json,sha256=1Yhv9RGHom5U9e-JZZRWVfT2Ubllz2WrckdwadD
25
25
  kerykeion/sweph/README.md,sha256=L7FtNAJTWtrZNGKa8MX87SjduFYPYxwWhaI5fmtzNZo,73
26
26
  kerykeion/sweph/seas_18.se1,sha256=X9nCqhZU43wJpq61WAdueVQJt9xL2UjrwPqn1Kdoa1s,223002
27
27
  kerykeion/utilities.py,sha256=Sb-EdrgvyGgLNxFUNWaMr4DBTbvyTkZjXR_c0ouTCj0,10872
28
- kerykeion-4.9.1.dist-info/LICENSE,sha256=UTLH8EdbAsgQei4PA2PnBCPGLSZkq5J-dhkyJuXgWQU,34273
29
- kerykeion-4.9.1.dist-info/METADATA,sha256=RUjpn9jb5R6s4l_L0MDpsC_iYITj49JHYDJvBMI7ioA,10359
30
- kerykeion-4.9.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
31
- kerykeion-4.9.1.dist-info/entry_points.txt,sha256=5SmANYscFDDTdeovHvGQ-cnj0hdFvGoxPaWLCpyDFnQ,49
32
- kerykeion-4.9.1.dist-info/RECORD,,
28
+ kerykeion-4.10.1.dist-info/LICENSE,sha256=UTLH8EdbAsgQei4PA2PnBCPGLSZkq5J-dhkyJuXgWQU,34273
29
+ kerykeion-4.10.1.dist-info/METADATA,sha256=a4Ha8zpnKE15-4qiAFTVKNDthXgbVUmlcAM93ibhIPs,10826
30
+ kerykeion-4.10.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
31
+ kerykeion-4.10.1.dist-info/entry_points.txt,sha256=5SmANYscFDDTdeovHvGQ-cnj0hdFvGoxPaWLCpyDFnQ,49
32
+ kerykeion-4.10.1.dist-info/RECORD,,