kerykeion 4.18.3__py3-none-any.whl → 5.1.9__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.
- kerykeion/__init__.py +56 -11
- kerykeion/aspects/__init__.py +7 -4
- kerykeion/aspects/aspects_factory.py +568 -0
- kerykeion/aspects/aspects_utils.py +86 -13
- kerykeion/astrological_subject_factory.py +1901 -0
- kerykeion/backword.py +820 -0
- kerykeion/chart_data_factory.py +552 -0
- kerykeion/charts/__init__.py +2 -2
- kerykeion/charts/chart_drawer.py +2794 -0
- kerykeion/charts/charts_utils.py +1066 -309
- kerykeion/charts/draw_planets.py +602 -351
- kerykeion/charts/templates/aspect_grid_only.xml +337 -193
- kerykeion/charts/templates/chart.xml +441 -240
- kerykeion/charts/templates/wheel_only.xml +365 -211
- kerykeion/charts/themes/black-and-white.css +148 -0
- kerykeion/charts/themes/classic.css +107 -76
- kerykeion/charts/themes/dark-high-contrast.css +145 -107
- kerykeion/charts/themes/dark.css +146 -107
- kerykeion/charts/themes/light.css +146 -103
- kerykeion/charts/themes/strawberry.css +158 -0
- kerykeion/composite_subject_factory.py +408 -0
- kerykeion/ephemeris_data_factory.py +443 -0
- kerykeion/fetch_geonames.py +81 -21
- kerykeion/house_comparison/__init__.py +6 -0
- kerykeion/house_comparison/house_comparison_factory.py +103 -0
- kerykeion/house_comparison/house_comparison_utils.py +126 -0
- kerykeion/kr_types/__init__.py +66 -6
- kerykeion/kr_types/chart_template_model.py +20 -0
- kerykeion/kr_types/kerykeion_exception.py +15 -9
- kerykeion/kr_types/kr_literals.py +14 -106
- kerykeion/kr_types/kr_models.py +14 -179
- kerykeion/kr_types/settings_models.py +15 -152
- kerykeion/planetary_return_factory.py +805 -0
- kerykeion/relationship_score_factory.py +301 -0
- kerykeion/report.py +750 -65
- kerykeion/schemas/__init__.py +106 -0
- kerykeion/schemas/chart_template_model.py +367 -0
- kerykeion/schemas/kerykeion_exception.py +20 -0
- kerykeion/schemas/kr_literals.py +181 -0
- kerykeion/schemas/kr_models.py +603 -0
- kerykeion/schemas/settings_models.py +188 -0
- kerykeion/settings/__init__.py +20 -1
- kerykeion/settings/chart_defaults.py +444 -0
- kerykeion/settings/config_constants.py +152 -0
- kerykeion/settings/kerykeion_settings.py +36 -61
- kerykeion/settings/translation_strings.py +1499 -0
- kerykeion/settings/translations.py +74 -0
- kerykeion/sweph/ast136/s136108s.se1 +0 -0
- kerykeion/sweph/ast136/s136199s.se1 +0 -0
- kerykeion/sweph/ast136/s136472s.se1 +0 -0
- kerykeion/sweph/ast28/se28978s.se1 +0 -0
- kerykeion/sweph/ast50/se50000s.se1 +0 -0
- kerykeion/sweph/ast90/se90377s.se1 +0 -0
- kerykeion/sweph/ast90/se90482s.se1 +0 -0
- kerykeion/sweph/sefstars.txt +1602 -0
- kerykeion/transits_time_range_factory.py +302 -0
- kerykeion/utilities.py +626 -125
- kerykeion-5.1.9.dist-info/METADATA +1793 -0
- kerykeion-5.1.9.dist-info/RECORD +63 -0
- {kerykeion-4.18.3.dist-info → kerykeion-5.1.9.dist-info}/WHEEL +1 -1
- kerykeion/aspects/natal_aspects.py +0 -143
- kerykeion/aspects/synastry_aspects.py +0 -113
- kerykeion/astrological_subject.py +0 -818
- kerykeion/charts/kerykeion_chart_svg.py +0 -894
- kerykeion/enums.py +0 -51
- kerykeion/ephemeris_data.py +0 -178
- kerykeion/kr_types/chart_types.py +0 -88
- kerykeion/relationship_score/__init__.py +0 -2
- kerykeion/relationship_score/relationship_score.py +0 -175
- kerykeion/relationship_score/relationship_score_factory.py +0 -275
- kerykeion/settings/kr.config.json +0 -721
- kerykeion-4.18.3.dist-info/LICENSE +0 -661
- kerykeion-4.18.3.dist-info/METADATA +0 -396
- kerykeion-4.18.3.dist-info/RECORD +0 -42
- kerykeion-4.18.3.dist-info/entry_points.txt +0 -3
- /LICENSE → /kerykeion-5.1.9.dist-info/licenses/LICENSE +0 -0
|
@@ -1,157 +1,20 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
"""
|
|
3
|
-
|
|
4
|
-
"""
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
from pydantic import Field
|
|
8
|
-
from typing import List
|
|
9
|
-
from kerykeion.kr_types.kr_models import SubscriptableBaseModel
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class KerykeionSettingsCelestialPointModel(SubscriptableBaseModel):
|
|
13
|
-
"""
|
|
14
|
-
Defines the model for a celestial point data.
|
|
15
|
-
"""
|
|
16
|
-
|
|
17
|
-
id: int = Field(title="Celestial Point ID", description="Celestial Point ID according to Pyswisseph")
|
|
18
|
-
name: str = Field(title="Celestial Point Name", description="Celestial Point Name")
|
|
19
|
-
color: str = Field(title="Celestial Point Color", description="Celestial Point Color, used in the chart")
|
|
20
|
-
is_active: bool = Field(title="Celestial Point is Active", description="Indicates if the celestial point is active in the chart")
|
|
21
|
-
element_points: int = Field(title="Celestial Point Element Points", description="Element Points given to the celestial point")
|
|
22
|
-
related_zodiac_signs: List[int] = Field(title="Celestial Point Related Zodiac Signs", description="Zodiac Signs related to the celestial point")
|
|
23
|
-
label: str = Field(title="Celestial Point Label", description="The name of the celestial point in the chart, it can be different from the name")
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
# Chart Colors Settings
|
|
27
|
-
class KerykeionSettingsChartColorsModel(SubscriptableBaseModel):
|
|
28
|
-
"""
|
|
29
|
-
Defines the model for the chart colors.
|
|
30
|
-
"""
|
|
31
|
-
|
|
32
|
-
paper_0: str = Field(title="Paper Color 0", description="Paper Color 0")
|
|
33
|
-
paper_1: str = Field(title="Paper Color 1", description="Paper Color 1")
|
|
34
|
-
zodiac_bg_0: str = Field(title="Zodiac Background Color 0", description="Zodiac Background Color 0")
|
|
35
|
-
zodiac_bg_1: str = Field(title="Zodiac Background Color 1", description="Zodiac Background Color 1")
|
|
36
|
-
zodiac_bg_2: str = Field(title="Zodiac Background Color 2", description="Zodiac Background Color 2")
|
|
37
|
-
zodiac_bg_3: str = Field(title="Zodiac Background Color 3", description="Zodiac Background Color 3")
|
|
38
|
-
zodiac_bg_4: str = Field(title="Zodiac Background Color 4", description="Zodiac Background Color 4")
|
|
39
|
-
zodiac_bg_5: str = Field(title="Zodiac Background Color 5", description="Zodiac Background Color 5")
|
|
40
|
-
zodiac_bg_6: str = Field(title="Zodiac Background Color 6", description="Zodiac Background Color 6")
|
|
41
|
-
zodiac_bg_7: str = Field(title="Zodiac Background Color 7", description="Zodiac Background Color 7")
|
|
42
|
-
zodiac_bg_8: str = Field(title="Zodiac Background Color 8", description="Zodiac Background Color 8")
|
|
43
|
-
zodiac_bg_9: str = Field(title="Zodiac Background Color 9", description="Zodiac Background Color 9")
|
|
44
|
-
zodiac_bg_10: str = Field(title="Zodiac Background Color 10", description="Zodiac Background Color 10")
|
|
45
|
-
zodiac_bg_11: str = Field(title="Zodiac Background Color 11", description="Zodiac Background Color 11")
|
|
46
|
-
zodiac_icon_0: str = Field(title="Zodiac Icon Color 0", description="Zodiac Icon Color 0")
|
|
47
|
-
zodiac_icon_1: str = Field(title="Zodiac Icon Color 1", description="Zodiac Icon Color 1")
|
|
48
|
-
zodiac_icon_2: str = Field(title="Zodiac Icon Color 2", description="Zodiac Icon Color 2")
|
|
49
|
-
zodiac_icon_3: str = Field(title="Zodiac Icon Color 3", description="Zodiac Icon Color 3")
|
|
50
|
-
zodiac_icon_4: str = Field(title="Zodiac Icon Color 4", description="Zodiac Icon Color 4")
|
|
51
|
-
zodiac_icon_5: str = Field(title="Zodiac Icon Color 5", description="Zodiac Icon Color 5")
|
|
52
|
-
zodiac_icon_6: str = Field(title="Zodiac Icon Color 6", description="Zodiac Icon Color 6")
|
|
53
|
-
zodiac_icon_7: str = Field(title="Zodiac Icon Color 7", description="Zodiac Icon Color 7")
|
|
54
|
-
zodiac_icon_8: str = Field(title="Zodiac Icon Color 8", description="Zodiac Icon Color 8")
|
|
55
|
-
zodiac_icon_9: str = Field(title="Zodiac Icon Color 9", description="Zodiac Icon Color 9")
|
|
56
|
-
zodiac_icon_10: str = Field(title="Zodiac Icon Color 10", description="Zodiac Icon Color 10")
|
|
57
|
-
zodiac_icon_11: str = Field(title="Zodiac Icon Color 11", description="Zodiac Icon Color 11")
|
|
58
|
-
zodiac_radix_ring_0: str = Field(title="Zodiac Radix Ring Color 0", description="Zodiac Radix Ring Color 0")
|
|
59
|
-
zodiac_radix_ring_1: str = Field(title="Zodiac Radix Ring Color 1", description="Zodiac Radix Ring Color 1")
|
|
60
|
-
zodiac_radix_ring_2: str = Field(title="Zodiac Radix Ring Color 2", description="Zodiac Radix Ring Color 2")
|
|
61
|
-
zodiac_transit_ring_0: str = Field(title="Zodiac Transit Ring Color 0", description="Zodiac Transit Ring Color 0")
|
|
62
|
-
zodiac_transit_ring_1: str = Field(title="Zodiac Transit Ring Color 1", description="Zodiac Transit Ring Color 1")
|
|
63
|
-
zodiac_transit_ring_2: str = Field(title="Zodiac Transit Ring Color 2", description="Zodiac Transit Ring Color 2")
|
|
64
|
-
zodiac_transit_ring_3: str = Field(title="Zodiac Transit Ring Color 3", description="Zodiac Transit Ring Color 3")
|
|
65
|
-
houses_radix_line: str = Field(title="Houses Radix Line Color", description="Houses Radix Line Color")
|
|
66
|
-
houses_transit_line: str = Field(title="Houses Transit Line Color", description="Houses Transit Line Color")
|
|
67
|
-
|
|
68
|
-
# Deprecated: Not used anymore
|
|
69
|
-
lunar_phase_0: str = Field(title="Lunar Phase Color 0", description="Lunar Phase Color 0")
|
|
70
|
-
lunar_phase_1: str = Field(title="Lunar Phase Color 1", description="Lunar Phase Color 1")
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
# Aspect Settings
|
|
74
|
-
class KerykeionSettingsAspectModel(SubscriptableBaseModel):
|
|
75
|
-
"""
|
|
76
|
-
Defines the model for an aspect.
|
|
77
|
-
"""
|
|
78
|
-
|
|
79
|
-
degree: int = Field(title="Aspect Degrees", description="The degree of the aspect")
|
|
80
|
-
name: str = Field(title="Aspect Name", description="The name of the aspect")
|
|
81
|
-
is_active: bool = Field(title="Aspect is Active", description="Is the aspect active?")
|
|
82
|
-
is_major: bool = Field(title="Aspect is Major", description="Is the aspect major?")
|
|
83
|
-
orb: int = Field(title="Aspect Orb", description="The orb of the aspect")
|
|
84
|
-
color: str = Field(title="Aspect Color", description="The color of the aspect")
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
# Language Settings
|
|
88
|
-
class KerykeionLanguageCelestialPointModel(SubscriptableBaseModel):
|
|
89
|
-
"""
|
|
90
|
-
This class is used to define the labels, show in the chart, for the celestial points.
|
|
91
|
-
It is used to translate the celestial points in the language of the chart.
|
|
92
|
-
"""
|
|
93
|
-
|
|
94
|
-
Sun: str = Field(title="Sun", description="The name of the Sun in the chart, in the language")
|
|
95
|
-
Moon: str = Field(title="Moon", description="The name of the Moon in the chart, in the language")
|
|
96
|
-
Mercury: str = Field(title="Mercury", description="The name of Mercury in the chart, in the language")
|
|
97
|
-
Venus: str = Field(title="Venus", description="The name of Venus in the chart, in the language")
|
|
98
|
-
Mars: str = Field(title="Mars", description="The name of Mars in the chart, in the language")
|
|
99
|
-
Jupiter: str = Field(title="Jupiter", description="The name of Jupiter in the chart, in the language")
|
|
100
|
-
Saturn: str = Field(title="Saturn", description="The name of Saturn in the chart, in the language")
|
|
101
|
-
Uranus: str = Field(title="Uranus", description="The name of Uranus in the chart, in the language")
|
|
102
|
-
Neptune: str = Field(title="Neptune", description="The name of Neptune in the chart, in the language")
|
|
103
|
-
Pluto: str = Field(title="Pluto", description="The name of Pluto in the chart, in the language")
|
|
104
|
-
True_Node: str = Field(title="True Node", description="The name of True Node in the chart, in the language")
|
|
105
|
-
Mean_Node: str = Field(title="Mean Node", description="The name of Mean Node in the chart, in the language")
|
|
106
|
-
Chiron: str = Field(title="Chiron", description="The name of Chiron in the chart, in the language")
|
|
107
|
-
Asc: str = Field(title="Ascendant", description="The name of Ascendant in the chart, in the language")
|
|
108
|
-
Mc: str = Field(title="Medium Coeli", description="The name of Medium Coeli in the chart, in the language")
|
|
109
|
-
Dsc: str = Field(title="Descendant", description="The name of Descendant in the chart, in the language")
|
|
110
|
-
Ic: str = Field(title="Imum Coeli", description="The name of Imum Coeli in the chart, in the language")
|
|
111
|
-
Mean_Lilith: str = Field(title="Mean Lilith", description="The name of Mean Lilith in the chart, in the language")
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
class KerykeionLanguageModel(SubscriptableBaseModel):
|
|
115
|
-
"""
|
|
116
|
-
This model is used to store the language settings for the chart,
|
|
117
|
-
it's used to translate the celestial points and the other labels
|
|
118
|
-
"""
|
|
119
|
-
|
|
120
|
-
info: str = Field(title="Info", description="The name of the Info label in the chart, in the language")
|
|
121
|
-
cusp: str = Field(title="Cusp", description="The name of the Cusp label in the chart, in the language")
|
|
122
|
-
longitude: str = Field(title="Longitude", description="The name of the Longitude label in the chart, in the language")
|
|
123
|
-
latitude: str = Field(title="Latitude", description="The name of the Latitude label in the chart, in the language")
|
|
124
|
-
north: str = Field(title="North", description="The name of the North label in the chart, in the language")
|
|
125
|
-
east: str = Field(title="East", description="The name of the East label in the chart, in the language")
|
|
126
|
-
south: str = Field(title="South", description="The name of the South label in the chart, in the language")
|
|
127
|
-
west: str = Field(title="West", description="The name of the West label in the chart, in the language")
|
|
128
|
-
fire: str = Field(title="Fire", description="The name of the Fire label in the chart, in the language")
|
|
129
|
-
earth: str = Field(title="Earth", description="The name of the Earth label in the chart, in the language")
|
|
130
|
-
air: str = Field(title="Air", description="The name of the Air label in the chart, in the language")
|
|
131
|
-
water: str = Field(title="Water", description="The name of the Water label in the chart, in the language")
|
|
132
|
-
and_word: str = Field(title="And", description="The name of the And word in the chart, in the language")
|
|
133
|
-
transits: str = Field(title="Transits", description="The name of the Transits label in the chart, in the language")
|
|
134
|
-
type: str = Field(title="Type", description="The name of the Type label in the chart, in the language")
|
|
135
|
-
aspects: str = Field(title="Aspects", description="The name of the Aspects label in the chart, in the language")
|
|
136
|
-
planets_and_house: str = Field(title="Planets and Houses", description="The name of the Planets and Houses label in the chart, in the language")
|
|
137
|
-
transit_name: str = Field(title="Transit Name", description="The name of the Transit Name label in the chart, in the language")
|
|
138
|
-
lunar_phase: str = Field(title="Lunar Phase", description="The name of the Lunar Phase label in the chart, in the language")
|
|
139
|
-
day: str = Field(title="Day", description="The name of the Day label in the chart, in the language")
|
|
140
|
-
celestial_points: KerykeionLanguageCelestialPointModel
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
class KerykeionGeneralSettingsModel(SubscriptableBaseModel):
|
|
144
|
-
axes_orbit: int = Field(title="Axes Orbit", description="The orbit of the axes in the chart")
|
|
3
|
+
Backward compatibility module for settings_models.
|
|
145
4
|
|
|
5
|
+
DEPRECATED: This module will be removed in Kerykeion v6.0.
|
|
6
|
+
Please update your imports:
|
|
7
|
+
OLD: from kerykeion.kr_types.settings_models import ...
|
|
8
|
+
NEW: from kerykeion.schemas.settings_models import ...
|
|
9
|
+
"""
|
|
10
|
+
import warnings
|
|
146
11
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
""
|
|
150
|
-
|
|
151
|
-
|
|
12
|
+
warnings.warn(
|
|
13
|
+
"The 'kerykeion.kr_types.settings_models' module is deprecated and will be removed in v6.0. "
|
|
14
|
+
"Please update your imports to use 'kerykeion.schemas.settings_models' instead.",
|
|
15
|
+
DeprecationWarning,
|
|
16
|
+
stacklevel=2,
|
|
17
|
+
)
|
|
152
18
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
aspects: List[KerykeionSettingsAspectModel] = Field(title="Aspects", description="The list of the aspects of the chart")
|
|
156
|
-
language_settings: dict[str, KerykeionLanguageModel] = Field(title="Language Settings", description="The language settings of the chart")
|
|
157
|
-
general_settings: KerykeionGeneralSettingsModel = Field(title="General Settings", description="The general settings of the chart")
|
|
19
|
+
# Re-export everything from schemas.settings_models for backward compatibility
|
|
20
|
+
from kerykeion.schemas.settings_models import * # noqa: F401, F403
|