Skip to main content

Petri net simulation and analysis framework

Project description

Petri Net Core

Core Petri net simulation and analysis framework for modeling discrete event systems.

About

This repository contains the core Petri net functionality for simulation and analysis. It provides:

  • Basic Petri Net Implementation (petrinet/)
  • Object Petri Net Support (object_petrinet/)
  • Validation and Schema Support
  • Testing Framework

Installation

From Source

git clone https://github.com/lhcnetop/petri_net.git
cd petri_net
pip install -e .

Development Installation

pip install -e .[dev]

Usage

from petrinet.pnet import PetriNet
from object_petrinet.opnet import ObjectPetriNet

# Create and use Petri nets

Testing

Run tests with:

# Run all tests
python -m unittest discover -p "*_tests.py" -v

# Run specific test files
python -m unittest tests/pnet_tests.py
python -m unittest tests/opnet_tests.py

Related Projects

License

Apache-2.0 License

Release & PyPI Publishing

PyPI publishing is now fully automated and only happens when you push a version tag (e.g., v0.2.0) to the repository. This ensures that only intentional releases are published.

How to release a new version:

  1. Bump the version in pyproject.toml.
  2. Commit and push your changes to main.
  3. Create and push a tag matching the new version:
    git tag v0.2.0
    git push origin v0.2.0
    
  4. The GitHub Actions workflow will build and publish the package to PyPI automatically.

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

petri_net_core-0.3.2.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

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

petri_net_core-0.3.2-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file petri_net_core-0.3.2.tar.gz.

File metadata

  • Download URL: petri_net_core-0.3.2.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for petri_net_core-0.3.2.tar.gz
Algorithm Hash digest
SHA256 e38ade4347d5294163e75c59a95d0673623b008747d81ea0a54abe02bd2a9745
MD5 9a7ef4c1e4fb165feea320c78b3a00b0
BLAKE2b-256 1ad527f306d482e77cb085e07b1cf51cbf5c5d8096e50f16d8be511a09c75c8d

See more details on using hashes here.

File details

Details for the file petri_net_core-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: petri_net_core-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for petri_net_core-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dd426748f9e669019b0389cac8645670d2479e3e7dfbd2a030c6ea46354843b2
MD5 c6bb20c07e37f608158dc05977a6becc
BLAKE2b-256 5279916b2342a6101bafb1d0d3d1b3bfc7ab3c2bcc4e5710d852604f61a81afb

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