Skip to main content

A library to read Translation Process Research Database (TPR-DB) tables from Google Cloud Storage.

Project description

tprdbreader

PyPI Python License: MIT

A tiny helper that fetches Translation Process Research Database (TPR-DB) tables from Google Cloud Storage and returns them as Pandas DataFrames—no manual downloads, no local staging.


Why tprdbreader?

  • One function, one line:
    readTPRDBtable_GCP(["ACS08", "AR20"], ext="kd")
  • Streams directly into Pandas: handles multiple studies and large Tables without blowing up RAM.
  • MIT-licensed & lightweight: only two runtime deps—pandas and google-cloud-storage.

Installation

pip install tprdbreader          # requires Python 3.6+

Quick-start

from tprdbreader import readTPRDBtable_GCP

# Pull all *.kd files (Keystroke Burst layer) from two studies
df = readTPRDBtable_GCP(
        studies=["ACS08", "AR20"],
        ext="kd",              # extension WITHOUT dot works too
        user="TPRDB",          # public user
        verbose=1)             # print per-study stats

print(df.head())

Example verbose output

ACS08  #sessions: 33   .kd:152  ...
AR20   #sessions: 29   .kd:131

API Reference

readTPRDBtable_GCP(studies, ext, user="TPRDB", verbose=0) -> pandas.DataFrame
Argument Type Description
studies list[str] List of study IDs (folder names) such as ["ACS08", "AR20"].
ext str File extension without the leading dot, e.g. "kd", "au", "ss".
user str Default "TPRDB".
verbose int 0 = silent, any non-zero prints per-study stats.

Returns: a single concatenated pandas.DataFrame.
Columns depend on the specific Table you load (*.kd, *.au, *.ss …).

Internal path logic

For each study <S> the function builds
data/critt/tprdb/<user>/<S>/Tables/
and downloads every file whose name ends with .<ext>.


License

Released under the MIT License — see LICENSE for full text.

© 2025 Devisri Bandaru. Affiliated with the official TPRDB maintainers.

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

tprdbreader-0.1.3.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

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

tprdbreader-0.1.3-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file tprdbreader-0.1.3.tar.gz.

File metadata

  • Download URL: tprdbreader-0.1.3.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for tprdbreader-0.1.3.tar.gz
Algorithm Hash digest
SHA256 d285cc965c19df664f782b30194fbe8e6345b51bf972824da2956ec728596340
MD5 d896ccf0ca5623faad6f8185a3e165e5
BLAKE2b-256 6eb73813e3c1f40924c23a7e3b97094856ce219d3801e689180aa1c2ad7a719d

See more details on using hashes here.

File details

Details for the file tprdbreader-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: tprdbreader-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for tprdbreader-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c4ebe7c278e846956ce743b6bfa93b56808f0094ad29170913787663dbe440ea
MD5 0a9c2bc0575f3140ae91cc00a3b67919
BLAKE2b-256 db79269b55e4460bb1af669954b29f594abb74c61b561d4ddc6d391001364a8c

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