kerykeion 4.7.0__tar.gz → 4.8.0__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.7.0 → kerykeion-4.8.0}/PKG-INFO +2 -1
- {kerykeion-4.7.0 → kerykeion-4.8.0}/kerykeion/astrological_subject.py +5 -5
- {kerykeion-4.7.0 → kerykeion-4.8.0}/kerykeion/charts/kerykeion_chart_svg.py +17 -8
- {kerykeion-4.7.0 → kerykeion-4.8.0}/pyproject.toml +2 -1
- {kerykeion-4.7.0 → kerykeion-4.8.0}/LICENSE +0 -0
- {kerykeion-4.7.0 → kerykeion-4.8.0}/README.md +0 -0
- {kerykeion-4.7.0 → kerykeion-4.8.0}/kerykeion/__init__.py +0 -0
- {kerykeion-4.7.0 → kerykeion-4.8.0}/kerykeion/aspects/__init__.py +0 -0
- {kerykeion-4.7.0 → kerykeion-4.8.0}/kerykeion/aspects/aspects_utils.py +0 -0
- {kerykeion-4.7.0 → kerykeion-4.8.0}/kerykeion/aspects/natal_aspects.py +0 -0
- {kerykeion-4.7.0 → kerykeion-4.8.0}/kerykeion/aspects/synastry_aspects.py +0 -0
- {kerykeion-4.7.0 → kerykeion-4.8.0}/kerykeion/charts/__init__.py +0 -0
- {kerykeion-4.7.0 → kerykeion-4.8.0}/kerykeion/charts/charts_utils.py +0 -0
- {kerykeion-4.7.0 → kerykeion-4.8.0}/kerykeion/charts/templates/chart.xml +0 -0
- {kerykeion-4.7.0 → kerykeion-4.8.0}/kerykeion/enums.py +0 -0
- {kerykeion-4.7.0 → kerykeion-4.8.0}/kerykeion/fetch_geonames.py +0 -0
- {kerykeion-4.7.0 → kerykeion-4.8.0}/kerykeion/kr_types/__init__.py +0 -0
- {kerykeion-4.7.0 → kerykeion-4.8.0}/kerykeion/kr_types/chart_types.py +0 -0
- {kerykeion-4.7.0 → kerykeion-4.8.0}/kerykeion/kr_types/kerykeion_exception.py +0 -0
- {kerykeion-4.7.0 → kerykeion-4.8.0}/kerykeion/kr_types/kr_literals.py +0 -0
- {kerykeion-4.7.0 → kerykeion-4.8.0}/kerykeion/kr_types/kr_models.py +0 -0
- {kerykeion-4.7.0 → kerykeion-4.8.0}/kerykeion/kr_types/settings_models.py +0 -0
- {kerykeion-4.7.0 → kerykeion-4.8.0}/kerykeion/relationship_score.py +0 -0
- {kerykeion-4.7.0 → kerykeion-4.8.0}/kerykeion/report.py +0 -0
- {kerykeion-4.7.0 → kerykeion-4.8.0}/kerykeion/settings/__init__.py +0 -0
- {kerykeion-4.7.0 → kerykeion-4.8.0}/kerykeion/settings/kerykeion_settings.py +0 -0
- {kerykeion-4.7.0 → kerykeion-4.8.0}/kerykeion/settings/kr.config.json +0 -0
- {kerykeion-4.7.0 → kerykeion-4.8.0}/kerykeion/sweph/README.md +0 -0
- {kerykeion-4.7.0 → kerykeion-4.8.0}/kerykeion/sweph/seas_18.se1 +0 -0
- {kerykeion-4.7.0 → kerykeion-4.8.0}/kerykeion/utilities.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: kerykeion
|
|
3
|
-
Version: 4.
|
|
3
|
+
Version: 4.8.0
|
|
4
4
|
Summary: A python library for astrology.
|
|
5
5
|
Home-page: https://github.com/g-battaglia/kerykeion
|
|
6
6
|
License: AGPL-3.0
|
|
@@ -30,6 +30,7 @@ Requires-Dist: pyswisseph (>=2.10.3.1,<3.0.0.0)
|
|
|
30
30
|
Requires-Dist: pytz (>=2022.7,<2023.0)
|
|
31
31
|
Requires-Dist: requests (>=2.28.1,<3.0.0)
|
|
32
32
|
Requires-Dist: requests-cache (>=0.9.7,<0.10.0)
|
|
33
|
+
Requires-Dist: scour (>=0.38.2,<0.39.0)
|
|
33
34
|
Requires-Dist: terminaltables (>=3.1.10,<4.0.0)
|
|
34
35
|
Project-URL: Repository, https://github.com/g-battaglia/kerykeion
|
|
35
36
|
Description-Content-Type: text/markdown
|
|
@@ -170,7 +170,7 @@ class AstrologicalSubject:
|
|
|
170
170
|
|
|
171
171
|
# This message is set to encourage the user to set a custom geonames username
|
|
172
172
|
if geonames_username is None and online:
|
|
173
|
-
logging.
|
|
173
|
+
logging.warning(
|
|
174
174
|
"\n"
|
|
175
175
|
"********" +
|
|
176
176
|
"\n" +
|
|
@@ -191,19 +191,19 @@ class AstrologicalSubject:
|
|
|
191
191
|
|
|
192
192
|
if not self.city:
|
|
193
193
|
self.city = "London"
|
|
194
|
-
logging.
|
|
194
|
+
logging.info("No city specified, using London as default")
|
|
195
195
|
|
|
196
196
|
if not self.nation:
|
|
197
197
|
self.nation = "GB"
|
|
198
|
-
logging.
|
|
198
|
+
logging.info("No nation specified, using GB as default")
|
|
199
199
|
|
|
200
200
|
if not self.lat:
|
|
201
201
|
self.lat = 51.5074
|
|
202
|
-
logging.
|
|
202
|
+
logging.info("No latitude specified, using London as default")
|
|
203
203
|
|
|
204
204
|
if not self.lng:
|
|
205
205
|
self.lng = 0
|
|
206
|
-
logging.
|
|
206
|
+
logging.info("No longitude specified, using London as default")
|
|
207
207
|
|
|
208
208
|
if (not self.online) and (not tz_str):
|
|
209
209
|
raise KerykeionException(
|
|
@@ -28,10 +28,12 @@ from kerykeion.charts.charts_utils import (
|
|
|
28
28
|
draw_transit_ring
|
|
29
29
|
)
|
|
30
30
|
from pathlib import Path
|
|
31
|
+
from scour.scour import scourString
|
|
31
32
|
from string import Template
|
|
32
33
|
from typing import Union, List
|
|
33
34
|
|
|
34
35
|
|
|
36
|
+
|
|
35
37
|
class KerykeionChartSVG:
|
|
36
38
|
"""
|
|
37
39
|
Creates the instance that can generate the chart with the
|
|
@@ -250,8 +252,7 @@ class KerykeionChartSVG:
|
|
|
250
252
|
{"name": "pisces", "element": "water"},
|
|
251
253
|
)
|
|
252
254
|
|
|
253
|
-
|
|
254
|
-
self.template = self.makeTemplate()
|
|
255
|
+
self.template = None
|
|
255
256
|
|
|
256
257
|
def set_output_directory(self, dir_path: Path) -> None:
|
|
257
258
|
"""
|
|
@@ -1379,7 +1380,7 @@ class KerykeionChartSVG:
|
|
|
1379
1380
|
|
|
1380
1381
|
return td
|
|
1381
1382
|
|
|
1382
|
-
def makeTemplate(self):
|
|
1383
|
+
def makeTemplate(self, minify: bool = False) -> str:
|
|
1383
1384
|
"""Creates the template for the SVG file"""
|
|
1384
1385
|
td = self._createTemplateDictionary()
|
|
1385
1386
|
|
|
@@ -1392,13 +1393,20 @@ class KerykeionChartSVG:
|
|
|
1392
1393
|
logging.debug(f"Template dictionary keys: {td.keys()}")
|
|
1393
1394
|
|
|
1394
1395
|
self._createTemplateDictionary()
|
|
1395
|
-
return template.replace('"', "'")
|
|
1396
1396
|
|
|
1397
|
-
|
|
1397
|
+
if minify:
|
|
1398
|
+
template = scourString(template).replace('"', "'").replace("\n", "").replace("\t","").replace(" ", "").replace(" ", "")
|
|
1399
|
+
|
|
1400
|
+
else:
|
|
1401
|
+
template = template.replace('"', "'")
|
|
1402
|
+
|
|
1403
|
+
return template
|
|
1404
|
+
|
|
1405
|
+
def makeSVG(self, minify: bool = False):
|
|
1398
1406
|
"""Prints out the SVG file in the specifide folder"""
|
|
1399
1407
|
|
|
1400
1408
|
if not (self.template):
|
|
1401
|
-
self.template = self.makeTemplate()
|
|
1409
|
+
self.template = self.makeTemplate(minify)
|
|
1402
1410
|
|
|
1403
1411
|
self.chartname = self.output_directory / f"{self.user.name}{self.chart_type}Chart.svg"
|
|
1404
1412
|
|
|
@@ -1425,8 +1433,9 @@ if __name__ == "__main__":
|
|
|
1425
1433
|
|
|
1426
1434
|
# Synastry Chart
|
|
1427
1435
|
synastry_chart = KerykeionChartSVG(first, "Synastry", second)
|
|
1428
|
-
synastry_chart.makeSVG()
|
|
1436
|
+
synastry_chart.makeSVG(minify=True)
|
|
1429
1437
|
|
|
1430
1438
|
# Transits Chart
|
|
1431
1439
|
transits_chart = KerykeionChartSVG(first, "Transit", second)
|
|
1432
|
-
transits_chart.makeSVG()
|
|
1440
|
+
transits_chart.makeSVG(minify=True)
|
|
1441
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "kerykeion"
|
|
3
|
-
version = "4.
|
|
3
|
+
version = "4.8.0"
|
|
4
4
|
authors = ["Giacomo Battaglia <battaglia.giacomo@yahoo.it>"]
|
|
5
5
|
description = "A python library for astrology."
|
|
6
6
|
license = "AGPL-3.0"
|
|
@@ -48,6 +48,7 @@ requests = "^2.28.1"
|
|
|
48
48
|
requests-cache = "^0.9.7"
|
|
49
49
|
pydantic = "^2.5"
|
|
50
50
|
terminaltables = "^3.1.10"
|
|
51
|
+
scour = "^0.38.2"
|
|
51
52
|
|
|
52
53
|
[tool.poetry.scripts]
|
|
53
54
|
create-docs = "scripts.docs:main"
|
|
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
|