biotrainer-core
A lightweight Python package providing shared data classes, I/O utilities, and helper functions for protein-related projects.
Purpose
biotrainer-core is designed as a minimal, dependency-light foundation that can be reused across multiple protein ML
projects (e.g. biotrainer) without pulling in heavy frameworks like PyTorch
or Transformers.
Features
Data Classes
Pydantic-based data models shared across protein ML workflows:
- Sequence data — representations for protein sequences and their metadata
- Protocols — supported task types (residue-level, sequence-level, contact prediction, …)
- Metrics — structured containers for evaluation metrics
- Model results & predictions — standardised output formats for biotrainer models
- Embedding statistics — summary statistics over embedding spaces
- AutoEval — data classes for automated evaluation tasks, reports, and benchmark datasets (FLIP, PBC)
H5 File Handling
Utilities for reading and writing HDF5 files used to store protein embeddings:
H5Database— high-level interface for embedding databases- Low-level helpers for chunked I/O and dataset management
Functions
Pure utility functions with no side effects:
- Hashing — deterministic sequence hashing
- Seeding — reproducible random seed management
- Ranking — ranking helpers for evaluation
- Bootstrapping — confidence interval estimation via bootstrapping
Input Files
- FASTA parsing — read and validate FASTA files into typed sequence objects
Installation
pip install biotrainer-core
License
MIT — see LICENSE for details.
Metadata
Release files for biotrainer-core 2.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| biotrainer_core-2.1.1.tar.gz | 33.6 kB | Without provenance | Details for biotrainer_core-2.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| biotrainer_core-2.1.1-py3-none-any.whl | Python 3 | none | any | Details for biotrainer_core-2.1.1-py3-none-any.whl |
Total release size: 81.0 kB
Release files / biotrainer_core-2.1.1.tar.gz
| Download URL | biotrainer_core-2.1.1.tar.gz |
|---|---|
| Size | 33.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
34d4cd2a018eaee9482dfaedf7ae8939b6d7e14fea55bb3b3ad7963b7b9ee4c4
|
|
BLAKE2b-256 checksum How to use checksums |
3979d5c6486f8ab413a11fbd11750b6859514363179f00c64bee943f1baf7b98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.7
|
Release files / biotrainer_core-2.1.1-py3-none-any.whl
| Download URL | biotrainer_core-2.1.1-py3-none-any.whl |
|---|---|
| Size | 47.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
62c0fbe8a53da63bcac3ceed08ecc3057c1f95aa54c5060f271c38e8ace6590e
|
|
BLAKE2b-256 checksum How to use checksums |
1b2ad6c61901672b82dcf56f5f8543967fa3fdacb6d31bb1d83b70315c6f489d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.7
|
Security for biotrainer-core 2.1.1
Provenance
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
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.