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

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.1.1.tar.gz (11.4 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.1.1-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: petri_net_core-0.1.1.tar.gz
  • Upload date:
  • Size: 11.4 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.1.1.tar.gz
Algorithm Hash digest
SHA256 31b8f81831fd488c5edc4a76f0a00649fb0e16ada1348d95df072aae61e2f551
MD5 249c5da60db64fe26ab4fa3b89d41cef
BLAKE2b-256 dfe51d1b95618d96f8c53929dea267978cdfc82a8e6180725a4e2cd3708a91ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: petri_net_core-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 13.4 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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0937587c29e9eaec3c7e5f734ee037765c61b8fae77b3650df102008071d51c1
MD5 9bd0dd9d837f80db29643bb4c0dce08f
BLAKE2b-256 a1f66ebf4d5e404781bcddc21c3140a3fed4d732849fe01d8a787634b833530f

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