Skip to main content

procurelytics-ai

procurelytics-ai is an open-source Python library that delivers AI-powered procurement analytics for modern procurement and ERP environments.

It is designed to help teams transform raw procurement data into:

  • Predictive sourcing signals (ML-based supplier health / risk scoring)
  • Spend optimization intelligence (category/supplier consolidation hooks)
  • Process mining foundations (variants, lead-time patterns; extensible)
  • ESG & sustainability scoring (supplier responsibility insights)
  • Responsible AI governance checks (data quality and representation proxy checks)
  • GenAI-ready prompts (provider-agnostic prompts for copilots and LLMs)

The library is vendor-neutral and works with exports from SAP/ERP systems, procurement platforms, and analytics warehouses.


Why procurelytics-ai?

Procurement teams often face these challenges:

  • Lack of visibility into supplier performance risks
  • Difficulty detecting where procurement cycles slow down
  • ESG and compliance pressures with inconsistent data
  • A need for executive-friendly insights, not just raw reports

procurelytics-ai provides explainable analytics primitives plus AI-ready outputs so you can:

  • prioritize supplier strategies,
  • reduce risk,
  • improve resilience, and
  • accelerate decision-making.

Installation

Install from PyPI:

pip install procurelytics-ai

Requirements

  • Python 3.9+

Quick Start (CLI)

1) Prepare a supplier dataset

Supported formats:

  • .csv

  • .json

  • .jsonl

Recommended columns:

  • supplier_id (required)

  • esg_score (0..100)

  • on_time_rate (0..1)

  • defect_rate (0..1)

  • country (optional)

  • category (optional)

Example CSV:

supplier_id,country,category,esg_score,on_time_rate,defect_rate
SUP-1,US,IT,88,0.93,0.01
SUP-2,IN,Hardware,72,0.84,0.03
SUP-3,US,IT,55,0.78,0.05

2) Run supplier scoring

procurelytics score-suppliers suppliers.csv

You will get:

  • top supplier ranking (health score)

  • governance findings (data quality + representation proxy checks)

  • a provider-agnostic GenAI prompt you can paste into any LLM/copilot

Programmatic Usage

Supplier feature engineering + ML scoring

import pandas as pd
from procurelytics_ai.ml.features import build_supplier_features
from procurelytics_ai.ml.predict import train_and_score_suppliers

df = pd.read_csv("suppliers.csv")
X = build_supplier_features(df)
ranked = train_and_score_suppliers(X)

print(ranked.head(10))

ESG scoring (optional)

from procurelytics_ai.esg.scoring import weighted_esg_score

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

print(score.score, score.rationale)

Responsible AI / Governance

  • procurelytics-ai includes lightweight governance checks to support safer analytics:

Data quality report

  • warns on high missingness

  • flags invalid ESG score ranges

Representation proxy check

  • warns when one group dominates the dataset (e.g., one country is 80%+)

  • These checks are intentionally lightweight and transparent—useful for production workflows without heavy dependencies.

GenAI Support

  • procurelytics-ai generates a provider-agnostic GenAI prompt, so you can feed results into:

  • internal copilots

  • chatbots

  • LLM tools (OpenAI / Vertex / Azure / local models)

  • This package does not force any vendor lock-in.

Testing

pytest

Roadmap

Planned enhancements:

  • CSV/BigQuery ingestion utilities

  • Spend optimization modules (leakage detection, consolidation suggestions)

  • Process mining expansion (rework loops, conformance scoring)

  • Optional LLM adapters (kept modular)

Contributing

Contributions are welcome:
  • new analytics modules

  • data adapters for ERP platforms

  • examples and notebooks

  • documentation improvements

MIT 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.

Metadata

Release files for procurelytics-ai 0.1.0

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

Source distribution (sdist)

Source distribution for procurelytics-ai 0.1.0
File Size Uploaded Provenance
procurelytics_ai-0.1.0.tar.gz 7.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for procurelytics-ai 0.1.0
File Interpreter ABI Platform
procurelytics_ai-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 20.6 kB

Release files / procurelytics_ai-0.1.0.tar.gz

Download URL procurelytics_ai-0.1.0.tar.gz
Size 7.8 kB
Tags Source
SHA-256 checksum
How to use checksums
dd19c3a6cbe5c4b335cd9d1db846fdc2ec47d077b92a7cfb69883b08d44d1af9
BLAKE2b-256 checksum
How to use checksums
75c4e8b8d281c15492f951a647392be1528ab5aca534f004f39799bec0187022
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release files / procurelytics_ai-0.1.0-py3-none-any.whl

Download URL procurelytics_ai-0.1.0-py3-none-any.whl
Size 12.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
25d08164b580d2c2e1b382e53d6075d878542cd47c7396b9ac3e2dd1a19fe8f4
BLAKE2b-256 checksum
How to use checksums
d44e2ff98de44fffe81e8b280240e550d8c0384d9036863c88db04f281692f14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Security for procurelytics-ai 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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