Skip to main content

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.

Metadata

Release files for tprdbreader 0.1.3

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

Source distribution (sdist)

Source distribution for tprdbreader 0.1.3
File Size Uploaded
tprdbreader-0.1.3.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tprdbreader 0.1.3
File Interpreter ABI Platform
tprdbreader-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 9.3 kB

Release files / tprdbreader-0.1.3.tar.gz

Download URL tprdbreader-0.1.3.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d285cc965c19df664f782b30194fbe8e6345b51bf972824da2956ec728596340
BLAKE2b-256 checksum
How to use checksums
6eb73813e3c1f40924c23a7e3b97094856ce219d3801e689180aa1c2ad7a719d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / tprdbreader-0.1.3-py3-none-any.whl

Download URL tprdbreader-0.1.3-py3-none-any.whl
Size 4.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c4ebe7c278e846956ce743b6bfa93b56808f0094ad29170913787663dbe440ea
BLAKE2b-256 checksum
How to use checksums
db79269b55e4460bb1af669954b29f594abb74c61b561d4ddc6d391001364a8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

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