Skip to main content

Prenacs

Prenacs is a system, which allows to run batch computations of attribute values for sets of entities, and to store the computation results in a database, alongside metadata which allows to track the data provenance.

The name is an acronym for "PRovenance-tracking ENtity Attribute Computation and Storage system".

Key concepts

Entities are thereby object of any kind, characterized by an identifier, which allows distinguishing the object from other objects of the same kind. For each entity, ProBatch allows to compute the values of attributes.

Attribute are properties of the entity. Anything whose value can be determined using a computation (in a general sense, thus e.g. also obtaining the value from an external data source) is an attribute. Each attribute may consist of a single value (scalar attribute) or or multiple values (composite attribute). The attribute system is open and flexible, i.e. new attributes can be added at any moment.

ProvBatch allows to store a single instance of each attribute for an entity: that is, it is not meant to store multiple measurements of a value or to store a journal of previous attribute computation results.

Alongside the computation results, ProBatch allows to track the provenance of attribute values. For achieving this, the code for attribute value computation must be implemented in form of a computation plugin. Multiple plugins may be available for computing the same attribute. A plugin may compute one or multiple attributes. Plugins contain the code for the attribute computation, as well as metadata, describing the input, output, supported paramaters and methods and implementation notes. Whenever a plugin code changes, a new plugin version number is assigned.

Batch computation metadata instances are identified by an unique identifier (UUID) and include a reference to a given plugin (plugin identifier and version number), alongside information such as the computation parameters, timestamps, identifier of the user starting the computation, and key system data. Thus, storing the batch computation UUIDs alongside with computation results, ProvBatch allows to keep track of the data provenance.

Related libraries

Prenacs has been developed as part of an ecosystem of Python libraries, including:

  • multiplug, which implements the infrastructure for the plugin system
  • attrtables, which implements the infrastructure for the storage of attribute values and metadata
  • snacli, which is used for implementing double-purpose scripts, callable interactively from the command line, as well as inside a Snakemake pipeline

Usage

The usage of the library is explained in the user manual.

Metadata

Release files for prenacs 1.2

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

Source distribution (sdist)

Source distribution for prenacs 1.2
File Size Uploaded
prenacs-1.2.tar.gz 35.8 kB Details

Built distribution (wheel)

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

Total release size: 63.1 kB

Release files / prenacs-1.2.tar.gz

Download URL prenacs-1.2.tar.gz
Size 35.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8efda18223d9c902549d6444db5d42583e45af6e27c8091bf1d8c4e5c6385dc7
BLAKE2b-256 checksum
How to use checksums
fd3b84ced438d3b58f524c1a88232049224ee75863a10bb5dfe3ea59794ee419
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5

Release files / prenacs-1.2-py3-none-any.whl

Download URL prenacs-1.2-py3-none-any.whl
Size 27.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3a69ab0d5c827d97a6ef0b518cbf1626be3ca73ff1d8543f4eaabcf4c54a30a9
BLAKE2b-256 checksum
How to use checksums
67f5aba5750749913322b251c2b2987e63ae5ebecf9ede98e4a95985f2ceac11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.5

Release history Release notifications | RSS feed

This release

1.2 This release

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0

2 release files

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