kerykeion 5.0.0a9__py3-none-any.whl → 5.0.0a11__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.

Files changed (42) hide show
  1. kerykeion/__init__.py +21 -4
  2. kerykeion/aspects/__init__.py +7 -2
  3. kerykeion/aspects/aspects_utils.py +1 -3
  4. kerykeion/aspects/natal_aspects_factory.py +235 -0
  5. kerykeion/aspects/synastry_aspects_factory.py +275 -0
  6. kerykeion/astrological_subject_factory.py +688 -86
  7. kerykeion/charts/charts_utils.py +12 -12
  8. kerykeion/charts/draw_planets.py +584 -344
  9. kerykeion/charts/kerykeion_chart_svg.py +11 -16
  10. kerykeion/charts/templates/wheel_only.xml +1 -1
  11. kerykeion/composite_subject_factory.py +229 -10
  12. kerykeion/ephemeris_data_factory.py +431 -0
  13. kerykeion/fetch_geonames.py +27 -8
  14. kerykeion/house_comparison/__init__.py +6 -0
  15. kerykeion/house_comparison/house_comparison_factory.py +1 -1
  16. kerykeion/house_comparison/house_comparison_utils.py +0 -1
  17. kerykeion/kr_types/__init__.py +49 -0
  18. kerykeion/kr_types/kerykeion_exception.py +6 -0
  19. kerykeion/kr_types/kr_models.py +84 -2
  20. kerykeion/kr_types/settings_models.py +9 -1
  21. kerykeion/planetary_return_factory.py +538 -37
  22. kerykeion/relationship_score_factory.py +123 -59
  23. kerykeion/report.py +7 -1
  24. kerykeion/settings/__init__.py +5 -0
  25. kerykeion/settings/config_constants.py +20 -6
  26. kerykeion/settings/kr.config.json +80 -0
  27. kerykeion/transits_time_range_factory.py +293 -0
  28. kerykeion/utilities.py +130 -68
  29. {kerykeion-5.0.0a9.dist-info → kerykeion-5.0.0a11.dist-info}/METADATA +9 -4
  30. kerykeion-5.0.0a11.dist-info/RECORD +50 -0
  31. kerykeion/aspects/natal_aspects.py +0 -181
  32. kerykeion/aspects/synastry_aspects.py +0 -141
  33. kerykeion/aspects/transits_time_range.py +0 -41
  34. kerykeion/charts/draw_planets_v2.py +0 -649
  35. kerykeion/charts/draw_planets_v3.py +0 -679
  36. kerykeion/enums.py +0 -57
  37. kerykeion/ephemeris_data.py +0 -238
  38. kerykeion/transits_time_range.py +0 -128
  39. kerykeion-5.0.0a9.dist-info/RECORD +0 -55
  40. kerykeion-5.0.0a9.dist-info/entry_points.txt +0 -2
  41. {kerykeion-5.0.0a9.dist-info → kerykeion-5.0.0a11.dist-info}/WHEEL +0 -0
  42. {kerykeion-5.0.0a9.dist-info → kerykeion-5.0.0a11.dist-info}/licenses/LICENSE +0 -0
@@ -2,7 +2,7 @@ import math
2
2
  import datetime
3
3
  from kerykeion.kr_types import KerykeionException, ChartType
4
4
  from kerykeion.kr_types.kr_literals import AstrologicalPoint
5
- from typing import Union, Literal, TYPE_CHECKING
5
+ from typing import Union, Literal
6
6
  from kerykeion.kr_types.kr_models import AspectModel, KerykeionPointModel, CompositeSubjectModel, PlanetReturnModel, AstrologicalSubjectModel
7
7
  from kerykeion.kr_types.settings_models import KerykeionLanguageCelestialPointModel, KerykeionSettingsCelestialPointModel
8
8
  from kerykeion.house_comparison import HouseComparisonModel
@@ -645,15 +645,15 @@ def draw_houses_cusps_and_text_number(
645
645
 
646
646
  # Add the house number text for the second subject
647
647
  fill_opacity = "0" if chart_type == "Transit" else ".4"
648
- path += f'<g kr:node="HouseNumber">'
648
+ path += '<g kr:node="HouseNumber">'
649
649
  path += f'<text style="fill: var(--kerykeion-chart-color-house-number); fill-opacity: {fill_opacity}; font-size: 14px"><tspan x="{xtext - 3}" y="{ytext + 3}">{i + 1}</tspan></text>'
650
- path += f"</g>"
650
+ path += "</g>"
651
651
 
652
652
  # Add the house cusp line for the second subject
653
653
  stroke_opacity = "0" if chart_type == "Transit" else ".3"
654
- path += f'<g kr:node="Cusp">'
654
+ path += '<g kr:node="Cusp">'
655
655
  path += f"<line x1='{t_x1}' y1='{t_y1}' x2='{t_x2}' y2='{t_y2}' style='stroke: {t_linecolor}; stroke-width: 1px; stroke-opacity:{stroke_opacity};'/>"
656
- path += f"</g>"
656
+ path += "</g>"
657
657
 
658
658
  # Adjust dropin based on chart type
659
659
  dropin = {"Transit": 84, "Synastry": 84, "Return": 84, "ExternalNatal": 100}.get(chart_type, 48)
@@ -661,14 +661,14 @@ def draw_houses_cusps_and_text_number(
661
661
  ytext = sliceToY(0, (r - dropin), text_offset) + dropin
662
662
 
663
663
  # Add the house cusp line for the first subject
664
- path += f'<g kr:node="Cusp">'
664
+ path += '<g kr:node="Cusp">'
665
665
  path += f'<line x1="{x1}" y1="{y1}" x2="{x2}" y2="{y2}" style="stroke: {linecolor}; stroke-width: 1px; stroke-dasharray:3,2; stroke-opacity:.4;"/>'
666
- path += f"</g>"
666
+ path += "</g>"
667
667
 
668
668
  # Add the house number text for the first subject
669
- path += f'<g kr:node="HouseNumber">'
669
+ path += '<g kr:node="HouseNumber">'
670
670
  path += f'<text style="fill: var(--kerykeion-chart-color-house-number); fill-opacity: .6; font-size: 14px"><tspan x="{xtext - 3}" y="{ytext + 3}">{i + 1}</tspan></text>'
671
- path += f"</g>"
671
+ path += "</g>"
672
672
 
673
673
  return path
674
674
 
@@ -740,14 +740,14 @@ def draw_transit_aspect_list(
740
740
  inner_path += f'<use x="15" y="0" xlink:href="#orb{id_value}" />'
741
741
 
742
742
  # Second planet symbol
743
- inner_path += f'<g transform="translate(30,0)">'
743
+ inner_path += '<g transform="translate(30,0)">'
744
744
  inner_path += f'<use transform="scale(0.4)" x="0" y="3" xlink:href="#{celestial_point_language[aspect["p2"]]["name"]}" />'
745
- inner_path += f"</g>"
745
+ inner_path += "</g>"
746
746
 
747
747
  # Difference in degrees
748
748
  inner_path += f'<text y="8" x="45" style="fill: var(--kerykeion-chart-color-paper-0); font-size: 10px;">{convert_decimal_to_degree_string(aspect["orbit"])}</text>'
749
749
 
750
- inner_path += f"</g>"
750
+ inner_path += "</g>"
751
751
 
752
752
  out = '<g transform="translate(565,273)">'
753
753
  out += f'<text y="-15" x="0" style="fill: var(--kerykeion-chart-color-paper-0); font-size: 14px;">{grid_title}:</text>'