Birth Chart
The birth chart is the most common chart in astrology. It is a representation of the sky at the moment of birth of a person. The birth chart is a map of the sky at the time of birth, showing the positions of the planets in the zodiac signs and houses. The birth chart is also known as the natal chart.
Standard Birth Chart
from kerykeion import AstrologicalSubject, KerykeionChartSVGfrom pathlib import Pathimport logging
# Set global log leve to DEBUG, and to a filelogging.basicConfig(level=logging.DEBUG, force=True, stream=open("kerykeion.log", "a"))
# Create a AstrologicalSubject subjectsubject = AstrologicalSubject("Kanye", 1977, 6, 8, 8, 45, "Atlanta", "USA")
# Create a KerykeionChartSVG, the default destination is the home directory of the user, but you can specify a pathHOME_DIR = str(Path.home())
# THE OUTPUT DIRECTORY MUST EXIST!DOC_DIR = HOME_DIR + "/Documents"
# Current directoryCURRENT_DIR = Path(__file__).parent.absolute()
chart = KerykeionChartSVG(subject, new_output_directory=DOC_DIR, new_settings_file=CURRENT_DIR / "kr.config.json")
# Creates the SVG in the output directorychart.makeSVG()
The output will be a SVG file in the output directory with the name KanyeNatalChart.svg
External Birth Chart
from kerykeion import AstrologicalSubject, KerykeionChartSVG
# Create a AstrologicalSubject subjectsubject = AstrologicalSubject("Kanye", 1977, 6, 8, 8, 45, "Atlanta", "USA")
# Create a KerykeionChartSVG object with ExternalNatal chart typechart = KerykeionChartSVG(subject, chart_type="ExternalNatal")
# Creates the SVG in the output directorychart.makeSVG()
The output will be a SVG file in the output directory with the name KanyeExternalNatalChart.svg
.
Since we did not set manually the output directory, the file will be in the home directory of the user, eg. /home/user/KanyeExternalNatalChart.svg
.