Python client for Pepkio sample-id-vault tool
pip install pepkio-sample-id-vault Copy PIP instructions
A Python package and client library for programmatic specimen pseudonymization, HIPAA/GDPR-compliant de-identification, and secure sample identifier mapping using Crockford Base32 codes and HMAC-SHA256 hashing.
The pepkio-sample-id-vault package provides Python tools to automate biological sample pseudonymization, specimen de-identification, and key vault management. It enables laboratory scientists, bioinformaticians, and clinical researchers to replace sensitive patient names, medical record numbers (MRNs), or sample identifiers with short, collision-resistant Crockford Base32 pseudonyms or one-way cryptographic hashes. The library supports batch manifest de-identification, custom study prefixes, salt-based hashing, and reversible lookup workflows via secure key vaults.
pip install pepkio-sample-id-vault Or using uv:
uv add pepkio-sample-id-vault Quick Example import os from pepkio_sample_id_vault import PepkioClient # Initialize client using PEPKIO_API_KEY environment variable api_key = os.getenv("PEPKIO_API_KEY", "your_api_key_here") with PepkioClient(api_key=api_key) as client: # Generate reversible 6-character Crockford Base32 sample pseudonyms run_input = { "action": "generate", "names_text": "Patient-101\nPatient-102\nControl-A\nControl-B", "mode": "reversible", "id_length": 6, "prefix": "PAT-", "study_salt": "cohort_2026_oncology" } result = client.run(run_input) print("Execution Status:", result.status) for row in result.result.get("rows", []): print(f"Original: {row['name']} -> Pseudonym: {row['id']} ({row['status']})") Typical Use Cases Clinical Trial Specimen Blinding: Blind patient biospecimen labels before shipping blood, tissue, or serum samples to core facilities or reference laboratories. Biobank & Biorepository Cataloging: Assign compact, uniform Crockford Base32 codes to aliquots in cryogenic storage while maintaining encrypted master lookup records. NGS Sample Sheet De-Identification: Remove protected health information (PHI/PII) from FASTQ metadata and sample manifests prior to public repository upload (NCBI SRA, ENA, GEO). Double-Blind Study Randomization: Generate non-sequential, non-predictable sample pseudonyms to eliminate investigator bias during assays and histological scoring. Multi-Center Cohort Harmonization: Merge specimen manifests across multiple sites using site-specific study salts to avoid ID collisions without sharing raw patient registries. Scientific Background Pseudonymization vs. Anonymization: Pseudonymization replaces direct identifiers with artificial codes while storing a segregated master key for authorized re-identification (GDPR Article 4(5)). Anonymization permanently severs the relationship between subject and sample (HIPAA Safe Harbor 45 CFR § 164.514(b)(2)). Crockford Base32 Encoding: Crockford Base32 uses 32 uppercase digits and letters, excluding visually ambiguous characters (0, O, 1, I, L) and U. A 6-character string provides over 1.07 billion unique combinations ((32^6)), offering high symbol density for cryotubes and microplates. Cryptographic Salts & Nonce Collision Handling: Adding a study salt to HMAC-SHA256 hashing prevents cross-study re-identification and rainbow table attacks. Internal nonces dynamically resolve hash collisions within cohorts. Web Application For researchers who prefer a graphical interface, an interactive web version is available.
Web Application: https://www.pepkio.com/tools/sample-id-vault
Key web-only features include zero-knowledge client-side AES-256-GCM local storage encryption, interactive CSV column auto-mapping, printable master key worksheets, and encrypted .vault backup file export/import.
GitHub Repository: https://github.com/pepkio/pepkio-sample-id-vault
Source code and issue tracking: https://github.com/pepkio/pepkio-sample-id-vault
Pepkio (https://www.pepkio.com/) develops software tools and bioinformatics solutions for life science researchers, including laboratory calculators and analysis services (https://www.pepkio.com/cro). See https://www.pepkio.com for additional tools and computational workflows.
A semantic, AI-native version of this document in the K2F format is available at https://k2f.dev (https://k2f.dev/v/e0e0d4d1439f429330250fb33cbe1dbb8019cb26ae62148ec4657eef10e62677)
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




