kerykeion 4.6.1__py3-none-any.whl → 4.6.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.

@@ -1200,48 +1200,41 @@ class KerykeionChartSVG:
1200
1200
  out += end_of_line
1201
1201
  return out
1202
1202
 
1203
- def _makeHousesGrid(self):
1204
- """
1205
- Generate SVG code for a grid of astrological houses.
1206
-
1207
- Returns:
1208
- str: The SVG code for the grid of houses.
1209
- """
1210
- # Initialize the SVG group for the grid
1211
- grid_svg = '<g transform="translate(600,-20)">'
1212
-
1213
- # Vertical position of the current house in the grid
1214
- vertical_position = 10
1203
+ def _draw_house_grid(self):
1204
+ out = '<g transform="translate(600,-20)">'
1215
1205
 
1216
- # Generate SVG code for each house
1206
+ li = 10
1217
1207
  for i in range(12):
1218
- # Add leading spaces to single-digit house numbers for alignment
1219
- house_number = str(i + 1).rjust(2, ' ')
1220
-
1221
- # Start a new SVG group for the current house
1222
- grid_svg += f'<g transform="translate(0,{vertical_position})">'
1223
-
1224
- # Add the house label
1225
- grid_svg += f'<text text-anchor="end" x="40" style="fill:{self.chart_colors_settings["paper_0"]}; font-size: 10px;">{self.language_settings["cusp"]} {house_number}:</text>'
1226
-
1227
- # Add the zodiac sign symbol for the house
1228
- zodiac_sign = self.zodiac[self.houses_sign_graph[i]]["name"]
1229
- grid_svg += f'<g transform="translate(40,-8)"><use transform="scale(0.3)" xlink:href="#{zodiac_sign}" /></g>'
1230
-
1231
- # Add the position of the house
1232
- house_position = self._dec2deg(self.user.houses_list[i]["position"])
1233
- grid_svg += f'<text x="53" style="fill:{self.chart_colors_settings["paper_0"]}; font-size: 10px;"> {house_position}</text>'
1234
-
1235
- # End the SVG group for the current house
1236
- grid_svg += "</g>"
1208
+ if i < 9:
1209
+ cusp = "&#160;&#160;" + str(i + 1)
1210
+ else:
1211
+ cusp = str(i + 1)
1212
+ out += f'<g transform="translate(0,{li})">'
1213
+ out += f'<text text-anchor="end" x="40" style="fill:{self.chart_colors_settings["paper_0"]}; font-size: 10px;">{self.language_settings["cusp"]} {cusp}:</text>'
1214
+ out += f'<g transform="translate(40,-8)"><use transform="scale(0.3)" xlink:href="#{self.zodiac[self.houses_sign_graph[i]]["name"]}" /></g>'
1215
+ out += f'<text x="53" style="fill:{self.chart_colors_settings["paper_0"]}; font-size: 10px;"> {self._dec2deg(self.user.houses_list[i]["position"])}</text>'
1216
+ out += "</g>"
1217
+ li = li + 14
1237
1218
 
1238
- # Move down for the next house
1239
- vertical_position += 14
1219
+ out += "</g>"
1240
1220
 
1241
- # End the SVG group for the grid
1242
- grid_svg += "</g>"
1221
+ if self.chart_type == "Synastry":
1222
+ out += '<g transform="translate(840, -20)">'
1223
+ li = 10
1224
+ for i in range(12):
1225
+ if i < 9:
1226
+ cusp = "&#160;&#160;" + str(i + 1)
1227
+ else:
1228
+ cusp = str(i + 1)
1229
+ out += '<g transform="translate(0,' + str(li) + ')">'
1230
+ out += f'<text text-anchor="end" x="40" style="fill:{self.chart_colors_settings["paper_0"]}; font-size: 10px;">{self.language_settings["cusp"]} {cusp}:</text>'
1231
+ out += f'<g transform="translate(40,-8)"><use transform="scale(0.3)" xlink:href="#{self.zodiac[self.t_houses_sign_graph[i]]["name"]}" /></g>'
1232
+ out += f'<text x="53" style="fill:{self.chart_colors_settings["paper_0"]}; font-size: 10px;"> {self._dec2deg(self.t_user.houses_list[i]["position"])}</text>'
1233
+ out += "</g>"
1234
+ li = li + 14
1235
+ out += "</g>"
1243
1236
 
1244
- return grid_svg
1237
+ return out
1245
1238
 
1246
1239
  def _createTemplateDictionary(self) -> ChartTemplateDictionary:
1247
1240
  # self.chart_type = "Transit"
@@ -1448,14 +1441,13 @@ class KerykeionChartSVG:
1448
1441
  # Drawing Functions
1449
1442
  #---
1450
1443
 
1451
- # Drawing the Zodiac slices
1452
1444
  td["makeZodiac"] = self._draw_zodiac_circle_slices(r)
1445
+ td["makeHousesGrid"] = self._draw_house_grid()
1453
1446
  # TODO: Add the rest of the functions
1454
1447
  td["makeHouses"] = self._makeHouses(r)
1455
1448
  td["makePlanets"] = self._make_planets(r)
1456
1449
  td["makeElements"] = self._makeElements(r)
1457
1450
  td["makePlanetGrid"] = self._makePlanetGrid()
1458
- td["makeHousesGrid"] = self._makeHousesGrid()
1459
1451
 
1460
1452
  return td
1461
1453
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: kerykeion
3
- Version: 4.6.1
3
+ Version: 4.6.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
@@ -7,7 +7,7 @@ kerykeion/aspects/synastry_aspects.py,sha256=uwg7Lc7wKnpxW9ydOdBHqx9cvO_t0ydGfIG
7
7
  kerykeion/astrological_subject.py,sha256=9vLsYZYfAfkR5EJO_EkbkhXa4i788Yv1lCESaQrt5kU,22965
8
8
  kerykeion/charts/__init__.py,sha256=Juxkduy2TaagWblh_7CE8Acrg3dHL27-WEddJhau_eQ,127
9
9
  kerykeion/charts/charts_utils.py,sha256=jJLgoBcs9e6-ArNFsj_N7Wel0zCzMKEsGrlz_A7MECE,5167
10
- kerykeion/charts/kerykeion_chart_svg.py,sha256=mx6VOcSCbPJlxNI0rFk-PQAwMvNEM5wbHMpClWV9EcA,64662
10
+ kerykeion/charts/kerykeion_chart_svg.py,sha256=6y0VHsfBEjefSrJErcKB3UH1xFOuWoEps4Y_1-IynVo,64764
11
11
  kerykeion/charts/templates/chart.xml,sha256=ZrkqJV3Du8vG1w8kVkM1wI-IiZNVDLDuS6dRtPz7wVo,69874
12
12
  kerykeion/enums.py,sha256=Ben9GLYkPucpYY2ZDpURzUbNCc9jzK2MuaffkgiXFdQ,965
13
13
  kerykeion/fetch_geonames.py,sha256=fWuhgP_hZTPzDuodu7hvSznzGCWj3IC3vHAX32zPRw8,4444
@@ -25,8 +25,8 @@ kerykeion/settings/kr.config.json,sha256=1Yhv9RGHom5U9e-JZZRWVfT2Ubllz2WrckdwadD
25
25
  kerykeion/sweph/README.md,sha256=L7FtNAJTWtrZNGKa8MX87SjduFYPYxwWhaI5fmtzNZo,73
26
26
  kerykeion/sweph/seas_18.se1,sha256=X9nCqhZU43wJpq61WAdueVQJt9xL2UjrwPqn1Kdoa1s,223002
27
27
  kerykeion/utilities.py,sha256=ncoXHvzXhNjhdm-uU6hMirVo287laq2GAJElNE6cBZM,10822
28
- kerykeion-4.6.1.dist-info/LICENSE,sha256=UTLH8EdbAsgQei4PA2PnBCPGLSZkq5J-dhkyJuXgWQU,34273
29
- kerykeion-4.6.1.dist-info/METADATA,sha256=ex70YSaS2hxS_HFpcfQx0rkIfd0Xpp_PoskW6BNXC90,10311
30
- kerykeion-4.6.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
31
- kerykeion-4.6.1.dist-info/entry_points.txt,sha256=5SmANYscFDDTdeovHvGQ-cnj0hdFvGoxPaWLCpyDFnQ,49
32
- kerykeion-4.6.1.dist-info/RECORD,,
28
+ kerykeion-4.6.2.dist-info/LICENSE,sha256=UTLH8EdbAsgQei4PA2PnBCPGLSZkq5J-dhkyJuXgWQU,34273
29
+ kerykeion-4.6.2.dist-info/METADATA,sha256=hnPIiPxPtZE9OlhC3Us33D38-4g7-RA71eFeZpEATCU,10311
30
+ kerykeion-4.6.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
31
+ kerykeion-4.6.2.dist-info/entry_points.txt,sha256=5SmANYscFDDTdeovHvGQ-cnj0hdFvGoxPaWLCpyDFnQ,49
32
+ kerykeion-4.6.2.dist-info/RECORD,,