This release is a pre-release and may not be stable for production use.
viet-bazi-engine for Python
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.0rc4
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.0rc4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| viet_bazi_engine-1.0.0rc4-py3-none-any.whl | Python 3 | none | any | Details |
Release files / viet_bazi_engine-1.0.0rc4-py3-none-any.whl
| Download URL | viet_bazi_engine-1.0.0rc4-py3-none-any.whl |
|---|---|
| Size | 88.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
957f8699ca9d7d30dd8df9da1db5fd2ef9b4afa5898d4a8cb29b8cc8bc5f40bb
|
|
BLAKE2b-256 checksum How to use checksums |
6069645b8bde588e2accb17f64050dd00d875168d615d3c4a0e222f73ba2a415
|
| 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