kerykeion 4.26.1__py3-none-any.whl → 5.0.0a1__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 (50) hide show
  1. kerykeion/__init__.py +8 -5
  2. kerykeion/aspects/aspects_utils.py +14 -8
  3. kerykeion/aspects/natal_aspects.py +26 -17
  4. kerykeion/aspects/synastry_aspects.py +32 -15
  5. kerykeion/aspects/transits_time_range.py +2 -2
  6. kerykeion/astrological_subject_factory.py +1132 -0
  7. kerykeion/charts/charts_utils.py +583 -85
  8. kerykeion/charts/draw_planets.py +9 -8
  9. kerykeion/charts/draw_planets_v2.py +639 -0
  10. kerykeion/charts/kerykeion_chart_svg.py +1289 -592
  11. kerykeion/charts/templates/chart.xml +178 -79
  12. kerykeion/charts/templates/wheel_only.xml +13 -12
  13. kerykeion/charts/themes/classic.css +91 -76
  14. kerykeion/charts/themes/dark-high-contrast.css +129 -107
  15. kerykeion/charts/themes/dark.css +130 -107
  16. kerykeion/charts/themes/light.css +130 -103
  17. kerykeion/charts/themes/strawberry.css +143 -0
  18. kerykeion/composite_subject_factory.py +26 -43
  19. kerykeion/ephemeris_data.py +6 -10
  20. kerykeion/house_comparison/__init__.py +3 -0
  21. kerykeion/house_comparison/house_comparison_factory.py +70 -0
  22. kerykeion/house_comparison/house_comparison_models.py +38 -0
  23. kerykeion/house_comparison/house_comparison_utils.py +98 -0
  24. kerykeion/kr_types/chart_types.py +9 -3
  25. kerykeion/kr_types/kr_literals.py +34 -6
  26. kerykeion/kr_types/kr_models.py +122 -160
  27. kerykeion/kr_types/settings_models.py +107 -143
  28. kerykeion/planetary_return_factory.py +299 -0
  29. kerykeion/relationship_score/relationship_score.py +3 -3
  30. kerykeion/relationship_score/relationship_score_factory.py +9 -12
  31. kerykeion/report.py +4 -4
  32. kerykeion/settings/config_constants.py +35 -6
  33. kerykeion/settings/kerykeion_settings.py +1 -0
  34. kerykeion/settings/kr.config.json +1301 -1255
  35. kerykeion/settings/legacy/__init__.py +0 -0
  36. kerykeion/settings/legacy/legacy_celestial_points_settings.py +299 -0
  37. kerykeion/settings/legacy/legacy_chart_aspects_settings.py +71 -0
  38. kerykeion/settings/legacy/legacy_color_settings.py +42 -0
  39. kerykeion/transits_time_range.py +13 -9
  40. kerykeion/utilities.py +228 -31
  41. {kerykeion-4.26.1.dist-info → kerykeion-5.0.0a1.dist-info}/METADATA +137 -10
  42. kerykeion-5.0.0a1.dist-info/RECORD +56 -0
  43. {kerykeion-4.26.1.dist-info → kerykeion-5.0.0a1.dist-info}/WHEEL +1 -1
  44. kerykeion/.DS_Store +0 -0
  45. kerykeion/astrological_subject.py +0 -841
  46. kerykeion/charts/.DS_Store +0 -0
  47. kerykeion-4.26.1.dist-info/LICENSE +0 -661
  48. kerykeion-4.26.1.dist-info/RECORD +0 -48
  49. /LICENSE → /kerykeion-5.0.0a1.dist-info/LICENSE +0 -0
  50. {kerykeion-4.26.1.dist-info → kerykeion-5.0.0a1.dist-info}/entry_points.txt +0 -0
File without changes
@@ -0,0 +1,299 @@
1
+ """
2
+ This is a legacy settings file, do not change it!
3
+ """
4
+ DEFAULT_CELESTIAL_POINTS_SETTINGS = [
5
+ {
6
+ "id": 0,
7
+ "name": "Sun",
8
+ "color": "var(--kerykeion-chart-color-sun)",
9
+ "element_points": 40,
10
+ "label": "Sun"
11
+ },
12
+ {
13
+ "id": 1,
14
+ "name": "Moon",
15
+ "color": "var(--kerykeion-chart-color-moon)",
16
+ "element_points": 40,
17
+ "label": "Moon"
18
+ },
19
+ {
20
+ "id": 2,
21
+ "name": "Mercury",
22
+ "color": "var(--kerykeion-chart-color-mercury)",
23
+ "element_points": 15,
24
+ "label": "Mercury"
25
+ },
26
+ {
27
+ "id": 3,
28
+ "name": "Venus",
29
+ "color": "var(--kerykeion-chart-color-venus)",
30
+ "element_points": 15,
31
+ "label": "Venus"
32
+ },
33
+ {
34
+ "id": 4,
35
+ "name": "Mars",
36
+ "color": "var(--kerykeion-chart-color-mars)",
37
+ "element_points": 15,
38
+ "label": "Mars"
39
+ },
40
+ {
41
+ "id": 5,
42
+ "name": "Jupiter",
43
+ "color": "var(--kerykeion-chart-color-jupiter)",
44
+ "element_points": 10,
45
+ "label": "Jupiter"
46
+ },
47
+ {
48
+ "id": 6,
49
+ "name": "Saturn",
50
+ "color": "var(--kerykeion-chart-color-saturn)",
51
+ "element_points": 10,
52
+ "label": "Saturn"
53
+ },
54
+ {
55
+ "id": 7,
56
+ "name": "Uranus",
57
+ "color": "var(--kerykeion-chart-color-uranus)",
58
+ "element_points": 10,
59
+ "label": "Uranus"
60
+ },
61
+ {
62
+ "id": 8,
63
+ "name": "Neptune",
64
+ "color": "var(--kerykeion-chart-color-neptune)",
65
+ "element_points": 10,
66
+ "label": "Neptune"
67
+ },
68
+ {
69
+ "id": 9,
70
+ "name": "Pluto",
71
+ "color": "var(--kerykeion-chart-color-pluto)",
72
+ "element_points": 10,
73
+ "label": "Pluto"
74
+ },
75
+ {
76
+ "id": 10,
77
+ "name": "Mean_Node",
78
+ "color": "var(--kerykeion-chart-color-mean-node)",
79
+ "element_points": 0,
80
+ "label": "Mean_Node"
81
+ },
82
+ {
83
+ "id": 11,
84
+ "name": "True_Node",
85
+ "color": "var(--kerykeion-chart-color-true-node)",
86
+ "element_points": 0,
87
+ "label": "True_Node"
88
+ },
89
+ {
90
+ "id": 12,
91
+ "name": "Chiron",
92
+ "color": "var(--kerykeion-chart-color-chiron)",
93
+ "element_points": 0,
94
+ "label": "Chiron"
95
+ },
96
+ {
97
+ "id": 13,
98
+ "name": "Ascendant",
99
+ "color": "var(--kerykeion-chart-color-first-house)",
100
+ "element_points": 40,
101
+ "label": "Asc"
102
+ },
103
+ {
104
+ "id": 14,
105
+ "name": "Medium_Coeli",
106
+ "color": "var(--kerykeion-chart-color-tenth-house)",
107
+ "element_points": 20,
108
+ "label": "Mc"
109
+ },
110
+ {
111
+ "id": 15,
112
+ "name": "Descendant",
113
+ "color": "var(--kerykeion-chart-color-seventh-house)",
114
+ "element_points": 0,
115
+ "label": "Dsc"
116
+ },
117
+ {
118
+ "id": 16,
119
+ "name": "Imum_Coeli",
120
+ "color": "var(--kerykeion-chart-color-fourth-house)",
121
+ "element_points": 0,
122
+ "label": "Ic"
123
+ },
124
+ {
125
+ "id": 17,
126
+ "name": "Mean_Lilith",
127
+ "color": "var(--kerykeion-chart-color-mean-lilith)",
128
+ "element_points": 0,
129
+ "label": "Mean_Lilith"
130
+ },
131
+ {
132
+ "id": 18,
133
+ "name": "Mean_South_Node",
134
+ "color": "var(--kerykeion-chart-color-mean-node)",
135
+ "element_points": 0,
136
+ "label": "Mean_South_Node"
137
+ },
138
+ {
139
+ "id": 19,
140
+ "name": "True_South_Node",
141
+ "color": "var(--kerykeion-chart-color-true-node)",
142
+ "element_points": 0,
143
+ "label": "True_South_Node"
144
+ },
145
+ {
146
+ "id": 20,
147
+ "name": "True_Lilith",
148
+ "color": "var(--kerykeion-chart-color-mean-lilith)",
149
+ "element_points": 0,
150
+ "label": "True_Lilith"
151
+ },
152
+ {
153
+ "id": 21,
154
+ "name": "Earth",
155
+ "color": "var(--kerykeion-chart-color-earth)",
156
+ "element_points": 0,
157
+ "label": "Earth"
158
+ },
159
+ {
160
+ "id": 22,
161
+ "name": "Pholus",
162
+ "color": "var(--kerykeion-chart-color-pholus)",
163
+ "element_points": 0,
164
+ "label": "Pholus"
165
+ },
166
+ {
167
+ "id": 23,
168
+ "name": "Ceres",
169
+ "color": "var(--kerykeion-chart-color-ceres)",
170
+ "element_points": 0,
171
+ "label": "Ceres"
172
+ },
173
+ {
174
+ "id": 24,
175
+ "name": "Pallas",
176
+ "color": "var(--kerykeion-chart-color-pallas)",
177
+ "element_points": 0,
178
+ "label": "Pallas"
179
+ },
180
+ {
181
+ "id": 25,
182
+ "name": "Juno",
183
+ "color": "var(--kerykeion-chart-color-juno)",
184
+ "element_points": 0,
185
+ "label": "Juno"
186
+ },
187
+ {
188
+ "id": 26,
189
+ "name": "Vesta",
190
+ "color": "var(--kerykeion-chart-color-vesta)",
191
+ "element_points": 0,
192
+ "label": "Vesta"
193
+ },
194
+ {
195
+ "id": 27,
196
+ "name": "Eris",
197
+ "color": "var(--kerykeion-chart-color-eris)",
198
+ "element_points": 0,
199
+ "label": "Eris"
200
+ },
201
+ {
202
+ "id": 28,
203
+ "name": "Sedna",
204
+ "color": "var(--kerykeion-chart-color-sedna)",
205
+ "element_points": 0,
206
+ "label": "Sedna"
207
+ },
208
+ {
209
+ "id": 29,
210
+ "name": "Haumea",
211
+ "color": "var(--kerykeion-chart-color-haumea)",
212
+ "element_points": 0,
213
+ "label": "Haumea"
214
+ },
215
+ {
216
+ "id": 30,
217
+ "name": "Makemake",
218
+ "color": "var(--kerykeion-chart-color-makemake)",
219
+ "element_points": 0,
220
+ "label": "Makemake"
221
+ },
222
+ {
223
+ "id": 31,
224
+ "name": "Ixion",
225
+ "color": "var(--kerykeion-chart-color-ixion)",
226
+ "element_points": 0,
227
+ "label": "Ixion"
228
+ },
229
+ {
230
+ "id": 32,
231
+ "name": "Orcus",
232
+ "color": "var(--kerykeion-chart-color-orcus)",
233
+ "element_points": 0,
234
+ "label": "Orcus"
235
+ },
236
+ {
237
+ "id": 33,
238
+ "name": "Quaoar",
239
+ "color": "var(--kerykeion-chart-color-quaoar)",
240
+ "element_points": 0,
241
+ "label": "Quaoar"
242
+ },
243
+ {
244
+ "id": 34,
245
+ "name": "Regulus",
246
+ "color": "var(--kerykeion-chart-color-regulus)",
247
+ "element_points": 0,
248
+ "label": "Regulus"
249
+ },
250
+ {
251
+ "id": 35,
252
+ "name": "Spica",
253
+ "color": "var(--kerykeion-chart-color-spica)",
254
+ "element_points": 0,
255
+ "label": "Spica"
256
+ },
257
+ {
258
+ "id": 36,
259
+ "name": "Pars_Fortunae",
260
+ "color": "var(--kerykeion-chart-color-pars-fortunae)",
261
+ "element_points": 5,
262
+ "label": "Fortune"
263
+ },
264
+ {
265
+ "id": 37,
266
+ "name": "Pars_Spiritus",
267
+ "color": "var(--kerykeion-chart-color-pars-spiritus)",
268
+ "element_points": 0,
269
+ "label": "Spirit"
270
+ },
271
+ {
272
+ "id": 38,
273
+ "name": "Pars_Amoris",
274
+ "color": "var(--kerykeion-chart-color-pars-amoris)",
275
+ "element_points": 0,
276
+ "label": "Love"
277
+ },
278
+ {
279
+ "id": 39,
280
+ "name": "Pars_Fidei",
281
+ "color": "var(--kerykeion-chart-color-pars-fidei)",
282
+ "element_points": 0,
283
+ "label": "Faith"
284
+ },
285
+ {
286
+ "id": 40,
287
+ "name": "Vertex",
288
+ "color": "var(--kerykeion-chart-color-vertex)",
289
+ "element_points": 0,
290
+ "label": "Vertex"
291
+ },
292
+ {
293
+ "id": 41,
294
+ "name": "Anti_Vertex",
295
+ "color": "var(--kerykeion-chart-color-anti-vertex)",
296
+ "element_points": 0,
297
+ "label": "Anti_Vertex"
298
+ }
299
+ ]
@@ -0,0 +1,71 @@
1
+ """
2
+ This is a legacy settings file, do not change it!
3
+ """
4
+ DEFAULT_CHART_ASPECTS_SETTINGS = [
5
+ {
6
+ "degree": 0,
7
+ "name": "conjunction",
8
+ "is_major": True,
9
+ "color": "var(--kerykeion-chart-color-conjunction)"
10
+ },
11
+ {
12
+ "degree": 30,
13
+ "name": "semi-sextile",
14
+ "is_major": False,
15
+ "color": "var(--kerykeion-chart-color-semi-sextile)"
16
+ },
17
+ {
18
+ "degree": 45,
19
+ "name": "semi-square",
20
+ "is_major": False,
21
+ "color": "var(--kerykeion-chart-color-semi-square)"
22
+ },
23
+ {
24
+ "degree": 60,
25
+ "name": "sextile",
26
+ "is_major": True,
27
+ "color": "var(--kerykeion-chart-color-sextile)"
28
+ },
29
+ {
30
+ "degree": 72,
31
+ "name": "quintile",
32
+ "is_major": False,
33
+ "color": "var(--kerykeion-chart-color-quintile)"
34
+ },
35
+ {
36
+ "degree": 90,
37
+ "name": "square",
38
+ "is_major": True,
39
+ "color": "var(--kerykeion-chart-color-square)"
40
+ },
41
+ {
42
+ "degree": 120,
43
+ "name": "trine",
44
+ "is_major": True,
45
+ "color": "var(--kerykeion-chart-color-trine)"
46
+ },
47
+ {
48
+ "degree": 135,
49
+ "name": "sesquiquadrate",
50
+ "is_major": False,
51
+ "color": "var(--kerykeion-chart-color-sesquiquadrate)"
52
+ },
53
+ {
54
+ "degree": 144,
55
+ "name": "biquintile",
56
+ "is_major": False,
57
+ "color": "var(--kerykeion-chart-color-biquintile)"
58
+ },
59
+ {
60
+ "degree": 150,
61
+ "name": "quincunx",
62
+ "is_major": False,
63
+ "color": "var(--kerykeion-chart-color-quincunx)"
64
+ },
65
+ {
66
+ "degree": 180,
67
+ "name": "opposition",
68
+ "is_major": True,
69
+ "color": "var(--kerykeion-chart-color-opposition)"
70
+ }
71
+ ]
@@ -0,0 +1,42 @@
1
+ """
2
+ This is a legacy settings file, do not change it!
3
+ """
4
+ DEFAULT_CHART_COLORS = {
5
+ "paper_0": "var(--kerykeion-chart-color-paper-0)",
6
+ "paper_1": "var(--kerykeion-chart-color-paper-1)",
7
+ "zodiac_bg_0": "var(--kerykeion-chart-color-zodiac-bg-0)",
8
+ "zodiac_bg_1": "var(--kerykeion-chart-color-zodiac-bg-1)",
9
+ "zodiac_bg_2": "var(--kerykeion-chart-color-zodiac-bg-2)",
10
+ "zodiac_bg_3": "var(--kerykeion-chart-color-zodiac-bg-3)",
11
+ "zodiac_bg_4": "var(--kerykeion-chart-color-zodiac-bg-4)",
12
+ "zodiac_bg_5": "var(--kerykeion-chart-color-zodiac-bg-5)",
13
+ "zodiac_bg_6": "var(--kerykeion-chart-color-zodiac-bg-6)",
14
+ "zodiac_bg_7": "var(--kerykeion-chart-color-zodiac-bg-7)",
15
+ "zodiac_bg_8": "var(--kerykeion-chart-color-zodiac-bg-8)",
16
+ "zodiac_bg_9": "var(--kerykeion-chart-color-zodiac-bg-9)",
17
+ "zodiac_bg_10": "var(--kerykeion-chart-color-zodiac-bg-10)",
18
+ "zodiac_bg_11": "var(--kerykeion-chart-color-zodiac-bg-11)",
19
+ "zodiac_icon_0": "var(--kerykeion-chart-color-zodiac-icon-0)",
20
+ "zodiac_icon_1": "var(--kerykeion-chart-color-zodiac-icon-1)",
21
+ "zodiac_icon_2": "var(--kerykeion-chart-color-zodiac-icon-2)",
22
+ "zodiac_icon_3": "var(--kerykeion-chart-color-zodiac-icon-3)",
23
+ "zodiac_icon_4": "var(--kerykeion-chart-color-zodiac-icon-4)",
24
+ "zodiac_icon_5": "var(--kerykeion-chart-color-zodiac-icon-5)",
25
+ "zodiac_icon_6": "var(--kerykeion-chart-color-zodiac-icon-6)",
26
+ "zodiac_icon_7": "var(--kerykeion-chart-color-zodiac-icon-7)",
27
+ "zodiac_icon_8": "var(--kerykeion-chart-color-zodiac-icon-8)",
28
+ "zodiac_icon_9": "var(--kerykeion-chart-color-zodiac-icon-9)",
29
+ "zodiac_icon_10": "var(--kerykeion-chart-color-zodiac-icon-10)",
30
+ "zodiac_icon_11": "var(--kerykeion-chart-color-zodiac-icon-11)",
31
+ "zodiac_radix_ring_0": "var(--kerykeion-chart-color-zodiac-radix-ring-0)",
32
+ "zodiac_radix_ring_1": "var(--kerykeion-chart-color-zodiac-radix-ring-1)",
33
+ "zodiac_radix_ring_2": "var(--kerykeion-chart-color-zodiac-radix-ring-2)",
34
+ "zodiac_transit_ring_0": "var(--kerykeion-chart-color-zodiac-transit-ring-0)",
35
+ "zodiac_transit_ring_1": "var(--kerykeion-chart-color-zodiac-transit-ring-1)",
36
+ "zodiac_transit_ring_2": "var(--kerykeion-chart-color-zodiac-transit-ring-2)",
37
+ "zodiac_transit_ring_3": "var(--kerykeion-chart-color-zodiac-transit-ring-3)",
38
+ "houses_radix_line": "var(--kerykeion-chart-color-houses-radix-line)",
39
+ "houses_transit_line": "var(--kerykeion-chart-color-houses-transit-line)",
40
+ "lunar_phase_0": "var(--kerykeion-chart-color-lunar-phase-0)",
41
+ "lunar_phase_1": "var(--kerykeion-chart-color-lunar-phase-1)",
42
+ }
@@ -1,10 +1,14 @@
1
1
  from typing import Optional, Union, List
2
2
  from datetime import datetime, timedelta
3
- from kerykeion import AstrologicalSubject, SynastryAspects
3
+ from kerykeion.kr_types.kr_models import AstrologicalSubjectModel
4
+ from kerykeion.astrological_subject_factory import AstrologicalSubjectFactory
5
+ from kerykeion.aspects import SynastryAspects
4
6
  from kerykeion.ephemeris_data import EphemerisDataFactory
5
- from kerykeion.kr_types.kr_literals import AxialCusps, Planet
7
+ from kerykeion.kr_types.kr_literals import AstrologicalPoint
6
8
  from kerykeion.kr_types.kr_models import ActiveAspect, TransitMomentModel, TransitsTimeRangeModel
9
+ from kerykeion.kr_types.settings_models import KerykeionSettingsModel
7
10
  from kerykeion.settings.config_constants import DEFAULT_ACTIVE_POINTS, DEFAULT_ACTIVE_ASPECTS
11
+ from pathlib import Path
8
12
 
9
13
 
10
14
  class TransitsTimeRangeFactory:
@@ -20,16 +24,16 @@ class TransitsTimeRangeFactory:
20
24
  ephemeris_data_points: List of ephemeris data points representing planetary positions at different times.
21
25
  active_points: List of celestial points to consider when calculating aspects.
22
26
  active_aspects: List of aspect types to consider when analyzing planetary relationships.
23
- settings_file: Path to custom settings file for aspect calculations (optional).
27
+ settings_file: Path to the settings file or a KerykeionSettingsModel object.
24
28
  """
25
29
 
26
30
  def __init__(
27
31
  self,
28
- natal_chart: AstrologicalSubject,
29
- ephemeris_data_points: List[AstrologicalSubject],
30
- active_points: List[Union[AxialCusps, Planet]] = DEFAULT_ACTIVE_POINTS,
32
+ natal_chart: AstrologicalSubjectModel,
33
+ ephemeris_data_points: List[AstrologicalSubjectModel],
34
+ active_points: List[AstrologicalPoint] = DEFAULT_ACTIVE_POINTS,
31
35
  active_aspects: List[ActiveAspect] = DEFAULT_ACTIVE_ASPECTS,
32
- settings_file: Optional[str] = None
36
+ settings_file: Union[Path, KerykeionSettingsModel, dict, None] = None,
33
37
  ):
34
38
  """
35
39
  Initialize the TransitMomentsFactory with the necessary data.
@@ -39,7 +43,7 @@ class TransitsTimeRangeFactory:
39
43
  ephemeris_data_points: List of ephemeris data points representing planetary positions at different times.
40
44
  active_points: List of celestial points to consider when calculating aspects.
41
45
  active_aspects: List of aspect types to consider when analyzing planetary relationships.
42
- settings_file: Path to custom settings file for aspect calculations (optional).
46
+ settings_file: Path to the settings file or a KerykeionSettingsModel object.
43
47
  """
44
48
  self.natal_chart = natal_chart
45
49
  self.ephemeris_data_points = ephemeris_data_points
@@ -89,7 +93,7 @@ class TransitsTimeRangeFactory:
89
93
 
90
94
  if __name__ == "__main__":
91
95
  # Create a natal chart for the subject
92
- person = AstrologicalSubject(
96
+ person = AstrologicalSubjectFactory.from_birth_data(
93
97
  "Johnny Depp", 1963, 6, 9, 20, 15, "Owensboro", "US"
94
98
  )
95
99