DRYTorch
Reproducible machine learning experiments with PyTorch.
Design
Don't Repeat Yourself (DRY) principles: replicable, documented, reusable.
- Reproducibility: experimental isolation to prevent unintended dependencies, data leakage, and misconfiguration.
- Modularity: flexible protocols preserving type inference in custom implementations.
- Type Checking: support for type checkers (such as basedpyright) for static detection of incompatible components.
- Decoupled Tracking: execution independent of tracking events (logging, plotting, and storing metadata).
- Optional Dependencies: support for external libraries (Hydra, W&B, TensorBoard, etc.) but minimal requirements.
- Self-Documentation: automatic metadata extraction and standardization.
- Ready-to-use: high-level implementations for advanced applications and workflows.
Installation
Requirements:
- The library only requires recent versions of PyTorch and NumPy.
- PyYAML and tqdm are recommended.
pip:
pip install drytorch
uv:
uv add drytorch
Project Template
To start a new project, use drytorch-template. It is a complete machine learning project, with Hydra configuration, custom trackers, Optuna tuning and distributed training, and its README explains which files to change for your task.
Package Structure
Modules are organized into the following subpackages:
core: internal routines and the interfaces for library and custom components.lib: reusable implementations and abstract classes of the protocols.trackers: optional tracker plugins that integrate via the event system.contrib: community-driven extensions and support for external libraries.utils: general utilities independent to the framework.
Documentation
Comprehensive documentation is available on Read the Docs.
Tutorials
| Tutorial | Description |
|---|---|
| Getting Started | End-to-end tutorial on deep image prior super-resolution. |
| Experiments and Runs | Defining experiments, run sessions, and registries. |
| Data | Data loaders and dataset splitting. |
| Models | Module wrappers and checkpointing. |
| Objectives | Losses, metrics, and accumulators. |
| Learning | Optimizers, learning rate schemas, and schedulers. |
| Training | Trainer configuration, validation, hooks, and Optuna tuning. |
| Trackers | Logging metrics, plots, and run states. |
| Events | Domain-specific signals, event types, and tracker integration. |
| Distributed Training | Multi-process distributed training with DDP. |
| Typing Support | Multi-modal inputs, custom model outputs, and type safety. |
Reference
- API Reference: detailed API documentation.
- Protocol Overview: design structure and protocols.
- Changelog: release history and migration notes.
Metadata
Release files for drytorch 0.1.0
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 |
|---|---|---|---|---|
| drytorch-0.1.0.tar.gz | 1.1 MB | With provenance | Details for drytorch-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| drytorch-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for drytorch-0.1.0-py3-none-any.whl |
Total release size: 1.2 MB
Release files / drytorch-0.1.0.tar.gz
| Download URL | drytorch-0.1.0.tar.gz |
|---|---|
| Size | 1.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8cd54d337f5353ae7f9fbff0e2916bf3093137bbec03abbf8f9e46ff68278cff
|
|
BLAKE2b-256 checksum How to use checksums |
45a436066fbef945b64fc00a9adfddc3493faf2ee733ba73f3a2b97954463018
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.
Transparency logRelease files / drytorch-0.1.0-py3-none-any.whl
| Download URL | drytorch-0.1.0-py3-none-any.whl |
|---|---|
| Size | 118.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d256483f5df3da2e809def9d1475360627ca275eead665cfb5f1cdf01ee1ae6a
|
|
BLAKE2b-256 checksum How to use checksums |
62981e3754b3e329bbb8921179e328371bb86969ad099c7c933216fcea8ccda8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.
Transparency logSecurity for drytorch 0.1.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for drytorch-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.
Transparency logA 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.