Skip to main content

SAP Ariba + P2P analytics + process mining + GenAI insights + ESG scoring (open-source).

Project description

aribapulse

aribapulse is an open-source Python library for Procure-to-Pay (P2P) analytics, process mining, and AI-ready procurement insights, designed for modern SAP Ariba and Cloud ERP environments.

It enables procurement, finance, and engineering teams to understand real execution paths, detect bottlenecks, evaluate ESG risk, and generate decision-ready insights from transactional procurement data.


✨ Why aribapulse?

Enterprise procurement platforms generate massive volumes of transactional data, yet organizations often lack clear visibility into how procurement processes actually execute.

aribapulse bridges this gap by combining:

  • 📊 Process mining (what truly happens vs. designed workflows)
  • ⚙️ Procure-to-Pay execution analytics
  • 🌱 ESG & sustainability scoring hooks
  • 🤖 Generative-AI–ready insight generation
  • 🔌 Extensible SAP Ariba integration skeleton

All delivered as a lightweight, vendor-neutral, open-source Python package.


🚀 Key Features

🧾 Procure-to-Pay (P2P) Event Modeling

  • Standardized P2P lifecycle events
  • Case-based tracking (POs, invoices, suppliers)
  • Works with logs from SAP Ariba, ERP exports, or data lakes

🔍 Process Mining & Bottleneck Detection

  • Identify top execution variants
  • Measure lead times between process stages
  • Detect approval delays, invoice exceptions, and rework
  • Transparent, explainable analytics (no black-box ML)

🌱 ESG & Sustainability Analytics (Extensible)

  • Simple ESG scoring per supplier or category
  • Supports sustainability, compliance, and sourcing risk analysis
  • Designed to integrate with external ESG data providers

🤖 Generative-AI–Ready Insights

  • Converts analytics into structured, narrative insights
  • Provider-agnostic (no hard dependency on OpenAI, Vertex, etc.)
  • Ideal for dashboards, executive summaries, or chatbots

🧰 Command-Line Interface (CLI)

  • Analyze event logs directly from JSON
  • Generate insights without writing Python code
  • Useful for analysts, architects, and platform teams

📦 Installation

Install from PyPI:

pip install aribapulse

Requirements

  • Python 3.9+

Core Concepts

{
  "case_id": "PO-100045",
  "event_type": "INVOICE_APPROVED",
  "ts": "2026-02-06T10:15:00Z",
  "supplier_id": "SUP-7781",
  "amount": 12000,
  "currency": "USD"
}

Case ID

  • A case represents a complete procurement execution (PO, invoice, or composite business key).

⚡ Quick Start (CLI)

Step 1: Create an event log (events.json)

[
  {
    "case_id": "PO-1",
    "event_type": "PO_CREATED",
    "ts": "2026-02-01T09:00:00Z"
  },
  {
    "case_id": "PO-1",
    "event_type": "PAYMENT_SENT",
    "ts": "2026-02-02T14:00:00Z"
  },
  {
    "case_id": "PO-2",
    "event_type": "PO_CREATED",
    "ts": "2026-02-01T09:30:00Z"
  },
  {
    "case_id": "PO-2",
    "event_type": "PAYMENT_SENT",
    "ts": "2026-02-05T11:00:00Z"
  }
]

Step 2: Run analysis

aribapulse analyze-events events.json

Step 3: Output

  • Top process variants

  • Bottleneck cases

  • Executive-style insight summary

Programmatic Usage

Process Mining

from aribapulse.process_mining.mining import variants, lead_time
from aribapulse.p2p.events import P2PEvent

events = [P2PEvent.model_validate(e) for e in raw_events]

top_variants = variants(events)
lead_times = lead_time(events, "PO_CREATED", "PAYMENT_SENT")

ESG Scoring

from aribapulse.esg.scoring import simple_esg_score

score = simple_esg_score(
    supplier_id="SUP-7781",
    factors={
        "co2_intensity": 0.7,
        "labor_risk": 0.8,
        "compliance": 0.9
    }
)

GenAI-Ready Insights

from aribapulse.genai.insights import build_procurement_insights

insights = build_procurement_insights(
    top_variants=top_variants,
    slow_cases=[],
    esg_flags=[]
)

SAP Ariba Integration (Extensible)

from aribapulse.ariba.client import AribaClient from aribapulse.config import AribaConfig

config = AribaConfig.from_env() client = AribaClient(config)

- SAP Ariba APIs vary by tenant and configuration.
- This library intentionally avoids hard-coding proprietary endpoints.

### 🏗 Architecture Philosophy

- Vendor-neutral and extensible

- Explainable analytics (no opaque ML)

- Composable building blocks

- Production-friendly and testable

- Designed for enterprise-scale data

### Testing

pytest

- Tests focus on correctness of analytics and process mining primitives.

### Roadmap

- CSV and BigQuery ingestion helpers

- Advanced process mining (conformance, loops, rework)

- Supplier risk dashboards

- ESG benchmark integrations

- Optional LLM adapters (Vertex AI, OpenAI, Azure)

### Contributing

#### Contributions are welcome:

- New analytics modules

- ERP adapters (S/4HANA, Coupa, Oracle)

- Documentation improvements

- Sanitized real-world datasets

- Please open an issue or submit a pull request.

### License

MIT License

Copyright (c) 2026 Jagadeesh Vasanthada

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.



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

aribapulse-0.1.1.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

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

aribapulse-0.1.1-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aribapulse-0.1.1.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for aribapulse-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9f927b58e0da0c893d0d13c9a21da9cf5630894509b771128d093c54126b7888
MD5 784d4b026273570bf7b59d31e5dbff3e
BLAKE2b-256 54ebbcac199ed397c86091ba14f6365c3873ef79b4f7f78eb12d36a83baa6dbc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aribapulse-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for aribapulse-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1f01dc342683667d0df78ccb2302d0cb81f7678ea64ec760d53915f4e72513d8
MD5 fdcb14c90c4f5f9dc901e320616ccd03
BLAKE2b-256 5358e1df3d372a994e764350ccbd51439795c543b7feb2844bae3e92b3354068

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