kerykeion 4.18.3__py3-none-any.whl → 5.1.9__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/__init__.py +56 -11
- kerykeion/aspects/__init__.py +7 -4
- kerykeion/aspects/aspects_factory.py +568 -0
- kerykeion/aspects/aspects_utils.py +86 -13
- kerykeion/astrological_subject_factory.py +1901 -0
- kerykeion/backword.py +820 -0
- kerykeion/chart_data_factory.py +552 -0
- kerykeion/charts/__init__.py +2 -2
- kerykeion/charts/chart_drawer.py +2794 -0
- kerykeion/charts/charts_utils.py +1066 -309
- kerykeion/charts/draw_planets.py +602 -351
- kerykeion/charts/templates/aspect_grid_only.xml +337 -193
- kerykeion/charts/templates/chart.xml +441 -240
- kerykeion/charts/templates/wheel_only.xml +365 -211
- kerykeion/charts/themes/black-and-white.css +148 -0
- kerykeion/charts/themes/classic.css +107 -76
- kerykeion/charts/themes/dark-high-contrast.css +145 -107
- kerykeion/charts/themes/dark.css +146 -107
- kerykeion/charts/themes/light.css +146 -103
- kerykeion/charts/themes/strawberry.css +158 -0
- kerykeion/composite_subject_factory.py +408 -0
- kerykeion/ephemeris_data_factory.py +443 -0
- kerykeion/fetch_geonames.py +81 -21
- kerykeion/house_comparison/__init__.py +6 -0
- kerykeion/house_comparison/house_comparison_factory.py +103 -0
- kerykeion/house_comparison/house_comparison_utils.py +126 -0
- kerykeion/kr_types/__init__.py +66 -6
- kerykeion/kr_types/chart_template_model.py +20 -0
- kerykeion/kr_types/kerykeion_exception.py +15 -9
- kerykeion/kr_types/kr_literals.py +14 -106
- kerykeion/kr_types/kr_models.py +14 -179
- kerykeion/kr_types/settings_models.py +15 -152
- kerykeion/planetary_return_factory.py +805 -0
- kerykeion/relationship_score_factory.py +301 -0
- kerykeion/report.py +750 -65
- kerykeion/schemas/__init__.py +106 -0
- kerykeion/schemas/chart_template_model.py +367 -0
- kerykeion/schemas/kerykeion_exception.py +20 -0
- kerykeion/schemas/kr_literals.py +181 -0
- kerykeion/schemas/kr_models.py +603 -0
- kerykeion/schemas/settings_models.py +188 -0
- kerykeion/settings/__init__.py +20 -1
- kerykeion/settings/chart_defaults.py +444 -0
- kerykeion/settings/config_constants.py +152 -0
- kerykeion/settings/kerykeion_settings.py +36 -61
- kerykeion/settings/translation_strings.py +1499 -0
- kerykeion/settings/translations.py +74 -0
- kerykeion/sweph/ast136/s136108s.se1 +0 -0
- kerykeion/sweph/ast136/s136199s.se1 +0 -0
- kerykeion/sweph/ast136/s136472s.se1 +0 -0
- kerykeion/sweph/ast28/se28978s.se1 +0 -0
- kerykeion/sweph/ast50/se50000s.se1 +0 -0
- kerykeion/sweph/ast90/se90377s.se1 +0 -0
- kerykeion/sweph/ast90/se90482s.se1 +0 -0
- kerykeion/sweph/sefstars.txt +1602 -0
- kerykeion/transits_time_range_factory.py +302 -0
- kerykeion/utilities.py +626 -125
- kerykeion-5.1.9.dist-info/METADATA +1793 -0
- kerykeion-5.1.9.dist-info/RECORD +63 -0
- {kerykeion-4.18.3.dist-info → kerykeion-5.1.9.dist-info}/WHEEL +1 -1
- kerykeion/aspects/natal_aspects.py +0 -143
- kerykeion/aspects/synastry_aspects.py +0 -113
- kerykeion/astrological_subject.py +0 -818
- kerykeion/charts/kerykeion_chart_svg.py +0 -894
- kerykeion/enums.py +0 -51
- kerykeion/ephemeris_data.py +0 -178
- kerykeion/kr_types/chart_types.py +0 -88
- kerykeion/relationship_score/__init__.py +0 -2
- kerykeion/relationship_score/relationship_score.py +0 -175
- kerykeion/relationship_score/relationship_score_factory.py +0 -275
- kerykeion/settings/kr.config.json +0 -721
- kerykeion-4.18.3.dist-info/LICENSE +0 -661
- kerykeion-4.18.3.dist-info/METADATA +0 -396
- kerykeion-4.18.3.dist-info/RECORD +0 -42
- kerykeion-4.18.3.dist-info/entry_points.txt +0 -3
- /LICENSE → /kerykeion-5.1.9.dist-info/licenses/LICENSE +0 -0
|
@@ -1,396 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: kerykeion
|
|
3
|
-
Version: 4.18.3
|
|
4
|
-
Summary: A python library for astrology.
|
|
5
|
-
Home-page: https://www.kerykeion.net/
|
|
6
|
-
License: AGPL-3.0
|
|
7
|
-
Keywords: astrology,ephemeris,astrology library,birtchart,svg,zodiac,zodiac-sing,astronomical-algorithms,synastry,astrology-calculator
|
|
8
|
-
Author: Giacomo Battaglia
|
|
9
|
-
Author-email: kerykeion.astrology@gmail.com
|
|
10
|
-
Requires-Python: >=3.9,<4.0
|
|
11
|
-
Classifier: Development Status :: 5 - Production/Stable
|
|
12
|
-
Classifier: Intended Audience :: Developers
|
|
13
|
-
Classifier: Intended Audience :: Information Technology
|
|
14
|
-
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
|
|
15
|
-
Classifier: License :: OSI Approved :: GNU General Public License (GPL)
|
|
16
|
-
Classifier: Operating System :: OS Independent
|
|
17
|
-
Classifier: Programming Language :: Python :: 3
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
19
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
20
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
22
|
-
Classifier: Programming Language :: Python :: 3 :: Only
|
|
23
|
-
Classifier: Topic :: Scientific/Engineering :: Astronomy
|
|
24
|
-
Classifier: Topic :: Software Development
|
|
25
|
-
Classifier: Topic :: Software Development :: Libraries
|
|
26
|
-
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
27
|
-
Classifier: Typing :: Typed
|
|
28
|
-
Requires-Dist: pydantic (>=2.5,<3.0)
|
|
29
|
-
Requires-Dist: pyswisseph (>=2.10.3.1,<3.0.0.0)
|
|
30
|
-
Requires-Dist: pytz (>=2022.7,<2023.0)
|
|
31
|
-
Requires-Dist: requests (>=2.32.3,<3.0.0)
|
|
32
|
-
Requires-Dist: requests-cache (>=1.2.1,<2.0.0)
|
|
33
|
-
Requires-Dist: scour (>=0.38.2,<0.39.0)
|
|
34
|
-
Requires-Dist: terminaltables (>=3.1.10,<4.0.0)
|
|
35
|
-
Project-URL: Repository, https://github.com/g-battaglia/kerykeion
|
|
36
|
-
Description-Content-Type: text/markdown
|
|
37
|
-
|
|
38
|
-
<h1 align=center>Kerykeion</h1>
|
|
39
|
-
<div align="center">
|
|
40
|
-
<a href="#">
|
|
41
|
-
<img src="https://img.shields.io/github/contributors/g-battaglia/kerykeion?color=blue&logo=github" alt="contributors">
|
|
42
|
-
</a>
|
|
43
|
-
<a href="#">
|
|
44
|
-
<img src="https://img.shields.io/github/stars/g-battaglia/kerykeion.svg?logo=github" alt="stars">
|
|
45
|
-
</a>
|
|
46
|
-
<a href="#">
|
|
47
|
-
<img src="https://img.shields.io/github/forks/g-battaglia/kerykeion.svg?logo=github" alt="forks">
|
|
48
|
-
</a>
|
|
49
|
-
<a href="https://pypi.org/project/kerykeion" target="_blank">
|
|
50
|
-
<img src="https://visitor-badge.laobi.icu/badge?page_id=g-battaglia.kerykeion" alt="visitors"/>
|
|
51
|
-
</a>
|
|
52
|
-
<a href="https://pypi.org/project/kerykeion" target="_blank">
|
|
53
|
-
<img src="https://img.shields.io/pypi/v/kerykeion?label=pypi%20package" alt="Package version">
|
|
54
|
-
</a>
|
|
55
|
-
<a href="https://pypi.org/project/kerykeion" target="_blank">
|
|
56
|
-
<img src="https://img.shields.io/pypi/pyversions/kerykeion.svg" alt="Supported Python versions">
|
|
57
|
-
</a>
|
|
58
|
-
</div>
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
Kerykeion is a python library for Astrology.
|
|
63
|
-
It can calculate all the planet and house position,
|
|
64
|
-
also it can calculate the aspects of a single persone or between two, you can set how many planets you
|
|
65
|
-
need in the settings in the utility module.
|
|
66
|
-
It also can generate an SVG of a birthchart, a synastry chart or a transit chart.
|
|
67
|
-
|
|
68
|
-
The core goal of this project is to provide a simple and easy approach to astrology in a data driven way.
|
|
69
|
-
|
|
70
|
-
Here's an example of a birthchart:
|
|
71
|
-
|
|
72
|
-

|
|
73
|
-
|
|
74
|
-
## Web API
|
|
75
|
-
|
|
76
|
-
If you want to use Kerykeion in a web application, I've created a web API for this purpose, you can find it here:
|
|
77
|
-
|
|
78
|
-
**[AstrologerAPI](https://rapidapi.com/gbattaglia/api/astrologer/pricing)**
|
|
79
|
-
|
|
80
|
-
It's [open source](https://github.com/g-battaglia/Astrologer-API), it's a way to support me and the project.
|
|
81
|
-
|
|
82
|
-
## Donate
|
|
83
|
-
|
|
84
|
-
Maintaining this project is a lot of work, the Astrologer API doesn't nearly cover the costs of a software engineer working on this project full time. I do this because I love it, but until I can make this my full time job, I won't be able to spend as much time on it.
|
|
85
|
-
|
|
86
|
-
If you want to support me, you can do it here:
|
|
87
|
-
|
|
88
|
-
[](https://ko-fi.com/kerykeion)
|
|
89
|
-
|
|
90
|
-
## Installation
|
|
91
|
-
|
|
92
|
-
Kerykeion is a _Python 3.9_ package, make sure you have _Python 3.9_ or above installed on your system.
|
|
93
|
-
|
|
94
|
-
```bash
|
|
95
|
-
pip3 install kerykeion
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
## Basic Usage
|
|
99
|
-
|
|
100
|
-
The basic usage of the library is to create an instance of the AstrologicalSubject class and then access the properties of the instance to get the astrological information about the subject.
|
|
101
|
-
|
|
102
|
-
Here's an example:
|
|
103
|
-
|
|
104
|
-
```python
|
|
105
|
-
|
|
106
|
-
# Import the main class for creating a kerykeion instance:
|
|
107
|
-
from kerykeion import AstrologicalSubject
|
|
108
|
-
|
|
109
|
-
# Create a kerykeion instance:
|
|
110
|
-
# Args: Name, year, month, day, hour, minuts, city, nation
|
|
111
|
-
kanye = AstrologicalSubject("Kanye", 1977, 6, 8, 8, 45, "Atlanta", "US")
|
|
112
|
-
|
|
113
|
-
# Get the information about the sun in the chart:
|
|
114
|
-
# (The position of the planets always starts at 0)
|
|
115
|
-
kanye.sun
|
|
116
|
-
|
|
117
|
-
#> {'name': 'Sun', 'quality': 'Mutable', 'element': 'Air', 'sign': 'Gem', 'sign_num': 2, 'pos': 17.598992059774275, 'abs_pos': 77.59899205977428, 'emoji': '♊️', 'house': '12th House', 'retrograde': False}
|
|
118
|
-
|
|
119
|
-
# Get information about the first house:
|
|
120
|
-
kanye.first_house
|
|
121
|
-
|
|
122
|
-
#> {'name': 'First_House', 'quality': 'Cardinal', 'element': 'Water', 'sign': 'Can', 'sign_num': 3, 'pos': 17.995779673209114, 'abs_pos': 107.99577967320911, 'emoji': '♋️'}
|
|
123
|
-
|
|
124
|
-
# Get element of the moon sign:
|
|
125
|
-
kanye.moon.element
|
|
126
|
-
|
|
127
|
-
#> 'Water'
|
|
128
|
-
|
|
129
|
-
```
|
|
130
|
-
|
|
131
|
-
**To avoid connecting to GeoNames (eg. avoiding hourly limit or no internet connection) you should instance kerykeion like this:**
|
|
132
|
-
|
|
133
|
-
```python
|
|
134
|
-
kanye = AstrologicalSubject(
|
|
135
|
-
"Kanye", 1977, 6, 8, 8, 45, lng=50, lat=50, tz_str="Europe/Rome", city="Rome"
|
|
136
|
-
)
|
|
137
|
-
```
|
|
138
|
-
|
|
139
|
-
The difference is that you have to pass the longitude, latitude and the timezone string, instead of the city and nation.
|
|
140
|
-
If you omit the nation, it will be set to "GB" by default, but the value is not used for calculations. It's better to set it to the correct value though.
|
|
141
|
-
|
|
142
|
-
## Generate a SVG Chart
|
|
143
|
-
|
|
144
|
-
### Birth Chart
|
|
145
|
-
|
|
146
|
-
```python
|
|
147
|
-
from kerykeion import AstrologicalSubject, KerykeionChartSVG
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
birth_chart = AstrologicalSubject("Kanye", 1977, 6, 8, 8, 45, "Atlanta", "US")
|
|
151
|
-
birth_chart_svg = KerykeionChartSVG(birth_chart)
|
|
152
|
-
|
|
153
|
-
birth_chart_svg.makeSVG()
|
|
154
|
-
```
|
|
155
|
-
|
|
156
|
-
The SVG file will be saved in the home directory.
|
|
157
|
-

|
|
158
|
-
|
|
159
|
-
### Synastry Chart
|
|
160
|
-
|
|
161
|
-
```python
|
|
162
|
-
from kerykeion import AstrologicalSubject, KerykeionChartSVG
|
|
163
|
-
|
|
164
|
-
first = AstrologicalSubject("John Lennon", 1940, 10, 9, 18, 30, "Liverpool", "GB")
|
|
165
|
-
second = AstrologicalSubject("Paul McCartney", 1942, 6, 18, 15, 30, "Liverpool", "GB")
|
|
166
|
-
|
|
167
|
-
# Set the type, it can be Natal, Synastry or Transit
|
|
168
|
-
synastry_chart = KerykeionChartSVG(first, "Synastry", second)
|
|
169
|
-
synastry_chart.makeSVG()
|
|
170
|
-
|
|
171
|
-
```
|
|
172
|
-
|
|
173
|
-

|
|
174
|
-
|
|
175
|
-
### Change the output directory
|
|
176
|
-
|
|
177
|
-
By default the output directory is the home directory, you can change it by passing the new_output_directory parameter to the KerykeionChartSVG class:
|
|
178
|
-
|
|
179
|
-
```python
|
|
180
|
-
from kerykeion import AstrologicalSubject, KerykeionChartSVG
|
|
181
|
-
|
|
182
|
-
first = AstrologicalSubject("John Lennon", 1940, 10, 9, 18, 30, "Liverpool", "GB")
|
|
183
|
-
second = AstrologicalSubject("Paul McCartney", 1942, 6, 18, 15, 30, "Liverpool", "GB")
|
|
184
|
-
|
|
185
|
-
# Set the output directory to the current directory
|
|
186
|
-
synastry_chart = KerykeionChartSVG(first, "Synastry", second, new_output_directory=".")
|
|
187
|
-
synastry_chart.makeSVG()
|
|
188
|
-
```
|
|
189
|
-
|
|
190
|
-
### Change Language
|
|
191
|
-
|
|
192
|
-
You can change the language of the SVG by passing the `chart_language` parameter to the KerykeionChartSVG class:
|
|
193
|
-
|
|
194
|
-
```python
|
|
195
|
-
first = AstrologicalSubject("John Lennon", 1940, 10, 9, 18, 30, "Liverpool", "GB", chart_language="ES")
|
|
196
|
-
```
|
|
197
|
-
More details [here](https://www.kerykeion.net/docs/examples/chart-language).
|
|
198
|
-
|
|
199
|
-
## Report
|
|
200
|
-
|
|
201
|
-
To print a report of all the data:
|
|
202
|
-
|
|
203
|
-
```python
|
|
204
|
-
from kerykeion import Report, AstrologicalSubject
|
|
205
|
-
|
|
206
|
-
kanye = AstrologicalSubject("Kanye", 1977, 6, 8, 8, 45, "Atlanta", "US")
|
|
207
|
-
report = Report(kanye)
|
|
208
|
-
report.print_report()
|
|
209
|
-
|
|
210
|
-
```
|
|
211
|
-
|
|
212
|
-
Returns:
|
|
213
|
-
|
|
214
|
-
```txt
|
|
215
|
-
+- Kerykeion report for Kanye -+
|
|
216
|
-
+----------+------+-------------+-----------+----------+
|
|
217
|
-
| Date | Time | Location | Longitude | Latitude |
|
|
218
|
-
+----------+------+-------------+-----------+----------+
|
|
219
|
-
| 8/6/1977 | 8:45 | Atlanta, US | -84.38798 | 33.749 |
|
|
220
|
-
+----------+------+-------------+-----------+----------+
|
|
221
|
-
+-----------+------+-------+------+----------------+
|
|
222
|
-
| Planet | Sign | Pos. | Ret. | House |
|
|
223
|
-
+-----------+------+-------+------+----------------+
|
|
224
|
-
| Sun | Gem | 17.6 | - | Twelfth_House |
|
|
225
|
-
| Moon | Pis | 16.43 | - | Ninth_House |
|
|
226
|
-
| Mercury | Tau | 26.29 | - | Eleventh_House |
|
|
227
|
-
| Venus | Tau | 2.03 | - | Tenth_House |
|
|
228
|
-
| Mars | Tau | 1.79 | - | Tenth_House |
|
|
229
|
-
| Jupiter | Gem | 14.61 | - | Eleventh_House |
|
|
230
|
-
| Saturn | Leo | 12.8 | - | Second_House |
|
|
231
|
-
| Uranus | Sco | 8.27 | R | Fourth_House |
|
|
232
|
-
| Neptune | Sag | 14.69 | R | Fifth_House |
|
|
233
|
-
| Pluto | Lib | 11.45 | R | Fourth_House |
|
|
234
|
-
| Mean_Node | Lib | 21.49 | R | Fourth_House |
|
|
235
|
-
| True_Node | Lib | 22.82 | R | Fourth_House |
|
|
236
|
-
| Chiron | Tau | 4.17 | - | Tenth_House |
|
|
237
|
-
+-----------+------+-------+------+----------------+
|
|
238
|
-
+----------------+------+----------+
|
|
239
|
-
| House | Sign | Position |
|
|
240
|
-
+----------------+------+----------+
|
|
241
|
-
| First_House | Can | 18.0 |
|
|
242
|
-
| Second_House | Leo | 9.51 |
|
|
243
|
-
| Third_House | Vir | 4.02 |
|
|
244
|
-
| Fourth_House | Lib | 3.98 |
|
|
245
|
-
| Fifth_House | Sco | 9.39 |
|
|
246
|
-
| Sixth_House | Sag | 15.68 |
|
|
247
|
-
| Seventh_House | Cap | 18.0 |
|
|
248
|
-
| Eighth_House | Aqu | 9.51 |
|
|
249
|
-
| Ninth_House | Pis | 4.02 |
|
|
250
|
-
| Tenth_House | Ari | 3.98 |
|
|
251
|
-
| Eleventh_House | Tau | 9.39 |
|
|
252
|
-
| Twelfth_House | Gem | 15.68 |
|
|
253
|
-
+----------------+------+----------+
|
|
254
|
-
|
|
255
|
-
```
|
|
256
|
-
|
|
257
|
-
And if you want to export it to a file:
|
|
258
|
-
|
|
259
|
-
```bash
|
|
260
|
-
python3 your_script_name.py > file.txt
|
|
261
|
-
```
|
|
262
|
-
|
|
263
|
-
## Other examples of possible use cases:
|
|
264
|
-
|
|
265
|
-
```python
|
|
266
|
-
# Get all aspects between two persons:
|
|
267
|
-
|
|
268
|
-
from kerykeion import SynastryAspects, AstrologicalSubject
|
|
269
|
-
first = AstrologicalSubject("Jack", 1990, 6, 15, 15, 15, "Roma", "IT")
|
|
270
|
-
second = AstrologicalSubject("Jane", 1991, 10, 25, 21, 00, "Roma", "IT")
|
|
271
|
-
|
|
272
|
-
name = SynastryAspects(first, second)
|
|
273
|
-
aspect_list = name.get_relevant_aspects()
|
|
274
|
-
print(aspect_list[0])
|
|
275
|
-
|
|
276
|
-
#> Generating kerykeion object for Jack...
|
|
277
|
-
#> Generating kerykeion object for Jane...
|
|
278
|
-
#> {'p1_name': 'Sun', 'p1_abs_pos': 84.17867971515636, 'p2_name': 'Sun', 'p2_abs_pos': 211.90472999502984, 'aspect': 'trine', 'orbit': 7.726050279873476, 'aspect_degrees': 120, 'color': '#36d100', 'aid': 6, 'diff': 127.72605027987348, 'p1': 0, 'p2': 0}
|
|
279
|
-
|
|
280
|
-
```
|
|
281
|
-
|
|
282
|
-
## Ayanamsa (Sidereal Modes)
|
|
283
|
-
|
|
284
|
-
By default, the zodiac type is set to Tropic (Tropical).
|
|
285
|
-
You can set the zodiac type to Sidereal and the sidereal mode in the AstrologicalSubject class:
|
|
286
|
-
|
|
287
|
-
```python
|
|
288
|
-
johnny = AstrologicalSubject("Johnny Depp", 1963, 6, 9, 0, 0, "Owensboro", "US", zodiac_type="Sidereal", sidereal_mode="LAHIRI")
|
|
289
|
-
```
|
|
290
|
-
|
|
291
|
-
More examples [here](https://www.kerykeion.net/docs/examples/sidereal-modes/).
|
|
292
|
-
|
|
293
|
-
Full list of supported sidereal modes [here](https://www.kerykeion.net/pydocs/kerykeion/kr_types/kr_literals.html#SiderealMode).
|
|
294
|
-
|
|
295
|
-
## Houses Systems
|
|
296
|
-
|
|
297
|
-
By default, the houses system is set to Placidus.
|
|
298
|
-
You can set the houses system in the AstrologicalSubject class:
|
|
299
|
-
|
|
300
|
-
```python
|
|
301
|
-
johnny = AstrologicalSubject("Johnny Depp", 1963, 6, 9, 0, 0, "Owensboro", "US", houses_system="M")
|
|
302
|
-
```
|
|
303
|
-
|
|
304
|
-
More examples [here](https://www.kerykeion.net/docs/examples/houses-systems/).
|
|
305
|
-
|
|
306
|
-
Full list of supported house systems [here](https://www.kerykeion.net/pydocs/kerykeion/kr_types/kr_literals.html#HousesSystem).
|
|
307
|
-
|
|
308
|
-
So far all the available houses system in the Swiss Ephemeris are supported but the Gauquelin Sectors.
|
|
309
|
-
|
|
310
|
-
## Perspective Type
|
|
311
|
-
|
|
312
|
-
By default, the perspective type is set to Apparent Geocentric (the most common standard for astrology).
|
|
313
|
-
The perspective indicates the point of view from which the chart is calculated (Es. Apparent Geocentric, Heliocentric, etc.).
|
|
314
|
-
You can set the perspective type in the AstrologicalSubject class:
|
|
315
|
-
|
|
316
|
-
```python
|
|
317
|
-
johnny = AstrologicalSubject("Johnny Depp", 1963, 6, 9, 0, 0, "Owensboro", "US", perspective_type="Heliocentric")
|
|
318
|
-
```
|
|
319
|
-
|
|
320
|
-
More examples [here](https://www.kerykeion.net/docs/examples/perspective-type/).
|
|
321
|
-
|
|
322
|
-
Full list of supported perspective types [here](https://www.kerykeion.net/pydocs/kerykeion/kr_types/kr_literals.html#PerspectiveType).
|
|
323
|
-
|
|
324
|
-
## Themes
|
|
325
|
-
|
|
326
|
-
You can now personalize your astrological charts with different themes! Four themes are available:
|
|
327
|
-
|
|
328
|
-
- **Classic** (default)
|
|
329
|
-
- **Dark**
|
|
330
|
-
- **Dark High Contrast**
|
|
331
|
-
- **Light**
|
|
332
|
-
|
|
333
|
-
Each theme offers a distinct visual style, allowing you to choose the one that best suits your preferences or presentation needs. If you prefer more control over the appearance, you can opt not to set any theme, making it easier to customize the chart by overriding the default CSS variables. For more detailed instructions on how to apply themes, check the [documentation](https://www.kerykeion.net/docs/examples/theming)
|
|
334
|
-
|
|
335
|
-
Here's an example of how to set the theme:
|
|
336
|
-
|
|
337
|
-
```python
|
|
338
|
-
from kerykeion import AstrologicalSubject, KerykeionChartSVG
|
|
339
|
-
|
|
340
|
-
dark_theme_subject = AstrologicalSubject("John Lennon - Dark Theme", 1940, 10, 9, 18, 30, "Liverpool", "GB")
|
|
341
|
-
dark_theme_natal_chart = KerykeionChartSVG(dark_high_contrast_theme_subject, theme="dark_high_contrast")
|
|
342
|
-
dark_theme_natal_chart.makeSVG()
|
|
343
|
-
```
|
|
344
|
-
|
|
345
|
-

|
|
346
|
-
|
|
347
|
-
## Alternative Initialization
|
|
348
|
-
|
|
349
|
-
You can initialize the AstrologicalSubject from a **UTC** ISO 8601 string:
|
|
350
|
-
|
|
351
|
-
```python
|
|
352
|
-
subject = AstrologicalSubject.get_from_iso_utc_time(
|
|
353
|
-
"Johnny Depp", "1963-06-09T05:00:00Z", "Owensboro", "US")
|
|
354
|
-
```
|
|
355
|
-
|
|
356
|
-
Note : The default time zone is UTC, with Greenwich longitude and latitude.
|
|
357
|
-
|
|
358
|
-
The default online/offline mode is set to offline, if you set it online the default latitude and longitude will be ignored and
|
|
359
|
-
calculated from the city and nation. Remember to pass also the geonames_username parameter if you want to use the online mode, like this:
|
|
360
|
-
|
|
361
|
-
```python
|
|
362
|
-
from kerykeion.astrological_subject import AstrologicalSubject
|
|
363
|
-
|
|
364
|
-
# Use the static method get_from_iso_utc_time to create an instance of AstrologicalSubject
|
|
365
|
-
subject = AstrologicalSubject.get_from_iso_utc_time(
|
|
366
|
-
"Johnny Depp", "1963-06-09T05:00:00Z", "Owensboro", "US", online=True)
|
|
367
|
-
```
|
|
368
|
-
|
|
369
|
-
## Documentation
|
|
370
|
-
|
|
371
|
-
Most of the functions and the classes are self documented by the types and have docstrings.
|
|
372
|
-
An auto-generated documentation [is available here](https://www.kerykeion.net/pydocs/kerykeion.html).
|
|
373
|
-
|
|
374
|
-
Sooner or later I'll try to write an extensive documentation.
|
|
375
|
-
|
|
376
|
-
## Development
|
|
377
|
-
|
|
378
|
-
You can clone this repository or download a zip file using the right side buttons.
|
|
379
|
-
|
|
380
|
-
## Integrate Kerykeion Functionalities in Your Project
|
|
381
|
-
|
|
382
|
-
If you are interested in integrating Kerykeion's astrological functionalities into your project, I would be happy to collaborate with you. Whether you need custom features, support, or consultation, feel free to reach out to me at my [email](mailto:kerykeion.astrology@gmail.com?subject=Integration%20Request) address.
|
|
383
|
-
|
|
384
|
-
## License
|
|
385
|
-
|
|
386
|
-
This project is licensed under the AGPL-3.0 License.
|
|
387
|
-
To understand how this impacts your use of the software, please see the [LICENSE](LICENSE) file for details.
|
|
388
|
-
If you have questions, you can reach out to me at my [email](mailto:kerykeion.astrology@gmail.com?subject=Kerykeion) address.
|
|
389
|
-
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.
|
|
390
|
-
|
|
391
|
-
You can implement the logic of kerykeion 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.
|
|
392
|
-
|
|
393
|
-
## Contributing
|
|
394
|
-
|
|
395
|
-
Feel free to contribute to the code!
|
|
396
|
-
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
LICENSE,sha256=UTLH8EdbAsgQei4PA2PnBCPGLSZkq5J-dhkyJuXgWQU,34273
|
|
2
|
-
kerykeion/__init__.py,sha256=2NnLOl-3f7L7x_8vXFKV7mgExlJBmsNIBenZNsR1Seo,639
|
|
3
|
-
kerykeion/aspects/__init__.py,sha256=9FlDVI1ndCJga0-chNIhcLitjU_x3kbtAFfFqVp2ejc,293
|
|
4
|
-
kerykeion/aspects/aspects_utils.py,sha256=kwH_FpReN8rMstyHthE_fWD6doltAVzXkKFcNfo-hLw,2977
|
|
5
|
-
kerykeion/aspects/natal_aspects.py,sha256=ESWKPiVUW6vjNgwEHjIkckwqS1y_vZ8_OAaWxUgfcdQ,4973
|
|
6
|
-
kerykeion/aspects/synastry_aspects.py,sha256=xe28zmrsYU5mxHf6vloEPu-FdJF9x-v7xEGVFkRUSF8,4334
|
|
7
|
-
kerykeion/astrological_subject.py,sha256=YkEHyge_S6FTsAsLNuSMBR-4XdNMFhRo6lHqYdp-u6Y,35045
|
|
8
|
-
kerykeion/charts/__init__.py,sha256=Juxkduy2TaagWblh_7CE8Acrg3dHL27-WEddJhau_eQ,127
|
|
9
|
-
kerykeion/charts/charts_utils.py,sha256=IMvYy6jt6HmZZqpE1FIMhpL3eIqdxq2_aaF1RrpgzpE,42148
|
|
10
|
-
kerykeion/charts/draw_planets.py,sha256=Uty3zpWYMQZvvK7ZHhlmynCHeL8DIN3qL2ifnBXVciM,17393
|
|
11
|
-
kerykeion/charts/kerykeion_chart_svg.py,sha256=FXCw8E6TSNH_F_6LCwVgUWWOp_rAO445r6BbJg6ii-Q,42789
|
|
12
|
-
kerykeion/charts/templates/aspect_grid_only.xml,sha256=XoDpqhwAUNR_Yr4jSNn1Gnh2bzORCpgU-kyEDV_0Bkg,65150
|
|
13
|
-
kerykeion/charts/templates/chart.xml,sha256=ryQao1xDqlSjNUY0HzZiJjdRK__mQoMFA3WV-W6t5Jo,68383
|
|
14
|
-
kerykeion/charts/templates/wheel_only.xml,sha256=83G5hfgevQ0_aygUhKRWhzSsu57W2nRjMkSyCtL8wTE,66374
|
|
15
|
-
kerykeion/charts/themes/classic.css,sha256=-b6XllAZmqUDjBwDtIkfzfI3Wtc8AImuGMpfAQ_2wa0,3552
|
|
16
|
-
kerykeion/charts/themes/dark-high-contrast.css,sha256=6Hs_LM3m7xvEuRxWwXjLj6DBvf9W3W_A0hknUimfGCA,6099
|
|
17
|
-
kerykeion/charts/themes/dark.css,sha256=egJbTzqnqMaSk3AQ6KI-PMId-BbT2bqzjpuVds2ffcc,6099
|
|
18
|
-
kerykeion/charts/themes/light.css,sha256=urUXkEQlJ-IymdDO7Hp8hFwwjqka6GB42LkaiWZtpfs,6092
|
|
19
|
-
kerykeion/enums.py,sha256=Xp_0A6jBSW7SZvB5LlKfBObg0xTqB6hTq1IXjz-UWl4,997
|
|
20
|
-
kerykeion/ephemeris_data.py,sha256=g52P0jc1Roo8udXW04BOtIBTaOh3Rcp8_ZDw2MJNn_k,8072
|
|
21
|
-
kerykeion/fetch_geonames.py,sha256=NmyTErvKISjJCAxvRB1H35aVZI8_-_U-Cqb_rmqRseA,4563
|
|
22
|
-
kerykeion/kr_types/__init__.py,sha256=-qhGQikurdoHnGtuT1bsaEeZ-IwmZtIHMjGOPC9_oqQ,295
|
|
23
|
-
kerykeion/kr_types/chart_types.py,sha256=OlDvjCra7acaBT--B_gqsqOcAwbuKCXmQQyDTDNfy4o,1983
|
|
24
|
-
kerykeion/kr_types/kerykeion_exception.py,sha256=G-7VFta78qBt10l54JZWvwH-3lUNKmDwuILXaVGVu9A,314
|
|
25
|
-
kerykeion/kr_types/kr_literals.py,sha256=gCRnSEmogD1MRwJOHmr6hxjIve0UTJDA0wnpA4p9lds,3600
|
|
26
|
-
kerykeion/kr_types/kr_models.py,sha256=hibUM0HAgL5u2Nx_k6R3wO1VNoKwurzxdj7MJDsrbsg,4235
|
|
27
|
-
kerykeion/kr_types/settings_models.py,sha256=xAIUdJ0vDfS19FiuQdBlwfo6_vCZOZ97K4_vgOD6has,11600
|
|
28
|
-
kerykeion/relationship_score/__init__.py,sha256=cLaEBQXQBfyRkv0OaS3ceLROzvWcvKXWiRq0PS6LDjY,114
|
|
29
|
-
kerykeion/relationship_score/relationship_score.py,sha256=ZUMRjEJdtB5_nRXdx4WJdBbTHu9ACwQTeTGhyeOSsoE,6504
|
|
30
|
-
kerykeion/relationship_score/relationship_score_factory.py,sha256=DL-a-Sb7JLscZl0qlW69SpkETkDmB-akpf5y3Sz8sds,10865
|
|
31
|
-
kerykeion/report.py,sha256=QEZfadIxmqIugoLHMW0KBhOqCwTywGSDDfpX4NJD6qg,2785
|
|
32
|
-
kerykeion/settings/__init__.py,sha256=QQNFCl7sgN27MKaVscqtpPk10HGz4wZS3I_7KEGMaVA,69
|
|
33
|
-
kerykeion/settings/kerykeion_settings.py,sha256=zGLq9vNUQRXs8KY47EyKZ9bHrDl2gNYrvVhwsbh4yas,2578
|
|
34
|
-
kerykeion/settings/kr.config.json,sha256=iH7R9FPt3mS1cgrB7OKrqWSgq8G4hAslYIRv2a2RbXc,20313
|
|
35
|
-
kerykeion/sweph/README.md,sha256=L7FtNAJTWtrZNGKa8MX87SjduFYPYxwWhaI5fmtzNZo,73
|
|
36
|
-
kerykeion/sweph/seas_18.se1,sha256=X9nCqhZU43wJpq61WAdueVQJt9xL2UjrwPqn1Kdoa1s,223002
|
|
37
|
-
kerykeion/utilities.py,sha256=VazaGS8n2p3CD8P2q31A1kSKbmXRNMG8DytLuBwEaU4,9219
|
|
38
|
-
kerykeion-4.18.3.dist-info/LICENSE,sha256=UTLH8EdbAsgQei4PA2PnBCPGLSZkq5J-dhkyJuXgWQU,34273
|
|
39
|
-
kerykeion-4.18.3.dist-info/METADATA,sha256=L0UTeo8k45bOF1DqKUQGixW-RNRS4MqOg1S7ib1L5nw,15912
|
|
40
|
-
kerykeion-4.18.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
41
|
-
kerykeion-4.18.3.dist-info/entry_points.txt,sha256=5SmANYscFDDTdeovHvGQ-cnj0hdFvGoxPaWLCpyDFnQ,49
|
|
42
|
-
kerykeion-4.18.3.dist-info/RECORD,,
|
|
File without changes
|