kerykeion 4.2.4__py3-none-any.whl → 4.3.0__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.
- LICENSE +661 -0
- kerykeion/astrological_subject.py +1 -1
- kerykeion/charts/kerykeion_chart_svg.py +3 -3
- kerykeion/kr_types/__init__.py +2 -2
- kerykeion/kr_types/chart_types.py +19 -28
- kerykeion/kr_types/kr_models.py +2 -2
- kerykeion-4.3.0.dist-info/LICENSE +661 -0
- {kerykeion-4.2.4.dist-info → kerykeion-4.3.0.dist-info}/METADATA +2 -2
- {kerykeion-4.2.4.dist-info → kerykeion-4.3.0.dist-info}/RECORD +11 -9
- {kerykeion-4.2.4.dist-info → kerykeion-4.3.0.dist-info}/WHEEL +1 -1
- {kerykeion-4.2.4.dist-info → kerykeion-4.3.0.dist-info}/entry_points.txt +0 -0
|
@@ -13,7 +13,7 @@ from kerykeion.aspects.synastry_aspects import SynastryAspects
|
|
|
13
13
|
from kerykeion.aspects.natal_aspects import NatalAspects
|
|
14
14
|
from kerykeion.astrological_subject import AstrologicalSubject
|
|
15
15
|
from kerykeion.kr_types import KerykeionException, ChartType
|
|
16
|
-
from kerykeion.kr_types import
|
|
16
|
+
from kerykeion.kr_types import ChartTemplateDictionary
|
|
17
17
|
from kerykeion.charts.charts_utils import decHourJoin, degreeDiff, offsetToTz, sliceToX, sliceToY
|
|
18
18
|
from pathlib import Path
|
|
19
19
|
from string import Template
|
|
@@ -1245,7 +1245,7 @@ class KerykeionChartSVG:
|
|
|
1245
1245
|
|
|
1246
1246
|
return out
|
|
1247
1247
|
|
|
1248
|
-
def _createTemplateDictionary(self):
|
|
1248
|
+
def _createTemplateDictionary(self) -> ChartTemplateDictionary:
|
|
1249
1249
|
# self.chart_type = "Transit"
|
|
1250
1250
|
# empty element points
|
|
1251
1251
|
self.fire = 0.0
|
|
@@ -1273,7 +1273,7 @@ class KerykeionChartSVG:
|
|
|
1273
1273
|
viewbox = self.chart_settings["wide_chart_viewBox"]
|
|
1274
1274
|
|
|
1275
1275
|
# template dictionary
|
|
1276
|
-
td:
|
|
1276
|
+
td: ChartTemplateDictionary = dict() # type: ignore
|
|
1277
1277
|
r = 240
|
|
1278
1278
|
|
|
1279
1279
|
if self.chart_type == "ExternalNatal":
|
kerykeion/kr_types/__init__.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from .kerykeion_exception import KerykeionException
|
|
2
2
|
from .kr_literals import *
|
|
3
3
|
from .kr_models import *
|
|
4
|
-
from .chart_types import
|
|
5
|
-
from .settings_models import KerykeionSettingsModel
|
|
4
|
+
from .chart_types import ChartTemplateDictionary
|
|
5
|
+
from .settings_models import KerykeionSettingsModel
|
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
from typing import
|
|
2
|
-
from pydantic import BaseModel
|
|
1
|
+
from typing import TypedDict
|
|
3
2
|
|
|
4
3
|
|
|
5
|
-
class
|
|
6
|
-
"""Pydantic model for the chart template."""
|
|
7
|
-
|
|
8
|
-
def __setitem__(self, key, value):
|
|
9
|
-
setattr(self, key, value)
|
|
10
|
-
|
|
11
|
-
def __getitem__(self, key):
|
|
12
|
-
return getattr(self, key)
|
|
13
|
-
|
|
4
|
+
class ChartTemplateDictionary(TypedDict):
|
|
14
5
|
transitRing: str
|
|
15
6
|
degreeRing: str
|
|
16
7
|
c1: str
|
|
@@ -19,14 +10,14 @@ class ChartTemplateModel(BaseModel):
|
|
|
19
10
|
c2style: str
|
|
20
11
|
c3: str
|
|
21
12
|
c3style: str
|
|
22
|
-
makeAspects:
|
|
23
|
-
makeAspectGrid:
|
|
24
|
-
makePatterns:
|
|
25
|
-
chart_width:
|
|
26
|
-
circleX:
|
|
27
|
-
circleY:
|
|
28
|
-
svgWidth:
|
|
29
|
-
svgHeight:
|
|
13
|
+
makeAspects: str
|
|
14
|
+
makeAspectGrid: str
|
|
15
|
+
makePatterns: str
|
|
16
|
+
chart_width: float
|
|
17
|
+
circleX: str
|
|
18
|
+
circleY: str
|
|
19
|
+
svgWidth: str
|
|
20
|
+
svgHeight: str
|
|
30
21
|
viewbox: str
|
|
31
22
|
stringTitle: str
|
|
32
23
|
stringName: str
|
|
@@ -39,7 +30,7 @@ class ChartTemplateModel(BaseModel):
|
|
|
39
30
|
lunar_phase_cx: int
|
|
40
31
|
lunar_phase_r: int
|
|
41
32
|
lunar_phase_outline: str
|
|
42
|
-
lunar_phase_rotate:
|
|
33
|
+
lunar_phase_rotate: float
|
|
43
34
|
stringLocation: str
|
|
44
35
|
stringDateTime: str
|
|
45
36
|
stringLat: str
|
|
@@ -86,12 +77,12 @@ class ChartTemplateModel(BaseModel):
|
|
|
86
77
|
orb_color_144: str
|
|
87
78
|
orb_color_150: str
|
|
88
79
|
orb_color_180: str
|
|
89
|
-
cfgZoom:
|
|
90
|
-
cfgRotate:
|
|
80
|
+
cfgZoom: str
|
|
81
|
+
cfgRotate: str
|
|
91
82
|
cfgTranslate: str
|
|
92
|
-
makeZodiac:
|
|
93
|
-
makeHouses:
|
|
94
|
-
makePlanets:
|
|
95
|
-
makeElements:
|
|
96
|
-
makePlanetGrid:
|
|
97
|
-
makeHousesGrid:
|
|
83
|
+
makeZodiac: str
|
|
84
|
+
makeHouses: str
|
|
85
|
+
makePlanets: str
|
|
86
|
+
makeElements: str
|
|
87
|
+
makePlanetGrid: str
|
|
88
|
+
makeHousesGrid: str
|
kerykeion/kr_types/kr_models.py
CHANGED
|
@@ -11,7 +11,7 @@ from .kr_literals import *
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
class LunarPhaseModel(BaseModel):
|
|
14
|
-
degrees_between_s_m: Union[
|
|
14
|
+
degrees_between_s_m: Union[float, int]
|
|
15
15
|
moon_phase: int
|
|
16
16
|
sun_phase: int
|
|
17
17
|
moon_emoji: LunarPhaseEmoji
|
|
@@ -31,7 +31,7 @@ class LunarPhaseModel(BaseModel):
|
|
|
31
31
|
def __repr__(self):
|
|
32
32
|
return (
|
|
33
33
|
super()
|
|
34
|
-
.
|
|
34
|
+
.model_dump(
|
|
35
35
|
exclude_none=True,
|
|
36
36
|
exclude_unset=True,
|
|
37
37
|
exclude_defaults=True,
|