kerykeion 4.4.1__py3-none-any.whl → 4.4.2__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/astrological_subject.py +16 -8
- {kerykeion-4.4.1.dist-info → kerykeion-4.4.2.dist-info}/METADATA +1 -1
- {kerykeion-4.4.1.dist-info → kerykeion-4.4.2.dist-info}/RECORD +6 -6
- {kerykeion-4.4.1.dist-info → kerykeion-4.4.2.dist-info}/LICENSE +0 -0
- {kerykeion-4.4.1.dist-info → kerykeion-4.4.2.dist-info}/WHEEL +0 -0
- {kerykeion-4.4.1.dist-info → kerykeion-4.4.2.dist-info}/entry_points.txt +0 -0
|
@@ -123,11 +123,11 @@ class AstrologicalSubject:
|
|
|
123
123
|
day: int = now.day,
|
|
124
124
|
hour: int = now.hour,
|
|
125
125
|
minute: int = now.minute,
|
|
126
|
-
city: str =
|
|
127
|
-
nation: str =
|
|
128
|
-
lng: Union[int, float] =
|
|
129
|
-
lat: Union[int, float] =
|
|
130
|
-
tz_str: str =
|
|
126
|
+
city: Union[str, None] = None,
|
|
127
|
+
nation: Union[str, None] = None,
|
|
128
|
+
lng: Union[int, float, None] = None,
|
|
129
|
+
lat: Union[int, float, None] = None,
|
|
130
|
+
tz_str: Union[str, None] = None,
|
|
131
131
|
geonames_username: Union[str, None] = None,
|
|
132
132
|
zodiac_type: ZodiacType = "Tropic",
|
|
133
133
|
online: bool = True,
|
|
@@ -188,7 +188,15 @@ class AstrologicalSubject:
|
|
|
188
188
|
self.nation = "GB"
|
|
189
189
|
logging.warning("No nation specified, using GB as default")
|
|
190
190
|
|
|
191
|
-
if
|
|
191
|
+
if not self.lat:
|
|
192
|
+
self.lat = 51.5074
|
|
193
|
+
logging.warning("No latitude specified, using London as default")
|
|
194
|
+
|
|
195
|
+
if not self.lng:
|
|
196
|
+
self.lng = 0
|
|
197
|
+
logging.warning("No longitude specified, using London as default")
|
|
198
|
+
|
|
199
|
+
if (not self.online) and (not tz_str):
|
|
192
200
|
raise KerykeionException(
|
|
193
201
|
"You need to set the coordinates and timezone if you want to use the offline mode!"
|
|
194
202
|
)
|
|
@@ -219,7 +227,7 @@ class AstrologicalSubject:
|
|
|
219
227
|
|
|
220
228
|
def _fetch_tz_from_geonames(self) -> None:
|
|
221
229
|
"""Gets the nearest time zone for the calculation"""
|
|
222
|
-
logging.
|
|
230
|
+
logging.info("Fetching timezone/coordinates from geonames")
|
|
223
231
|
|
|
224
232
|
geonames = FetchGeonames(
|
|
225
233
|
self.city,
|
|
@@ -247,7 +255,7 @@ class AstrologicalSubject:
|
|
|
247
255
|
"""Converts local time to utc time."""
|
|
248
256
|
|
|
249
257
|
# If the coordinates are not set, get them from geonames.
|
|
250
|
-
if (self.online) and (not self.tz_str
|
|
258
|
+
if (self.online) and (not self.tz_str):
|
|
251
259
|
self._fetch_tz_from_geonames()
|
|
252
260
|
|
|
253
261
|
# If UTC datetime is provided, then use it directly
|
|
@@ -4,7 +4,7 @@ kerykeion/aspects/__init__.py,sha256=8uOTYtcMwyDBbDjIoz8wvWtdcgdU-86yQeM3EVLwnIA
|
|
|
4
4
|
kerykeion/aspects/aspects_utils.py,sha256=10ozUZ4ZhMJ8e_wOZ02hoW9mHJm_d7bq4QXKG90CeNc,5832
|
|
5
5
|
kerykeion/aspects/natal_aspects.py,sha256=k3L6wLec7l7BF1jKULN8rNlQNOhINnfPN6x8MixoMMo,4507
|
|
6
6
|
kerykeion/aspects/synastry_aspects.py,sha256=rM_of6GU-ZQL1A6JaLsG59MTaAeWx29MWRf9te9hHeg,3993
|
|
7
|
-
kerykeion/astrological_subject.py,sha256=
|
|
7
|
+
kerykeion/astrological_subject.py,sha256=wvr8cOhF2vsxy7qgGgEUQdrHvejOqwjppR7LV67Xrn4,24706
|
|
8
8
|
kerykeion/charts/__init__.py,sha256=3WzR2n9dr6MDzjTbEQOYpXSFlhfMfga5YWNsPawdbRw,127
|
|
9
9
|
kerykeion/charts/charts_utils.py,sha256=qQMXu5XZCCjvyqL62fzh4JnKLzd_G6u9pcMk6f1DpIc,3197
|
|
10
10
|
kerykeion/charts/kerykeion_chart_svg.py,sha256=-5kclHKKL8kya2lFFnw5pZiygck82lAFBSI-eyse8lk,65295
|
|
@@ -24,8 +24,8 @@ kerykeion/settings/kr.config.json,sha256=1Yhv9RGHom5U9e-JZZRWVfT2Ubllz2WrckdwadD
|
|
|
24
24
|
kerykeion/sweph/README.md,sha256=L7FtNAJTWtrZNGKa8MX87SjduFYPYxwWhaI5fmtzNZo,73
|
|
25
25
|
kerykeion/sweph/seas_18.se1,sha256=X9nCqhZU43wJpq61WAdueVQJt9xL2UjrwPqn1Kdoa1s,223002
|
|
26
26
|
kerykeion/utilities.py,sha256=8cLY36PrjPjF4trGMIiHrFeH82mxUXYG6DlyfkNY8oM,6280
|
|
27
|
-
kerykeion-4.4.
|
|
28
|
-
kerykeion-4.4.
|
|
29
|
-
kerykeion-4.4.
|
|
30
|
-
kerykeion-4.4.
|
|
31
|
-
kerykeion-4.4.
|
|
27
|
+
kerykeion-4.4.2.dist-info/LICENSE,sha256=UTLH8EdbAsgQei4PA2PnBCPGLSZkq5J-dhkyJuXgWQU,34273
|
|
28
|
+
kerykeion-4.4.2.dist-info/METADATA,sha256=Upw2ZXvgeqAnaR9kDjDHmIo1cjHdrZysCPTl1Us_6zM,10260
|
|
29
|
+
kerykeion-4.4.2.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
30
|
+
kerykeion-4.4.2.dist-info/entry_points.txt,sha256=5SmANYscFDDTdeovHvGQ-cnj0hdFvGoxPaWLCpyDFnQ,49
|
|
31
|
+
kerykeion-4.4.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|