Skip to main content

goldencheck-types

Shared canonical field-type registry for the Golden Suite — a single source of truth for "what does the field type email mean?" (name hints, value signals, confidence thresholds) across every suite package and both languages.

What it is

GoldenCheck profiles a dataset and emits inferred field types; downstream packages consume them:

  • Producer: goldencheck (data-quality profiling).
  • Consumers: goldenpipe (stage I/O contracts), infermap (target schema inference), and the TypeScript mirror goldencheck-types (cross-language, over a JSON wire).

Keeping the type vocabulary in one small, dependency-light package lets the Python and TypeScript sides produce byte-identical types, and lets consumers depend on the vocabulary without pulling in the full profiler.

Install

pip install goldencheck-types

Only requires pyyaml.

Usage

from goldencheck_types import load_field_types, FieldType, InferredSchema

# Load the bundled canonical field types (16 domain packs: generic + 15 verticals)
field_types = load_field_types()

# Or inspect a single type
email = field_types["email"]
print(email.name_hints, email.confidence_threshold)

Public API (goldencheck_types): SchemaVersion, FieldType, InferredSchema, load_field_types, and the supporting Pydantic models in types.py.

Schema versioning

Every emitted type carries a schema_version. Consumers must check it and refuse unknown versions rather than silently degrade. The version bumps when a required field is added to FieldType, an enum gains a value, or the value_signals wire shape changes.

Cross-language parity

The TypeScript sibling at packages/typescript/goldencheck-types ships the same FieldType / InferredSchema interfaces and the same bundled domain packs, synced byte-for-byte from one canonical source. This is the one Golden Suite package where the TypeScript side keeps snake_case field names, so the producer YAML and consumer JSON pass through unchanged.

License

MIT. Part of the Golden Suite; see the monorepo for the full project.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

goldencheck_types-0.3.0.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

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

goldencheck_types-0.3.0-py3-none-any.whl (24.6 kB view details)

Uploaded Python 3

File details

Details for the file goldencheck_types-0.3.0.tar.gz.

File metadata

  • Download URL: goldencheck_types-0.3.0.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for goldencheck_types-0.3.0.tar.gz
Algorithm Hash digest
SHA256 413d306ed72c5e177d8034746a3ee6114cf8b25d6212d0667a9a25d849e453d4
MD5 67657a3b16f5eee4e51f3925cce381c8
BLAKE2b-256 c06b858ccaacd7365774ed3b7e1547d293de5b7d7c5dd7cb1686302f6b135b87

See more details on using hashes here.

File details

Details for the file goldencheck_types-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for goldencheck_types-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b995282417456b0ad72a7279297ff9eec27edf2d239a5a68713db58104d26165
MD5 348e2aa634c649b5be7c0c3c7993c6d1
BLAKE2b-256 0b118649dbc803633efa17d8475e5077ad4ec8098ff904064204428b2c7b2bfe

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 Sentry Error logging StatusPage Status page