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.11 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.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 prov 3.3.0
File Size Uploaded Provenance Actions
prov-3.3.0.tar.gz 527.4 kB With provenance Details for prov-3.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 703.9 kB

Release files / prov-3.3.0.tar.gz

Download URL prov-3.3.0.tar.gz
Size 527.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9a675b3b85f98c55c2ab8130e910fa81cf4a06942603d9f2a93a259f348d8d47
BLAKE2b-256 checksum
How to use checksums
c31d124e0228a8dfe1cabe53f574a0a2e00e5beda450dc0c066090ac19dd117b
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 8, 2026.

Transparency log

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

Download URL prov-3.3.0-py3-none-any.whl
Size 176.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7c4d119b6c88173a3673242ce7cf8e1898823ee2fdc40752777eed6ecbdf4d41
BLAKE2b-256 checksum
How to use checksums
56c045cd77a9a69e546499281a1fbfb2a19c8a45d4ea4fbcaf58277917884b98
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 8, 2026.

Transparency log

Security for prov 3.3.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.

Full provenance

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

Select from 2 files

Attestation for prov-3.3.0.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 8, 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.0 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