kerykeion 4.12.0__tar.gz → 4.12.1__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.
- {kerykeion-4.12.0 → kerykeion-4.12.1}/PKG-INFO +1 -1
- {kerykeion-4.12.0 → kerykeion-4.12.1}/kerykeion/astrological_subject.py +44 -1
- {kerykeion-4.12.0 → kerykeion-4.12.1}/kerykeion/kr_types/kr_models.py +4 -0
- {kerykeion-4.12.0 → kerykeion-4.12.1}/pyproject.toml +1 -1
- {kerykeion-4.12.0 → kerykeion-4.12.1}/LICENSE +0 -0
- {kerykeion-4.12.0 → kerykeion-4.12.1}/README.md +0 -0
- {kerykeion-4.12.0 → kerykeion-4.12.1}/kerykeion/__init__.py +0 -0
- {kerykeion-4.12.0 → kerykeion-4.12.1}/kerykeion/aspects/__init__.py +0 -0
- {kerykeion-4.12.0 → kerykeion-4.12.1}/kerykeion/aspects/aspects_utils.py +0 -0
- {kerykeion-4.12.0 → kerykeion-4.12.1}/kerykeion/aspects/natal_aspects.py +0 -0
- {kerykeion-4.12.0 → kerykeion-4.12.1}/kerykeion/aspects/synastry_aspects.py +0 -0
- {kerykeion-4.12.0 → kerykeion-4.12.1}/kerykeion/charts/__init__.py +0 -0
- {kerykeion-4.12.0 → kerykeion-4.12.1}/kerykeion/charts/charts_utils.py +0 -0
- {kerykeion-4.12.0 → kerykeion-4.12.1}/kerykeion/charts/kerykeion_chart_svg.py +0 -0
- {kerykeion-4.12.0 → kerykeion-4.12.1}/kerykeion/charts/templates/chart.xml +0 -0
- {kerykeion-4.12.0 → kerykeion-4.12.1}/kerykeion/enums.py +0 -0
- {kerykeion-4.12.0 → kerykeion-4.12.1}/kerykeion/fetch_geonames.py +0 -0
- {kerykeion-4.12.0 → kerykeion-4.12.1}/kerykeion/kr_types/__init__.py +0 -0
- {kerykeion-4.12.0 → kerykeion-4.12.1}/kerykeion/kr_types/chart_types.py +0 -0
- {kerykeion-4.12.0 → kerykeion-4.12.1}/kerykeion/kr_types/kerykeion_exception.py +0 -0
- {kerykeion-4.12.0 → kerykeion-4.12.1}/kerykeion/kr_types/kr_literals.py +0 -0
- {kerykeion-4.12.0 → kerykeion-4.12.1}/kerykeion/kr_types/settings_models.py +0 -0
- {kerykeion-4.12.0 → kerykeion-4.12.1}/kerykeion/relationship_score.py +0 -0
- {kerykeion-4.12.0 → kerykeion-4.12.1}/kerykeion/report.py +0 -0
- {kerykeion-4.12.0 → kerykeion-4.12.1}/kerykeion/settings/__init__.py +0 -0
- {kerykeion-4.12.0 → kerykeion-4.12.1}/kerykeion/settings/kerykeion_settings.py +0 -0
- {kerykeion-4.12.0 → kerykeion-4.12.1}/kerykeion/settings/kr.config.json +0 -0
- {kerykeion-4.12.0 → kerykeion-4.12.1}/kerykeion/sweph/README.md +0 -0
- {kerykeion-4.12.0 → kerykeion-4.12.1}/kerykeion/sweph/seas_18.se1 +0 -0
- {kerykeion-4.12.0 → kerykeion-4.12.1}/kerykeion/utilities.py +0 -0
|
@@ -8,6 +8,7 @@ import swisseph as swe
|
|
|
8
8
|
import logging
|
|
9
9
|
|
|
10
10
|
from datetime import datetime
|
|
11
|
+
from functools import cached_property
|
|
11
12
|
from kerykeion.fetch_geonames import FetchGeonames
|
|
12
13
|
from kerykeion.kr_types import (
|
|
13
14
|
KerykeionException,
|
|
@@ -310,6 +311,10 @@ class AstrologicalSubject:
|
|
|
310
311
|
self._planets_in_houses()
|
|
311
312
|
self._lunar_phase_calc()
|
|
312
313
|
|
|
314
|
+
# Deprecated properties
|
|
315
|
+
self.utc_time
|
|
316
|
+
self.local_time
|
|
317
|
+
|
|
313
318
|
def __str__(self) -> str:
|
|
314
319
|
return f"Astrological data for: {self.name}, {self.iso_formatted_utc_datetime} UTC\nBirth location: {self.city}, Lat {self.lat}, Lon {self.lng}"
|
|
315
320
|
|
|
@@ -646,6 +651,41 @@ class AstrologicalSubject:
|
|
|
646
651
|
|
|
647
652
|
return AstrologicalSubjectModel(**self.__dict__)
|
|
648
653
|
|
|
654
|
+
@cached_property
|
|
655
|
+
def utc_time(self) -> float:
|
|
656
|
+
"""
|
|
657
|
+
Deprecated property, use iso_formatted_utc_datetime instead, will be removed in the future.
|
|
658
|
+
Returns the UTC time as a float.
|
|
659
|
+
"""
|
|
660
|
+
dt = datetime.fromisoformat(self.iso_formatted_utc_datetime)
|
|
661
|
+
|
|
662
|
+
# Extract the hours, minutes, and seconds
|
|
663
|
+
hours = dt.hour
|
|
664
|
+
minutes = dt.minute
|
|
665
|
+
seconds = dt.second + dt.microsecond / 1_000_000
|
|
666
|
+
|
|
667
|
+
# Convert time to float hours
|
|
668
|
+
float_time = hours + minutes / 60 + seconds / 3600
|
|
669
|
+
|
|
670
|
+
return float_time
|
|
671
|
+
|
|
672
|
+
@cached_property
|
|
673
|
+
def local_time(self) -> float:
|
|
674
|
+
"""
|
|
675
|
+
Deprecated property, use iso_formatted_local_datetime instead, will be removed in the future.
|
|
676
|
+
Returns the local time as a float.
|
|
677
|
+
"""
|
|
678
|
+
dt = datetime.fromisoformat(self.iso_formatted_local_datetime)
|
|
679
|
+
|
|
680
|
+
# Extract the hours, minutes, and seconds
|
|
681
|
+
hours = dt.hour
|
|
682
|
+
minutes = dt.minute
|
|
683
|
+
seconds = dt.second + dt.microsecond / 1_000_000
|
|
684
|
+
|
|
685
|
+
# Convert time to float hours
|
|
686
|
+
float_time = hours + minutes / 60 + seconds / 3600
|
|
687
|
+
|
|
688
|
+
return float_time
|
|
649
689
|
|
|
650
690
|
if __name__ == "__main__":
|
|
651
691
|
import json
|
|
@@ -685,4 +725,7 @@ if __name__ == "__main__":
|
|
|
685
725
|
|
|
686
726
|
# With Topocentric Perspective
|
|
687
727
|
johnny = AstrologicalSubject("Johnny Depp", 1963, 6, 9, 0, 0, "Owensboro", "US", perspective_type="Topocentric")
|
|
688
|
-
|
|
728
|
+
|
|
729
|
+
# Print the utc time
|
|
730
|
+
print(johnny.utc_time)
|
|
731
|
+
print(johnny.local_time)
|
|
@@ -109,6 +109,10 @@ class AstrologicalSubjectModel(SubscriptableBaseModel):
|
|
|
109
109
|
# Lunar Phase
|
|
110
110
|
lunar_phase: LunarPhaseModel
|
|
111
111
|
|
|
112
|
+
# Deprecated properties
|
|
113
|
+
utc_time: float
|
|
114
|
+
local_time: float
|
|
115
|
+
|
|
112
116
|
# Lists
|
|
113
117
|
# houses_list: list[KerykeionPointModel]
|
|
114
118
|
# planets_list: list[KerykeionPointModel]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|