kerykeion 4.4.0__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/charts/kerykeion_chart_svg.py +1 -2
- {kerykeion-4.4.0.dist-info → kerykeion-4.4.2.dist-info}/METADATA +13 -1
- {kerykeion-4.4.0.dist-info → kerykeion-4.4.2.dist-info}/RECORD +7 -7
- {kerykeion-4.4.0.dist-info → kerykeion-4.4.2.dist-info}/LICENSE +0 -0
- {kerykeion-4.4.0.dist-info → kerykeion-4.4.2.dist-info}/WHEEL +0 -0
- {kerykeion-4.4.0.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
|
|
@@ -1461,8 +1461,7 @@ class KerykeionChartSVG:
|
|
|
1461
1461
|
td = self._createTemplateDictionary()
|
|
1462
1462
|
|
|
1463
1463
|
# read template
|
|
1464
|
-
with open(self.xml_svg, "r", encoding="utf-8", errors="ignore") as
|
|
1465
|
-
f = open(self.xml_svg)
|
|
1464
|
+
with open(self.xml_svg, "r", encoding="utf-8", errors="ignore") as f:
|
|
1466
1465
|
template = Template(f.read()).substitute(td)
|
|
1467
1466
|
|
|
1468
1467
|
# return filename
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: kerykeion
|
|
3
|
-
Version: 4.4.
|
|
3
|
+
Version: 4.4.2
|
|
4
4
|
Summary: A python library for astrology.
|
|
5
5
|
Home-page: https://github.com/g-battaglia/kerykeion
|
|
6
6
|
License: AGPL-3.0
|
|
@@ -63,7 +63,10 @@ also it can calculate the aspects of a single persone or between two, you can se
|
|
|
63
63
|
need in the settings in the utility module.
|
|
64
64
|
It also can generate an SVG of a birthchart, a synastry chart or a transit chart.
|
|
65
65
|
|
|
66
|
+
The core goal of this project is to provide a simple and easy approach to astrology in a data driven way.
|
|
67
|
+
|
|
66
68
|
Here's an example of a birthchart:
|
|
69
|
+
|
|
67
70
|

|
|
68
71
|
|
|
69
72
|
## Web API
|
|
@@ -254,3 +257,12 @@ You can clone this repository or download a zip file using the right side button
|
|
|
254
257
|
|
|
255
258
|
Feel free to contribute to the code!
|
|
256
259
|
|
|
260
|
+
## License
|
|
261
|
+
|
|
262
|
+
This project is licensed under the AGPL-3.0 License.
|
|
263
|
+
To understand how this impacts your use of the software, please see the [LICENSE](LICENSE) file for details.
|
|
264
|
+
If you have questions, you can reach out to me at my [email](mailto:battaglia.giacomo@yahoo.it?subject=Kerykeion) address.
|
|
265
|
+
As a rule of thumb, if you are using this library in a project, you should open source the code of the project with a compatible license.
|
|
266
|
+
|
|
267
|
+
You can implement the logic of kerkeion in your project and also keep it closed source by using a third party API, like the [AstrologerAPI](https://rapidapi.com/gbattaglia/api/astrologer/). The AstrologerAPI is AGPL-3.0 compliant. Subscribing to the API is also, currently, the best way to support the project.
|
|
268
|
+
|
|
@@ -4,10 +4,10 @@ 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
|
-
kerykeion/charts/kerykeion_chart_svg.py,sha256
|
|
10
|
+
kerykeion/charts/kerykeion_chart_svg.py,sha256=-5kclHKKL8kya2lFFnw5pZiygck82lAFBSI-eyse8lk,65295
|
|
11
11
|
kerykeion/charts/templates/chart.xml,sha256=ZrkqJV3Du8vG1w8kVkM1wI-IiZNVDLDuS6dRtPz7wVo,69874
|
|
12
12
|
kerykeion/fetch_geonames.py,sha256=NwiRzl-OlA2yoEtgHEvdgWeed42cpcONmOhb9s-DAOY,4444
|
|
13
13
|
kerykeion/kr_types/__init__.py,sha256=-vRe-jixD6n8d7vsLSwbbvU4c2RXOoVvv0pjbX-9eiY,205
|
|
@@ -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
|