Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

viet-bazi-engine for Python

PyPI Python License: MIT

Offline, deterministic Bazi/Four Pillars calculations for Python applications, automation, and data pipelines.

The wheel bundles the matching JavaScript engine snapshot and verifies its integrity before first use. It has no Python dependencies and does not send birth data over the network. Node.js 20 or newer is required at runtime.

Install

python -m pip install viet-bazi-engine==1.0.0rc3
node --version

Calculate a chart

from viet_bazi import BirthInput, calculate_bazi

birth = BirthInput(
    localDateTime="1990-05-17T14:30:00",
    timezoneOffsetMinutes=420,
    asOfYear=2026,
    gender="female",
    trueSolarTime=True,
    location={"city": "Hà Nội"},
)

chart = calculate_bazi(birth)
print(chart["pillars"])
print(chart["metadata"]["methodology"])

What is included

  • Four Pillars, hidden stems, Ten Gods, Five Elements, relations, luck pillars, and annual analysis.
  • True solar time, Vietnamese city catalog, and birth-time sensitivity analysis.
  • Batch calculation with per-record stable error codes.
  • Compatibility factors, accessible SVG output, and Vietnamese/English localization.
  • Grounded interpretation prompts with facts, evidence, methodology, and audit traces.
  • Bundled engine manifest with file size and SHA-256 verification.

Calculation and generated interpretation are deliberately separate. Conventions and heuristics are exposed in metadata.methodology; results should not be the sole basis for medical, legal, or financial decisions.

Documentation

Release files for viet-bazi-engine 1.0.0rc3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for viet-bazi-engine 1.0.0rc3
File Interpreter ABI Platform
viet_bazi_engine-1.0.0rc3-py3-none-any.whl Python 3 none any Details

Release files / viet_bazi_engine-1.0.0rc3-py3-none-any.whl

Download URL viet_bazi_engine-1.0.0rc3-py3-none-any.whl
Size 89.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3f985e80d6184cd83516a445f941c1fd8d4669c3e7c69a2fd3cf2d313ee063f4
BLAKE2b-256 checksum
How to use checksums
b13838f093a1b9b02415f2f47bef2bc00219c6531b7f3d8077be3b91787815d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 29, 2026.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page