Skip to main content
Change of provenance

The repository or configuration that created this release differ from a previous release. View details.

Python Automata Library (PAL)

DOI

PAL is a Python modeling library for high-performance agent-based, lattice population, and PDE models. Model code uses a compact object-oriented API and can be compiled with @pal.njit; PAL keeps performance-sensitive state and algorithms in a precompiled native core.

import PythonAutomataLibrary as pal

PAL provides:

  • Grid: typed 1D/2D/3D lattice data.
  • AgentGrid: lattice or continuous-position agents with identity and properties.
  • PopGrid: integer lattice populations without individual agent identity.
  • PDEgrid: diffusion/advection fields.
  • IList: reusable integer query results.
  • Multinomial: binomial/multinomial sampling.
  • PixWindow and OpenGLWindow: 2D/3D visualization.
  • @pal.njit: Numba compilation with PAL-specific source transformation and diagnostics.

PAL runs in safe mode by default. Call pal.FastMode() before constructing PAL objects to select the unchecked high-performance implementations after a model has been validated.

Quick start

Install PAL:

python -m pip install PythonAutomataLibrary

Copy the bundled examples and PDF manuals to an editable PAL-Examples/ folder in your current directory:

python -m PythonAutomataLibrary.ExampleInstaller

Run an example script from PAL-Examples/. For a guided first model, see the PAL Guide.

Documentation

  • PAL Guide (PDF) — first model, worked modeling workflows, and detailed API behavior.
  • PAL Architecture and Design (PDF) — implementation structure, design rationale, subsystem choices, testing, and performance.
  • API Reference (PDF) — source-derived public signatures.
  • Cheatsheet (PDF) — compact one-page lookup for common operations.
  • Examples/ — complete working models.
  • Testing — correctness, API, integration, and regression tests, with local and CI run instructions.

Installation details

PyPI wheels include the native core for Windows, Linux, and macOS, so manual compilation is unnecessary. The standard installation includes visualization dependencies. See PAL on PyPI and distribution details.

Advanced users who only need a minimal headless installation can skip declared dependencies and install the core requirements explicitly:

python -m pip install --no-deps PythonAutomataLibrary
python -m pip install numpy numba

Note that --no-deps skips all declared dependencies, not only visualization. As a result, pip check may report missing dependencies.

To install examples in a different parent directory, pass its path, such as python -m PythonAutomataLibrary.ExampleInstaller ~/Documents or python -m PythonAutomataLibrary.ExampleInstaller "C:\\Users\\YourName\\Documents" on Windows. The installer creates PAL-Examples/ with runnable scripts and a Documentation/ directory of PDF manuals, without downloading from GitHub; it refuses to overwrite an existing PAL-Examples/ folder. Graphical examples require a desktop display.

Build from source

PAL currently loads its native library from the package directory. Build it before importing PAL.

Windows, from an x64 Visual Studio Developer Command Prompt:

python build_native.py

Linux/macOS:

python build_native.py

Then run the tests:

python -m pytest -q Testing

Architecture

NativeCore.py is the Python/Numba API and compilation layer. pal_native.c owns stable mutable simulation state and the workhorse native algorithms. Safe and fast PAL objects are selected at construction time, so compiled hot paths do not branch on safety mode.

The public API has dedicated regression coverage in Testing/API/; the full Testing/ tree is the integration gate.

Citation

If you use PAL in your research, please cite:

Bravo, R. R. (2026). Python Automata Library (PAL) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.23439298

For reproducibility, cite the specific release you used: PAL v1.0.0.

GitHub's Cite this repository button provides citation formats from CITATION.cff.

PAL is based on the Hybrid Automata Library (HAL). Please also acknowledge or cite HAL when its underlying ideas or algorithms are relevant to your work.

Metadata

Release files for PythonAutomataLibrary 1.0.7

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

Change of provenance

The repository or configuration that created these release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Source distribution (sdist)

Source distribution for PythonAutomataLibrary 1.0.7
File Size Uploaded Provenance Actions
pythonautomatalibrary-1.0.7.tar.gz 903.4 kB With provenance Details for pythonautomatalibrary-1.0.7.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for PythonAutomataLibrary 1.0.7
File Actions
pythonautomatalibrary-1.0.7-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for pythonautomatalibrary-1.0.7-py3-none-win_amd64.whl
pythonautomatalibrary-1.0.7-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details for pythonautomatalibrary-1.0.7-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
pythonautomatalibrary-1.0.7-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for pythonautomatalibrary-1.0.7-py3-none-macosx_11_0_arm64.whl
pythonautomatalibrary-1.0.7-py3-none-macosx_10_13_x86_64.whl Python 3 none macOS 10.13+ x86-64 Details for pythonautomatalibrary-1.0.7-py3-none-macosx_10_13_x86_64.whl

Total release size: 4.8 MB

Release files / pythonautomatalibrary-1.0.7.tar.gz

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL pythonautomatalibrary-1.0.7.tar.gz
Size 903.4 kB
Tags Source
SHA-256 checksum
How to use checksums
17d1c2afc2417acab808adcddfb0111d6e9a908936b36cb6cf0f18cbf3626aad
BLAKE2b-256 checksum
How to use checksums
aa4f6e9e9ad7b072407110be5ff7d8a5199b70ebbae7cc9fd1f8d4c805313141
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.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 Oct 20, 2026.

Transparency log

Release files / pythonautomatalibrary-1.0.7-py3-none-win_amd64.whl

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL pythonautomatalibrary-1.0.7-py3-none-win_amd64.whl
Size 1.0 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
003ab66daa3b971e60ab3233f061a70cfbe803c343b222eadc05e71882daad8e
BLAKE2b-256 checksum
How to use checksums
8cddc2dadf77fef7c58b0a7718a786386e2749ce62ac17a6a13d855b3ff36db0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.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 Oct 20, 2026.

Transparency log

Release files / pythonautomatalibrary-1.0.7-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL pythonautomatalibrary-1.0.7-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 980.9 kB
Tags Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
c5687f8bb989f622d45a102625aadf3a0a5b875e35ac322d33b15e0550f1a790
BLAKE2b-256 checksum
How to use checksums
f3483df3eda7d6998d8efe0b43424a8b77eeec9095cab7d690cafef83b6ddbec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.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 Oct 20, 2026.

Transparency log

Release files / pythonautomatalibrary-1.0.7-py3-none-macosx_11_0_arm64.whl

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL pythonautomatalibrary-1.0.7-py3-none-macosx_11_0_arm64.whl
Size 952.5 kB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b9215eca5860c94b745f583aa1e0b1a79e7d286311171d4f89aa0a502b37f98a
BLAKE2b-256 checksum
How to use checksums
47eef24c3638913e7d842f54b927a830f412e103b4c19abc731e813e007cd5f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.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 Oct 20, 2026.

Transparency log

Release files / pythonautomatalibrary-1.0.7-py3-none-macosx_10_13_x86_64.whl

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL pythonautomatalibrary-1.0.7-py3-none-macosx_10_13_x86_64.whl
Size 956.8 kB
Tags Python 3 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
b6fec976d0c269d700a8dad9c9dce08c3aa1030fc916066188a8a5a5f9b8773e
BLAKE2b-256 checksum
How to use checksums
f255af00a0ebb1e8a2ade30d6d54719b1e5af89d5fa733a6929366e4972c9c09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.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 Oct 20, 2026.

Transparency log

Security for PythonAutomataLibrary 1.0.7

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.

Change of provenance

The configuration that created this release differs from a previous release.

While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.

Select from 5 files

Attestation for pythonautomatalibrary-1.0.7.tar.gz

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 Oct 20, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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