kerykeion 4.24.3__py3-none-any.whl → 4.24.4__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.

@@ -194,13 +194,13 @@ class AstrologicalSubject:
194
194
  lat: Union[int, float, None] = None,
195
195
  tz_str: Union[str, None] = None,
196
196
  geonames_username: Union[str, None] = None,
197
- zodiac_type: ZodiacType = DEFAULT_ZODIAC_TYPE,
197
+ zodiac_type: Union[ZodiacType, None] = DEFAULT_ZODIAC_TYPE,
198
198
  online: bool = True,
199
199
  disable_chiron: Union[None, bool] = None, # Deprecated
200
200
  sidereal_mode: Union[SiderealMode, None] = None,
201
- houses_system_identifier: HousesSystemIdentifier = DEFAULT_HOUSES_SYSTEM_IDENTIFIER,
202
- perspective_type: PerspectiveType = DEFAULT_PERSPECTIVE_TYPE,
203
- cache_expire_after_days: int = DEFAULT_GEONAMES_CACHE_EXPIRE_AFTER_DAYS,
201
+ houses_system_identifier: Union[HousesSystemIdentifier, None] = DEFAULT_HOUSES_SYSTEM_IDENTIFIER,
202
+ perspective_type: Union[PerspectiveType, None] = DEFAULT_PERSPECTIVE_TYPE,
203
+ cache_expire_after_days: Union[int, None] = DEFAULT_GEONAMES_CACHE_EXPIRE_AFTER_DAYS,
204
204
  is_dst: Union[None, bool] = None,
205
205
  disable_chiron_and_lilith: bool = False
206
206
  ) -> None:
@@ -226,13 +226,10 @@ class AstrologicalSubject:
226
226
  self.day = day
227
227
  self.hour = hour
228
228
  self.minute = minute
229
- self.zodiac_type = zodiac_type
230
229
  self.online = online
231
230
  self.json_dir = Path.home()
232
231
  self.disable_chiron = disable_chiron
233
232
  self.sidereal_mode = sidereal_mode
234
- self.houses_system_identifier = houses_system_identifier
235
- self.perspective_type = perspective_type
236
233
  self.cache_expire_after_days = cache_expire_after_days
237
234
  self.is_dst = is_dst
238
235
  self.disable_chiron_and_lilith = disable_chiron_and_lilith
@@ -282,6 +279,30 @@ class AstrologicalSubject:
282
279
  else:
283
280
  self.tz_str = tz_str # type: ignore
284
281
 
282
+ # Zodiac type
283
+ if not zodiac_type:
284
+ self.zodiac_type = DEFAULT_ZODIAC_TYPE
285
+ else:
286
+ self.zodiac_type = zodiac_type
287
+
288
+ # Perspective type
289
+ if not perspective_type:
290
+ self.perspective_type = DEFAULT_PERSPECTIVE_TYPE
291
+ else:
292
+ self.perspective_type = perspective_type
293
+
294
+ # Houses system identifier
295
+ if not houses_system_identifier:
296
+ self.houses_system_identifier = DEFAULT_HOUSES_SYSTEM_IDENTIFIER
297
+ else:
298
+ self.houses_system_identifier = houses_system_identifier
299
+
300
+ # Cache expire after days
301
+ if not cache_expire_after_days:
302
+ self.cache_expire_after_days = DEFAULT_GEONAMES_CACHE_EXPIRE_AFTER_DAYS
303
+ else:
304
+ self.cache_expire_after_days = cache_expire_after_days
305
+
285
306
  #-----------------------#
286
307
  # Swiss Ephemeris setup #
287
308
  #-----------------------#
@@ -469,7 +490,7 @@ class AstrologicalSubject:
469
490
  _ascmc = ascmc
470
491
 
471
492
  else:
472
- raise KerykeionException("Not a valid zodiac type: ", self.zodiac_type)
493
+ raise KerykeionException("Not a valid zodiac type: " + self.zodiac_type)
473
494
 
474
495
  point_type: PointType = "House"
475
496
 
@@ -854,42 +875,5 @@ if __name__ == "__main__":
854
875
  setup_logging(level="debug")
855
876
 
856
877
  # With Chiron enabled
857
- johnny = AstrologicalSubject("Johnny Depp", 1963, 6, 9, 0, 0, "Owensboro", "US")
878
+ johnny = AstrologicalSubject("Johnny Depp", 1963, 6, 9, 0, 0, "Owensboro", "US", zodiac_type=None)
858
879
  print(json.loads(johnny.json(dump=True)))
859
-
860
- print('\n')
861
- print(johnny.chiron)
862
-
863
- # With Chiron disabled
864
- johnny = AstrologicalSubject("Johnny Depp", 1963, 6, 9, 0, 0, "Owensboro", "US", disable_chiron=True)
865
- print(json.loads(johnny.json(dump=True)))
866
-
867
- print('\n')
868
- print(johnny.chiron)
869
-
870
- # With Sidereal Zodiac
871
- johnny = AstrologicalSubject("Johnny Depp", 1963, 6, 9, 0, 0, "Owensboro", "US", zodiac_type="Sidereal", sidereal_mode="LAHIRI")
872
- print(johnny.json(dump=True, indent=2))
873
-
874
- # With Morinus Houses
875
- johnny = AstrologicalSubject("Johnny Depp", 1963, 6, 9, 0, 0, "Owensboro", "US", houses_system_identifier="M")
876
- print(johnny.json(dump=True, indent=2))
877
-
878
- # With True Geocentric Perspective
879
- johnny = AstrologicalSubject("Johnny Depp", 1963, 6, 9, 0, 0, "Owensboro", "US", perspective_type="True Geocentric")
880
- print(johnny.json(dump=True, indent=2))
881
-
882
- # With Heliocentric Perspective
883
- johnny = AstrologicalSubject("Johnny Depp", 1963, 6, 9, 0, 0, "Owensboro", "US", perspective_type="Heliocentric")
884
- print(johnny.json(dump=True, indent=2))
885
-
886
- # With Topocentric Perspective
887
- johnny = AstrologicalSubject("Johnny Depp", 1963, 6, 9, 0, 0, "Owensboro", "US", perspective_type="Topocentric")
888
-
889
- # Test Mean Lilith
890
- johnny = AstrologicalSubject("Johnny Depp", 1963, 6, 9, 0, 0, "Owensboro", "US", disable_chiron_and_lilith=True)
891
- print(johnny.mean_lilith)
892
-
893
- # Offline mode
894
- johnny = AstrologicalSubject("Johnny Depp", 1963, 6, 9, 0, 0, "Owensboro", "US", online=False, tz_str="America/New_York", lng=-87.1111, lat=37.7711, sidereal_mode="FAGAN_BRADLEY", zodiac_type="Sidereal")
895
- print(johnny.json(dump=True, indent=2))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kerykeion
3
- Version: 4.24.3
3
+ Version: 4.24.4
4
4
  Summary: A python library for astrology.
5
5
  Home-page: https://www.kerykeion.net/
6
6
  License: AGPL-3.0
@@ -4,7 +4,7 @@ kerykeion/aspects/__init__.py,sha256=9kx_Rx1NJx5SM7nDCSbI79S1neZ3c-q2NvQr-S6A9PY
4
4
  kerykeion/aspects/aspects_utils.py,sha256=Ej-E7Uvfi8x_ydP9dOhzhCp2uSpvX67T_VXuOjEKdoQ,3071
5
5
  kerykeion/aspects/natal_aspects.py,sha256=LHSorTAMLry-0KJWRZ0QQCBiRbuYnZkoIEFVwaAG-e0,6585
6
6
  kerykeion/aspects/synastry_aspects.py,sha256=5vU8yJgAGRyVBoKvRpsg-0AcQg-imOzH91tvDM_RUNQ,5044
7
- kerykeion/astrological_subject.py,sha256=OWBpAKP0aavvqNWg_c1dTbGVkd6BM7XMzgIMOVo683A,39157
7
+ kerykeion/astrological_subject.py,sha256=pzy9Fipg-ywCk5bZoGoA8bhs4M2r2JZBWoC3ZxHQrQ8,38245
8
8
  kerykeion/charts/__init__.py,sha256=i9NMZ7LdkllPlqQSi1or9gTobHbROGDKmJhBDO4R0mA,128
9
9
  kerykeion/charts/charts_utils.py,sha256=D2eaZHSFfmszvAlQbeaOEYskaOFP5XbjV3xlBBPOAno,42141
10
10
  kerykeion/charts/draw_planets.py,sha256=Uty3zpWYMQZvvK7ZHhlmynCHeL8DIN3qL2ifnBXVciM,17393
@@ -36,8 +36,8 @@ kerykeion/settings/kr.config.json,sha256=01xm7VOmGxMa86VM8VL8giYmnDTkfo2aE9qjIfI
36
36
  kerykeion/sweph/README.md,sha256=L7FtNAJTWtrZNGKa8MX87SjduFYPYxwWhaI5fmtzNZo,73
37
37
  kerykeion/sweph/seas_18.se1,sha256=X9nCqhZU43wJpq61WAdueVQJt9xL2UjrwPqn1Kdoa1s,223002
38
38
  kerykeion/utilities.py,sha256=vuEDWs5Htl2zi6_3flLvlAsFC9YT9LaOQDpRirFf3Cg,11160
39
- kerykeion-4.24.3.dist-info/LICENSE,sha256=UTLH8EdbAsgQei4PA2PnBCPGLSZkq5J-dhkyJuXgWQU,34273
40
- kerykeion-4.24.3.dist-info/METADATA,sha256=eRfWFqR8jMWtxOzR0iOyTEzqgld9JvQAk0EHWZiYHhI,17722
41
- kerykeion-4.24.3.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
42
- kerykeion-4.24.3.dist-info/entry_points.txt,sha256=5SmANYscFDDTdeovHvGQ-cnj0hdFvGoxPaWLCpyDFnQ,49
43
- kerykeion-4.24.3.dist-info/RECORD,,
39
+ kerykeion-4.24.4.dist-info/LICENSE,sha256=UTLH8EdbAsgQei4PA2PnBCPGLSZkq5J-dhkyJuXgWQU,34273
40
+ kerykeion-4.24.4.dist-info/METADATA,sha256=sWa2MZc6dkVRRRX9Y7asg1jwhXOgcju2cWegRtOMaXw,17722
41
+ kerykeion-4.24.4.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
42
+ kerykeion-4.24.4.dist-info/entry_points.txt,sha256=5SmANYscFDDTdeovHvGQ-cnj0hdFvGoxPaWLCpyDFnQ,49
43
+ kerykeion-4.24.4.dist-info/RECORD,,