You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

natal-report

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

natal-report

generate PDF report for the Natal package

0.1.6
pipPyPI
Maintainers
1

PDF Report for the Natal Package

ci-badge pypi-badge MIT-badge black-badge

generate PDF report for the Natal package

Installation

  • dependencies:
    • Natal: for natal chart data and SVG paths
    • weasyprint: PDF generation
      • refer weasyprint docs for installing OS dependencies
      • you may need to install Pango for text rendering

pip install natal-report

or install as optional dependency of Natal:

pip install "natal[report]"

Usage

from natal import Data, Config
from natal.config import Orb
from natal_report import Report

config = Config(
    theme_type="mono",
    orb=Orb(conjunction=2, opposition=2, trine=2, square=2, sextile=1),
)

mimi = Data(
    name="Mimi",
    utc_dt="1980-02-23 00:00",
    lat=25.0375,
    lon=121.5633,
    config=config,
)

transit = Data(
    name="transit",
    utc_dt="2024-12-21 00:00",
    lat=25.0375,
    lon=121.5633,
)

report = Report(data1=mimi, data2=transit)
html = report.full_report
bytes_io = report.create_pdf(html)

with open("demo_report_mono.pdf", "wb") as f:
    f.write(bytes_io.getbuffer())

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts