Skip to main content

RegiStream Python core: config, telemetry, metadata cache, schema validator.

Project description

registream-core

Core shared primitives for the RegiStream ecosystem: config, citation, metadata cache, schema validator, telemetry, and the first-run wizard.

This package is not the user-facing surface. Most users install registream-autolabel (which declares this as a dependency) or the meta-package registream. Install registream-core directly only when you want the underlying primitives without the labeling accessor on top.

Full documentation: https://registream.org/docs.

Install

pip install registream-core

Requires Python 3.11 or later.

Command-line

python -m registream version      # installed core version
python -m registream info         # config snapshot + cache directory
python -m registream cite         # project citation (APA + BibTeX)

Python API

from registream.citation import cite, cite_bibtex   # versioned APA / BibTeX
from registream.info import info                    # config + environment snapshot (str)
from registream.metadata import load_bundle         # load a 5-file metadata bundle
from registream.schema import Manifest, SchemaError, SchemaVersionError

Every function has a docstring; help(registream.citation) (or ?cite in Jupyter) returns the reference inline.

What's in the box

Module Role
registream.citation Project APA + BibTeX, sourced from the ecosystem-wide citations.yaml.
registream.info Configuration snapshot (matches Stata registream info).
registream.config TOML-backed shared config (~/.registream/config_python.toml).
registream.metadata LabelBundle + load_bundle(domain, lang): reads the 5-file schema v2 bundle from disk.
registream.schema Manifest dataclass, schema-version gating, CSV validators.
registream.dirs Platform-appropriate user-data directory resolution.
registream.updates Heartbeat + pip install --upgrade check (no data beyond version strings).
registream.usage Local-only usage log (usage_python.csv in the user-data directory).
registream.first_run One-time setup wizard (Offline / Standard / Full mode).

Citation

Clark, J. & Wen, J. (2024). RegiStream: Infrastructure for Register Data Research. https://registream.org

registream.citation.cite() returns the versioned form; cite_bibtex() returns the BibTeX entry. Both pull their data from citations.yaml in the RegiStream core repo; single source of truth for all client ports (Stata, Python, R).

Authors

License

MIT.

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

registream_core-3.0.2.tar.gz (69.8 kB view details)

Uploaded Source

Built Distribution

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

registream_core-3.0.2-py3-none-any.whl (28.2 kB view details)

Uploaded Python 3

File details

Details for the file registream_core-3.0.2.tar.gz.

File metadata

  • Download URL: registream_core-3.0.2.tar.gz
  • Upload date:
  • Size: 69.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.19

File hashes

Hashes for registream_core-3.0.2.tar.gz
Algorithm Hash digest
SHA256 ae19c2ca0d31ef3896694e0292d9d5b31ef52d57e616a1e24d279cc41f889f0e
MD5 d8886ba5356183c38cc9119b3c44be05
BLAKE2b-256 4e209c9b4b3a703f01b8f7179a95e8625e1ccc203c8e78c36d5072ffb1f841b4

See more details on using hashes here.

File details

Details for the file registream_core-3.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for registream_core-3.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0d4af004d909b5265b83f1a75ed4ba9958a0e7443d089570ec0a16504c9688b0
MD5 242807936fa34286ebfadd3ccd7d0990
BLAKE2b-256 73fa7c343811ed2ec30340770906f2665417be05ea664fd7c405c2cb50cb30db

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