art30-emit
Put the OpenLineage Art. 30 processing facet on the wire from code that emits nothing today.
dbt, Airflow, Spark and Flink all emit OpenLineage, and none of them emits
purpose or legal_basis. Everything else a record of processing activities needs
— what ran, what it read, what it wrote, when, and in some cases what the data is —
can be evidenced from what an organisation already runs. Those two fields cannot, so
they end up asserted in a spreadsheet beside the code and drift from it within a
quarter.
This package emits them from the thing that ran, for the systems nobody instruments: a Lambda, a stored procedure behind a shell wrapper, a cron job, a notebook that matters more than it should.
Install
pip install art30-emit
One runtime dependency, openlineage-python. Python 3.12 or later.
Use it as a context manager
from art30_emit import declare
with declare(
"acme.crm/consent-sync",
purpose="customer-administration",
legal_basis="contract",
reads=["warehouse/crm_raw.consent_events"],
writes=["warehouse/crm_curated.consent_state"],
classify={
"warehouse/crm_curated.consent_state": {
"data_category": "contact",
"subject_type": "customer",
"residency": "eu",
"retention": "P7Y",
}
},
):
sync_consent()
START is emitted on entry and COMPLETE on exit. An exception emits FAIL with
the error message and stack trace, then continues to propagate: a record of what
happened must not change what happens.
Use it as a command wrapper
The wrapper reaches work an import cannot — a stored procedure called from a shell script, an SSIS step, a binary somebody compiled in 2014.
art30-emit \
--job acme.billing/monthly-invoices \
--purpose contract-performance \
--legal-basis contract \
--reads warehouse/billing_raw.usage \
--writes warehouse/billing_curated.invoices \
--tag warehouse/billing_curated.invoices:data_category=financial \
--tag warehouse/billing_curated.invoices:subject_type=customer \
-- ./run-invoicing.sh
The command runs unchanged and its exit status is forwarded. A non-zero status emits
FAIL rather than COMPLETE, so a record built from these events can tell an
auditor which runs finished.
Where the events go
Wherever the OpenLineage client is configured to send them, through
OPENLINEAGE_URL or OPENLINEAGE_CONFIG as that client documents. A transport this
package invented would be one more thing to trust.
For a first run, with neither set, ART30_EMIT_FILE appends the events to a file so
you can read what was produced:
ART30_EMIT_FILE=events.jsonl art30-emit --job demo/hello --purpose demonstration \
--legal-basis consent -- echo hello
Naming the task that launched this job
When OPENLINEAGE_PARENT_ID is set to namespace/job/run_id, every event carries
the standard parent run facet naming that job and run, and root too if
OPENLINEAGE_ROOT_PARENT_ID is set — the same two variables dbt-ol reads, so an
orchestrator already configured for dbt, such as an Airflow task using its
lineage_parent_id macro, needs nothing new to be named as the parent here. A
value not in that three-part form is refused with a sentence naming the shape,
rather than producing a facet with some of its fields missing. Neither variable
set, nothing changes on the wire.
Two rules it keeps
It emits the published facet, not one of its own. The schema is
openlineage-art30-processing-facet.json,
generated from a governance model rather than written beside it, and the
classification rides on the standard tags dataset facet (spec 1-0-0) rather than a
private key. A second spelling of the same fields would be a private vocabulary
wearing a standard's clothes.
It never decides anything. No validation against a compiled list of purposes, no guessing a legal basis from a job name, no default that fills a field nobody declared. What the caller says is what goes on the wire, and what the caller does not say is absent — which is the state a record has to be able to report, because nobody said and we say it is none are different answers to an auditor.
What reads it
Any governance layer that reads OpenLineage. Qedro
turns these events into a GDPR Art. 30 record of processing activities, and
pipeline-runtime emits the same
facet from pipelines it executes — this is the second implementation of that schema
rather than a second definition of it.
Licence
Apache-2.0.
Metadata
Release files for art30-emit 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| art30_emit-0.2.0.tar.gz | 27.7 kB | With provenance | Details for art30_emit-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| art30_emit-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for art30_emit-0.2.0-py3-none-any.whl |
Total release size: 43.2 kB
Release files / art30_emit-0.2.0.tar.gz
| Download URL | art30_emit-0.2.0.tar.gz |
|---|---|
| Size | 27.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f9cbe31e157cb39a95324dd62eb71c693e0fca8c63be3cd3b6a3dfd85ea90ad4
|
|
BLAKE2b-256 checksum How to use checksums |
9d9732df059dff563ecc0270c18b37046901995601e250f79d803a1dcc69643a
|
| 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 21, 2026.
Transparency logRelease files / art30_emit-0.2.0-py3-none-any.whl
| Download URL | art30_emit-0.2.0-py3-none-any.whl |
|---|---|
| Size | 15.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0d8670d4c44b5742eec1d27a8a102bc13b909dcfb3339a0f40206a9254c1ff9b
|
|
BLAKE2b-256 checksum How to use checksums |
dacad0213db18180837e88129563624689507d17d60fd96bdc4f3e320935e6b1
|
| 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 21, 2026.
Transparency logSecurity for art30-emit 0.2.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.
Attestation for art30_emit-0.2.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 21, 2026.
Transparency logA 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.