Skip to main content

prov

Latest Release License CI Status Coverage Status Codacy Badge DOI Supported Python version

A Python implementation of the W3C PROV Data Model, with import and export in PROV-N, PROV-JSON, PROV-JSONLD, PROV-XML and PROV-O (RDF). It is MIT-licensed, needs Python 3.10.7 or later, and is documented at https://prov.readthedocs.io/.

Install

pip install prov

PROV-JSON, PROV-N and PROV-JSONLD need nothing else; PROV-XML, PROV-O and the graph tools each need an extra, listed on the installation page.

Quick start

import prov.model as pm

doc = pm.ProvDocument()
doc.set_default_namespace("https://example.org/")
doc.entity("report")
doc.activity("analysis")
doc.wasGeneratedBy("report", "analysis")
print(doc.get_provn())
doc.serialize("report.json")
document
  default <https://example.org/>

  entity(report)
  activity(analysis, -, -)
  wasGeneratedBy(report, analysis, -)
endDocument

The tutorial continues from here.

Features

  • In-memory classes for every PROV-DM record type, readable from and printable as PROV-N.
  • Serialization to and from PROV-N, PROV-JSON, PROV-JSONLD, PROV-XML and PROV-O (RDF).
  • Export to graphical formats such as PDF, PNG and SVG through Graphviz.
  • Conversion to and from a NetworkX MultiDiGraph.
  • PROV-N syntax highlighting through a Pygments lexer, with the pygments extra.
  • Command-line tools, prov-convert and prov-compare.

GitHub lists the public repositories that depend on this package. What's new in 3 summarises the 3.x line, and the announcement post explains the move. ROADMAP.md lists the planned releases, SECURITY.md the supported versions, and the issue tracker takes feedback.

Metadata

Release files for prov 3.3.1

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

Source distribution (sdist)

Source distribution for prov 3.3.1
File Size Uploaded Provenance Actions
prov-3.3.1.tar.gz 530.8 kB With provenance Details for prov-3.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for prov 3.3.1
File Interpreter ABI Platform Actions
prov-3.3.1-py3-none-any.whl Python 3 none any Details for prov-3.3.1-py3-none-any.whl

Total release size: 709.6 kB

Release files / prov-3.3.1.tar.gz

Download URL prov-3.3.1.tar.gz
Size 530.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b2807fef9ebff3c017dc27537a75029e27c7cfceab68cdc1a2fc8e92a81cb458
BLAKE2b-256 checksum
How to use checksums
180a10f1edf28f663b1f89b2e95500b79fba0c188d6e5f2cdd02c3c98147df7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / prov-3.3.1-py3-none-any.whl

Download URL prov-3.3.1-py3-none-any.whl
Size 178.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eff788ad468540646142fa46bc186188fef45ef3cf9ec80bcb356f1cc689979a
BLAKE2b-256 checksum
How to use checksums
4c3195ce10eaac296025321d0de263feb10c2e28c093d584c7d5ab595129944b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Security for prov 3.3.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for prov-3.3.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

3.3.1 This release

2 release files Full 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