Open Process Intelligence (OPI)
Open-source, local-first process intelligence for everyone.
Mission
Make process intelligence accessible to small businesses, developers, researchers, and analysts without expensive enterprise software or mandatory cloud subscriptions.
Features
- Event log validation and normalization
- Automatic process discovery
- Directly Follows Graphs (DFG)
- Process variant analysis
- Throughput time analysis
- Potential bottleneck detection
- Process visualization
- Structured JSON reporting
Technology Stack
- Python
- Pandas
- DuckDB
- PM4Py
- Graphviz
- Apache Parquet
- Pytest
Installation
OPI requires Python 3.12.
After publication on PyPI:
pip install open-process-intelligence
Installation from source
git clone https://github.com/S4Good/open-process-intelligence.git
cd open-process-intelligence
python -m pip install .
Development installation
python -m pip install -e ".[dev,demo]"
Quick Start
Analyze a business process using a Pandas DataFrame.
import pandas as pd
from opi.analytics import analyze_performance, discover_variants
from opi.discovery import discover_process
events = pd.DataFrame(
{
"case_id": ["1", "1", "1", "2", "2", "2"],
"activity": [
"Order Received",
"Order Processed",
"Order Delivered",
"Order Received",
"Order Processed",
"Order Delivered",
],
"event_timestamp": pd.to_datetime(
[
"2026-01-01 08:00",
"2026-01-01 10:00",
"2026-01-01 14:00",
"2026-01-02 09:00",
"2026-01-02 12:00",
"2026-01-02 18:00",
],
utc=True,
),
}
)
print("=== Process Discovery ===")
print(discover_process(events))
print("\n=== Process Variants ===")
print(discover_variants(events))
print("\n=== Process Performance ===")
print(analyze_performance(events))
Expected Results
| Metric | Result |
|---|---|
| Cases | 2 |
| Events | 6 |
| Activities | 3 |
| Process variants | 1 |
| Average duration | 7.5 hours |
| Minimum duration | 6 hours |
| Maximum duration | 9 hours |
The example runs locally without external datasets, database servers or cloud services.
Input Data Format
OPI expects an event log containing three essential columns:
| Column | Description |
|---|---|
| case_id | Unique process instance identifier |
| activity | Name of the executed activity |
| event_timestamp | Timestamp of the event |
Examples of process instances include customer orders, support tickets, invoices and delivery requests.
Testing
python -m pytest -q
python -m ruff check .
Architecture
OPI separates its reusable analytical engine from industry-specific demonstration projects.
- src/opi: Core process intelligence library
- src/itsm: IT service management demonstration
- examples: Library usage examples
- tests: Automated functional tests
- reports: Analytical outputs
Verified Demonstration
- 10,000 synthetic IT incidents
- 70,000 source audit records
- 50,000 process events
- 28 passing automated tests
Roadmap
- Generic CSV and Excel import
- Interactive Process Explorer
- Advanced process analytics
- Conformance checking
- Object-centric process mining
- Business object modeling
- Process automation
- PyPI distribution
- Standalone desktop application
Principles
- Local-first processing
- Data privacy
- Transparent analytics
- Vendor independence
- Open-source development
Project Status
Early development (v0.1.0). Not yet published on PyPI or ready for production use.
Author
Shahrukh Khan
License
Open Process Intelligence is licensed under the GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later). See LICENSE and THIRD_PARTY_NOTICES.md for details.
Metadata
Release files for open-process-intelligence 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| open_process_intelligence-0.1.0.tar.gz | 22.4 kB | Without provenance | Details for open_process_intelligence-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| open_process_intelligence-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for open_process_intelligence-0.1.0-py3-none-any.whl |
Total release size: 44.1 kB
Release files / open_process_intelligence-0.1.0.tar.gz
| Download URL | open_process_intelligence-0.1.0.tar.gz |
|---|---|
| Size | 22.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ba7dd4a309c54048157f640c93a31bcefcba47fef3ee288b7223dc0f3e19cd22
|
|
BLAKE2b-256 checksum How to use checksums |
6ac99fd9288acabc854a4af4fea493bc8b363db8d70fca5853fe424ab840c256
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Release files / open_process_intelligence-0.1.0-py3-none-any.whl
| Download URL | open_process_intelligence-0.1.0-py3-none-any.whl |
|---|---|
| Size | 21.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6d01ffca9f92fb99e504994cbf7ef70a1345293f722e8ab889da0b4fd1152786
|
|
BLAKE2b-256 checksum How to use checksums |
fd15fd64b26315496be492e08e8eb293ea0a24565d4a8070ede6256ef7cf30b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Security for open-process-intelligence 0.1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.