Skip to main content

Civic Transparency PTag specification schemas

Project description

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).

Related Repositories

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

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

civic_transparency_ptag_spec-0.2.4.tar.gz (74.8 kB view details)

Uploaded Source

Built Distribution

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

civic_transparency_ptag_spec-0.2.4-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file civic_transparency_ptag_spec-0.2.4.tar.gz.

File metadata

File hashes

Hashes for civic_transparency_ptag_spec-0.2.4.tar.gz
Algorithm Hash digest
SHA256 72250673c06e1c7c9c716b9729f8feff7555d7c7652fd990abf20b16aef66b8e
MD5 e4e253a69ecdf906a125a4ea6c15e056
BLAKE2b-256 d36886f204f8f8f867128fe076f65a819cfd9ab6b229ed0e6ac6760d229a6e48

See more details on using hashes here.

Provenance

The following attestation bundles were made for civic_transparency_ptag_spec-0.2.4.tar.gz:

Publisher: release.yml on civic-interconnect/civic-transparency-ptag-spec

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file civic_transparency_ptag_spec-0.2.4-py3-none-any.whl.

File metadata

File hashes

Hashes for civic_transparency_ptag_spec-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7738c4ea37ed1c5b4c3cc7fd2d67f7db81848fd12b48422e348b0ae0e7d372ab
MD5 595e95876d99c59d3ef656876b17a4f8
BLAKE2b-256 7101bab57e6ccd11fb5c1e09e945df70d6f47c0208fbacf2fe6356913ce27e29

See more details on using hashes here.

Provenance

The following attestation bundles were made for civic_transparency_ptag_spec-0.2.4-py3-none-any.whl:

Publisher: release.yml on civic-interconnect/civic-transparency-ptag-spec

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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