kerykeion 4.24.3__tar.gz → 4.24.5__tar.gz

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.

Files changed (41) hide show
  1. {kerykeion-4.24.3 → kerykeion-4.24.5}/PKG-INFO +1 -1
  2. {kerykeion-4.24.3 → kerykeion-4.24.5}/kerykeion/astrological_subject.py +30 -46
  3. {kerykeion-4.24.3 → kerykeion-4.24.5}/kerykeion/charts/charts_utils.py +1 -3
  4. {kerykeion-4.24.3 → kerykeion-4.24.5}/kerykeion/charts/templates/chart.xml +1 -1
  5. {kerykeion-4.24.3 → kerykeion-4.24.5}/pyproject.toml +1 -1
  6. {kerykeion-4.24.3 → kerykeion-4.24.5}/LICENSE +0 -0
  7. {kerykeion-4.24.3 → kerykeion-4.24.5}/README.md +0 -0
  8. {kerykeion-4.24.3 → kerykeion-4.24.5}/kerykeion/__init__.py +0 -0
  9. {kerykeion-4.24.3 → kerykeion-4.24.5}/kerykeion/aspects/__init__.py +0 -0
  10. {kerykeion-4.24.3 → kerykeion-4.24.5}/kerykeion/aspects/aspects_utils.py +0 -0
  11. {kerykeion-4.24.3 → kerykeion-4.24.5}/kerykeion/aspects/natal_aspects.py +0 -0
  12. {kerykeion-4.24.3 → kerykeion-4.24.5}/kerykeion/aspects/synastry_aspects.py +0 -0
  13. {kerykeion-4.24.3 → kerykeion-4.24.5}/kerykeion/charts/__init__.py +0 -0
  14. {kerykeion-4.24.3 → kerykeion-4.24.5}/kerykeion/charts/draw_planets.py +0 -0
  15. {kerykeion-4.24.3 → kerykeion-4.24.5}/kerykeion/charts/kerykeion_chart_svg.py +0 -0
  16. {kerykeion-4.24.3 → kerykeion-4.24.5}/kerykeion/charts/templates/aspect_grid_only.xml +0 -0
  17. {kerykeion-4.24.3 → kerykeion-4.24.5}/kerykeion/charts/templates/wheel_only.xml +0 -0
  18. {kerykeion-4.24.3 → kerykeion-4.24.5}/kerykeion/charts/themes/classic.css +0 -0
  19. {kerykeion-4.24.3 → kerykeion-4.24.5}/kerykeion/charts/themes/dark-high-contrast.css +0 -0
  20. {kerykeion-4.24.3 → kerykeion-4.24.5}/kerykeion/charts/themes/dark.css +0 -0
  21. {kerykeion-4.24.3 → kerykeion-4.24.5}/kerykeion/charts/themes/light.css +0 -0
  22. {kerykeion-4.24.3 → kerykeion-4.24.5}/kerykeion/enums.py +0 -0
  23. {kerykeion-4.24.3 → kerykeion-4.24.5}/kerykeion/ephemeris_data.py +0 -0
  24. {kerykeion-4.24.3 → kerykeion-4.24.5}/kerykeion/fetch_geonames.py +0 -0
  25. {kerykeion-4.24.3 → kerykeion-4.24.5}/kerykeion/kr_types/__init__.py +0 -0
  26. {kerykeion-4.24.3 → kerykeion-4.24.5}/kerykeion/kr_types/chart_types.py +0 -0
  27. {kerykeion-4.24.3 → kerykeion-4.24.5}/kerykeion/kr_types/kerykeion_exception.py +0 -0
  28. {kerykeion-4.24.3 → kerykeion-4.24.5}/kerykeion/kr_types/kr_literals.py +0 -0
  29. {kerykeion-4.24.3 → kerykeion-4.24.5}/kerykeion/kr_types/kr_models.py +0 -0
  30. {kerykeion-4.24.3 → kerykeion-4.24.5}/kerykeion/kr_types/settings_models.py +0 -0
  31. {kerykeion-4.24.3 → kerykeion-4.24.5}/kerykeion/relationship_score/__init__.py +0 -0
  32. {kerykeion-4.24.3 → kerykeion-4.24.5}/kerykeion/relationship_score/relationship_score.py +0 -0
  33. {kerykeion-4.24.3 → kerykeion-4.24.5}/kerykeion/relationship_score/relationship_score_factory.py +0 -0
  34. {kerykeion-4.24.3 → kerykeion-4.24.5}/kerykeion/report.py +0 -0
  35. {kerykeion-4.24.3 → kerykeion-4.24.5}/kerykeion/settings/__init__.py +0 -0
  36. {kerykeion-4.24.3 → kerykeion-4.24.5}/kerykeion/settings/config_constants.py +0 -0
  37. {kerykeion-4.24.3 → kerykeion-4.24.5}/kerykeion/settings/kerykeion_settings.py +0 -0
  38. {kerykeion-4.24.3 → kerykeion-4.24.5}/kerykeion/settings/kr.config.json +0 -0
  39. {kerykeion-4.24.3 → kerykeion-4.24.5}/kerykeion/sweph/README.md +0 -0
  40. {kerykeion-4.24.3 → kerykeion-4.24.5}/kerykeion/sweph/seas_18.se1 +0 -0
  41. {kerykeion-4.24.3 → kerykeion-4.24.5}/kerykeion/utilities.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kerykeion
3
- Version: 4.24.3
3
+ Version: 4.24.5
4
4
  Summary: A python library for astrology.
5
5
  Home-page: https://www.kerykeion.net/
6
6
  License: AGPL-3.0
@@ -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))
@@ -758,10 +758,8 @@ def draw_transit_aspect_list(
758
758
  inner_path += f"</g>"
759
759
  line = line + 14
760
760
 
761
- out = f'<g style="transform: translate(43%, 50%)">'
762
- out += f'<text y="-15" x="0" style="fill: var(--kerykeion-chart-color-paper-0); font-size: 14px;">{grid_title}:</text>'
761
+ out = f'<text y="-15" x="0" style="fill: var(--kerykeion-chart-color-paper-0); font-size: 14px;">{grid_title}:</text>'
763
762
  out += inner_path
764
- out += "</g>"
765
763
 
766
764
  return out
767
765
 
@@ -94,7 +94,7 @@ OpenAstro.org -->
94
94
  </g>
95
95
 
96
96
  <!-- AspectGrid -->
97
- <g kr:node="Aspect_Grid" transform="translate(10,0)">
97
+ <g kr:node="Aspect_Grid" transform="translate(526,273)">
98
98
  $makeAspectGrid
99
99
  </g>
100
100
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "kerykeion"
3
- version = "4.24.3"
3
+ version = "4.24.5"
4
4
  authors = ["Giacomo Battaglia <kerykeion.astrology@gmail.com>"]
5
5
  description = "A python library for astrology."
6
6
  license = "AGPL-3.0"
File without changes
File without changes