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.

Release files for goldencheck-types 0.3.0

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

Source distribution (sdist)

Source distribution for goldencheck-types 0.3.0
File Size Uploaded
goldencheck_types-0.3.0.tar.gz 18.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for goldencheck-types 0.3.0
File Interpreter ABI Platform
goldencheck_types-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 42.9 kB

Release files / goldencheck_types-0.3.0.tar.gz

Download URL goldencheck_types-0.3.0.tar.gz
Size 18.4 kB
Tags Source
SHA-256 checksum
How to use checksums
413d306ed72c5e177d8034746a3ee6114cf8b25d6212d0667a9a25d849e453d4
BLAKE2b-256 checksum
How to use checksums
c06b858ccaacd7365774ed3b7e1547d293de5b7d7c5dd7cb1686302f6b135b87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / goldencheck_types-0.3.0-py3-none-any.whl

Download URL goldencheck_types-0.3.0-py3-none-any.whl
Size 24.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b995282417456b0ad72a7279297ff9eec27edf2d239a5a68713db58104d26165
BLAKE2b-256 checksum
How to use checksums
0b118649dbc803633efa17d8475e5077ad4ec8098ff904064204428b2c7b2bfe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.0

2 release files

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