Skip to main content

Civic Transparency PTag Specification

CI Status Docs: latest Security: bandit Python: 3.12+ License: MIT

Normative specification for privacy-preserving provenance tags (PTags) Includes JSON Schemas and OpenAPI definitions for transparency APIs.

Schemas

Schema Purpose Status
ptag.schema.json Per-post behavioral metadata Draft
ptag_series.schema.json Aggregated time PTagSeries API responses Draft
ptag_api.openapi.yaml REST API specification Draft

Implementation Flow

  1. Generate provenance tags when posts are created (per ptag.schema.json).
  2. Aggregate tags into time buckets (with k-anonymity ≥ 100).
  3. Expose aggregated data via REST API (per ptag_api.openapi.yaml).

See API documentation for complete specification.

Designed for Privacy

  • All responses maintain k-anonymity (k≥100).
  • No individual posts or users are exposed.
  • Rare categories (<5%) are grouped as "other".
  • Geographic data limited to country-level or 1M+ (ISO codes).

Three Generated Types:

CWE-based proactive catalog including PTag mappings:

Go Ecosystem:

Versioning

This specification follows semantic versioning. See CHANGELOG.md for version history.

License

MIT © Civic Interconnect

Metadata

Release files for civic-transparency-ptag-spec 0.2.5

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

Source distribution (sdist)

Source distribution for civic-transparency-ptag-spec 0.2.5
File Size Uploaded Provenance Actions
civic_transparency_ptag_spec-0.2.5.tar.gz 75.1 kB With provenance Details for civic_transparency_ptag_spec-0.2.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for civic-transparency-ptag-spec 0.2.5
File Interpreter ABI Platform Actions
civic_transparency_ptag_spec-0.2.5-py3-none-any.whl Python 3 none any Details for civic_transparency_ptag_spec-0.2.5-py3-none-any.whl

Total release size: 89.5 kB

Release files / civic_transparency_ptag_spec-0.2.5.tar.gz

Download URL civic_transparency_ptag_spec-0.2.5.tar.gz
Size 75.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6b3aa85ce57e5b2bc8be46d895be11444bc420c2b6e11dfe9e5e40c54cb88c62
BLAKE2b-256 checksum
How to use checksums
89779ad622b7fb032ae20998b0a8df3ae5045e7bdb0438abc8113a4e75651b4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Oct 2, 2025.

Transparency log

Release files / civic_transparency_ptag_spec-0.2.5-py3-none-any.whl

Download URL civic_transparency_ptag_spec-0.2.5-py3-none-any.whl
Size 14.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a3d91fc75ec8e2c3098ffb5b6c8d8a65e85cd9e503a54bfb8ed49bd1e77b1067
BLAKE2b-256 checksum
How to use checksums
c3b1440d0eaf6c1aa4ee0a1a137bdbaf9874316a5e0f6175b6b25a66586e9b7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Oct 2, 2025.

Transparency log

Security for civic-transparency-ptag-spec 0.2.5

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 civic_transparency_ptag_spec-0.2.5.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 Oct 2, 2025.

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.

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