Skip to main content

Streamline your registry data workflow

Project description

RegiStream Python Package

A Python package for streamlining registry data workflows.

Installation

pip install registream

Main Features

Auto-Labeling

The autolabel functionality provides powerful tools for working with labeled data:

  • Pandas Integration: Add labels directly to pandas DataFrames with the .autolabel() method
  • Variable Labels: Add descriptive labels to your DataFrame columns
  • Value Labels: Map numeric codes to human-readable categorical values
  • Smart Display: View your data with human-readable labels instead of raw codes
  • Label Persistence: Labels stay with your data through operations like filtering and selection
import pandas as pd
import registream

# Load your data
df = pd.read_csv('your_data.csv')

# Add labels to your DataFrame
df.autolabel(domain='scb', lang='eng')

# Access the labeled view of your data
df.lab.head()

# Get all variable labels
var_labels = df.get_variable_labels()

# Get all value labels
val_labels = df.get_value_labels()

# Set custom variable labels
df.set_variable_labels({'column_name': 'My Custom Label'})

# Set custom value labels
df.set_value_labels('column_name', {1: 'Yes', 0: 'No'})

# Search metadata
results = df.meta_search('pattern')

Data Lookup

The lookup functionality makes it easy to find and understand registry data:

  • Variable Lookup: Find detailed information about specific variables
  • Multi-domain Support: Look up information across different data domains
  • Multilingual: Get information in different languages (currently supports English and Swedish)
from registream import lookup

# Look up information about specific variables
lookup(['carb', 'random_var', 'yrkarbtyp', 'kaross'], domain='scb', lang='eng')

# Look up a single variable
lookup('carb')

License

BSD 3-Clause License

Copyright (c) 2025, Jeffrey Clark & Jie Wen

See LICENSE file for complete license text.

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-1.0.0.tar.gz (17.9 kB view details)

Uploaded Source

Built Distribution

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

registream-1.0.0-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

Details for the file registream-1.0.0.tar.gz.

File metadata

  • Download URL: registream-1.0.0.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.10

File hashes

Hashes for registream-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f2e0e513975d4b575d5b951c9050bcb8f9599fff275db0871b6b003d145663c0
MD5 a0bf2606ffe84ed94854d6d189037cd5
BLAKE2b-256 d2cb48c849299aaa4acd2f9cc93d25334636e784884886ae4adf4fd18d402393

See more details on using hashes here.

File details

Details for the file registream-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: registream-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 16.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.10

File hashes

Hashes for registream-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cfc2032383bc013eb9078de6ca14e7d9709b585ca7a1639d3f7a0dddd816a45b
MD5 06562963c741dee1fc85bb2e2edccb89
BLAKE2b-256 269df4af82d4a0b689a95fdcf2b3732f44ec5eb5a3ab448122546120ae61794a

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