Skip to main content

A library for W3C Provenance Data Model supporting PROV-JSON and PROV-XML

Project description

Latest Release Build Status Coverage Status Wheel Status Downloads Supported Python version License

A library for W3C Provenance Data Model supporting PROV-JSON and PROV-XML import/export

Features

  • An implementation of the W3C PROV Data Model in Python.

  • In-memory classes for PROV assertions, which can then be output as PROV-N

  • Serialization and deserializtion support: PROV-JSON and PROV-XML.

  • Exporting PROV documents into various graphical formats (e.g. PDF, PNG, SVG).

Uses

This package is used extensively by ProvStore, a respository for provenance documents.

History

1.3.0 (2015-02-03)

  • Python 3.3 and 3.4 supported

  • Updated prov-convert script to support XML output

  • Added missing test JSON and XML files in distributions

1.2.0 (2014-12-19)

  • Added: prov.graph.prov_to_graph to convert a ProvDocument to a MultiDiGraph

  • Added: PROV-N serializer

  • Fixed: None values for empty formal attributes in PROV-N output (issue #60)

  • Fixed: PROV-N representation for xsd:dateTime (issue #58)

  • Fixed: Unintended merging of Identifier and QualifiedName values

  • Fixed: Cloning the records when creating a new document from them

  • Fixed: incorrect SoftwareAgent records in XML serialization

1.1.0 (2014-08-21)

  • Added: Support for PROV-XML serialization and deserialization

  • A ProvRecord instance can now be used as the value of an attributes

  • Added: convenient assertions methods for ProvEntity, ProvActivity, and ProvAgent

  • Added: ProvDocument.update() and ProvBundle.update()

  • Fixed: Handling default namespaces of bundles when flattened

1.0.1 (2014-08-18)

  • Added: Default namespace inheritance for bundles

  • Fixed: NamespaceManager.valid_qualified_name did not support prov.model.XSDQName

  • Added: Convenience prov.read method with a lazy format detection

  • Added: Convenience plot method on the ProvBundle class (requiring matplotlib).

  • Changed: The previous add_record() method renamed to new_record()

  • Added: The new add_record() function which takes one argument, a ProvRecord, has been added

  • Fixed: Document flattening

  • Added: hash function added to ProvRecord (at risk: to be removed as ProvRecord is expected to be mutable)

  • Added: extra_attributes added to mirror existing formal_attributes

1.0.0 (2014-07-15)

  • The underlying data model has been rewritten and is incompatible with pre-1.0 versions.

  • References to PROV elements (i.e. entities, activities, agents) in relation records are now QualifiedName instances.

  • A document or bundle can have multiple records with the same identifier.

  • PROV-JSON serializer and deserializer are now separated from the data model.

  • Many tests added, including round-trip PROV-JSON encoding/decoding.

  • For changes pre-1.0, see CHANGES.txt

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

prov-1.3.0.tar.gz (89.7 kB view details)

Uploaded Source

Built Distribution

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

prov-1.3.0-1-py2.py3-none-any.whl (236.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file prov-1.3.0.tar.gz.

File metadata

  • Download URL: prov-1.3.0.tar.gz
  • Upload date:
  • Size: 89.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for prov-1.3.0.tar.gz
Algorithm Hash digest
SHA256 157662db2fe2dbb3ab71886097764c44b1e82eb497e4251c78c81c5cbb231ee3
MD5 509bd582c711196107cac9d4ef7fe020
BLAKE2b-256 7759ef3cca43968cdba679234fe033e1ff41561b37a96e8e0a79351823d87d3f

See more details on using hashes here.

File details

Details for the file prov-1.3.0-1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for prov-1.3.0-1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0be680f7890627f3c2a875d165f8ef3e8dbd195c86e72fed10c6a491c2b3402f
MD5 47ac9f891031ccd1445156afe8ef3f89
BLAKE2b-256 29168f2ae7f974476ac32a7a8a8c86e44147db01560344fc21b0398989cd6fe2

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