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 BTSS layer 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.2.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.2-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tprdbreader-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 401569efac520b9469cc2a307a6083e5c54717bc60beeef95c2c297a4750e2e4
MD5 65bf048e18f58b534c68dc2a9f1889a2
BLAKE2b-256 c6d1aed5351e009c3fec28037061f0075b6d5e0a6acb42c56830a4d16aad7ad2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tprdbreader-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.9 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 56e470cb0385ec5a571297dd276ed10c83fc091ca0775f751bc46a8bdb27d457
MD5 8750017b18165af0be65f0bbf9a3d6f7
BLAKE2b-256 c3e314aeaeb9185b775870d99b178550babd8559cc8a5f39a32d11409ee5bf5a

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