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
- Jeffrey Clark — jeffrey@registream.org
- Jie Wen — jie@registream.org
License
MIT.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file registream_core-3.0.0.tar.gz.
File metadata
- Download URL: registream_core-3.0.0.tar.gz
- Upload date:
- Size: 69.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0638de317bf47c2815e51b35163a01aafa452815ad45c139edf85b9cf69be073
|
|
| MD5 |
80d80f9e01cf76f3f4303e8e9bce0c21
|
|
| BLAKE2b-256 |
ee85635e5daf50cba6773f500a1e9ef503a5537e678df29fd5efdbfdbd7d9d80
|
File details
Details for the file registream_core-3.0.0-py3-none-any.whl.
File metadata
- Download URL: registream_core-3.0.0-py3-none-any.whl
- Upload date:
- Size: 27.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
366525448942f52aea650f159f546b5ea03f0330eb44abba2026618a3acee830
|
|
| MD5 |
94c913810055ce2dfd973f2d6f6ac9da
|
|
| BLAKE2b-256 |
139cbe7635d05f197458d2907aab2b6c68891abe7536ca01d6a889984b94bb05
|