Skip to main content

Python port (in progress) of the Turbo Pascal Pohualli calendrical utility

Project description

Pohualli (Python Port)

CI Coverage Docs PyPI

Python reimplementation of the original Turbo Pascal Pohualli calendrical utility.

Highlights

  • Maya and Aztec core calculations (Tzolk'in, Haab, Long Count, Year Bearer)
  • 819-day cycle, planetary synodic helpers, zodiac and moon heuristics
  • Correlation presets and configurable correction offsets
  • CLI, Python API, and JSON-RPC backend
  • Flutter desktop UI for macOS and Windows

Install

PyPI (CLI + library)

pip install pohualli

From source (development)

git clone https://github.com/muscariello/pohualli-python.git
cd pohualli-python
pip install -e .[dev,docs]

CLI Quick Examples

pohualli from-jdn 2451545 --json
pohualli search-range 584283 584400 --tzolkin-value 4 --limit 2
pohualli derive-autocorr 2451545 --tzolkin "4 Ahau"

Python Quick Example

from pohualli import compute_composite

result = compute_composite(2451545)
print(result.tzolkin_name, result.long_count)

RPC Backend (used by Flutter)

pohualli-rpc

JSON-RPC methods:

  • health
  • list_correlations
  • convert
  • derive_autocorr
  • search_range
  • quit

Flutter Desktop App

  • Project: flutter/pohualli_desktop
  • Workflow: .github/workflows/flutter-desktop.yml
  • Release artifacts include a bundled self-contained backend executable (pohualli-rpc-bin)

Run locally:

cd flutter/pohualli_desktop
flutter pub get
flutter run -d macos
# or: flutter run -d windows

Build locally:

flutter build macos --release
flutter build windows --release

Testing

pytest -q

Flutter checks:

cd flutter/pohualli_desktop
flutter analyze
flutter test --coverage

Documentation

License

GPL-3.0-only

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pohualli-0.4.0.tar.gz (42.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pohualli-0.4.0-py3-none-any.whl (30.9 kB view details)

Uploaded Python 3

File details

Details for the file pohualli-0.4.0.tar.gz.

File metadata

  • Download URL: pohualli-0.4.0.tar.gz
  • Upload date:
  • Size: 42.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pohualli-0.4.0.tar.gz
Algorithm Hash digest
SHA256 60f7555ab1be4cfac5137ee831509fe66fca0a33aae28ee797682eaba5c226d1
MD5 878af3b7dd0a0baae1c6f73cc21f0cf9
BLAKE2b-256 17bc633a508562c31b91a52fac8984a110e70c6e135ca630200ca56e485aa7cb

See more details on using hashes here.

File details

Details for the file pohualli-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: pohualli-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 30.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pohualli-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f319fd3646a4be8125cd04c012cc866a60e270c2399b3466670e263dfbf414a3
MD5 08b401c01f90465164f9ca84194b2dce
BLAKE2b-256 ded825c5e2965a0f75df1397b22f9eedb6b55b8f7f2d690c8577df36d6bd6655

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page