Metadata-Version: 2.4
Name: scitex-repro
Version: 0.1.3
Summary: Reproducibility utilities (random state, timestamps, hashing)
Project-URL: Homepage, https://github.com/ywatanabe1989/scitex-repro
Project-URL: Repository, https://github.com/ywatanabe1989/scitex-repro.git
Project-URL: Issues, https://github.com/ywatanabe1989/scitex-repro/issues
Author-email: Yusuke Watanabe <ywatanabe@scitex.ai>
License-Expression: AGPL-3.0-only
License-File: LICENSE
Keywords: hashing,random-state,reproducibility,scientific,timestamps
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering
Requires-Python: >=3.10
Requires-Dist: numpy
Provides-Extra: all
Requires-Dist: jax; extra == 'all'
Requires-Dist: jaxlib; extra == 'all'
Requires-Dist: tensorflow; extra == 'all'
Requires-Dist: torch; extra == 'all'
Provides-Extra: dev
Requires-Dist: pytest; extra == 'dev'
Requires-Dist: pytest-cov; extra == 'dev'
Requires-Dist: ruff; extra == 'dev'
Requires-Dist: scitex-dev; extra == 'dev'
Provides-Extra: docs
Requires-Dist: myst-parser>=2.0; extra == 'docs'
Requires-Dist: sphinx-autodoc-typehints>=1.25; extra == 'docs'
Requires-Dist: sphinx-copybutton>=0.5; extra == 'docs'
Requires-Dist: sphinx-rtd-theme>=2.0; extra == 'docs'
Requires-Dist: sphinx>=7.0; extra == 'docs'
Provides-Extra: jax
Requires-Dist: jax; extra == 'jax'
Requires-Dist: jaxlib; extra == 'jax'
Provides-Extra: tensorflow
Requires-Dist: tensorflow; extra == 'tensorflow'
Provides-Extra: torch
Requires-Dist: torch; extra == 'torch'
Description-Content-Type: text/markdown

# scitex-repro

<!-- scitex-badges:start -->
[![PyPI](https://img.shields.io/pypi/v/scitex-repro.svg)](https://pypi.org/project/scitex-repro/)
[![Python](https://img.shields.io/pypi/pyversions/scitex-repro.svg)](https://pypi.org/project/scitex-repro/)
[![Tests](https://github.com/ywatanabe1989/scitex-repro/actions/workflows/test.yml/badge.svg)](https://github.com/ywatanabe1989/scitex-repro/actions/workflows/test.yml)
[![Install Test](https://github.com/ywatanabe1989/scitex-repro/actions/workflows/install-test.yml/badge.svg)](https://github.com/ywatanabe1989/scitex-repro/actions/workflows/install-test.yml)
[![Coverage](https://codecov.io/gh/ywatanabe1989/scitex-repro/graph/badge.svg)](https://codecov.io/gh/ywatanabe1989/scitex-repro)
[![Docs](https://readthedocs.org/projects/scitex-repro/badge/?version=latest)](https://scitex-repro.readthedocs.io/en/latest/)
[![License: AGPL v3](https://img.shields.io/badge/license-AGPL_v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0)
<!-- scitex-badges:end -->


Reproducibility utilities for SciTeX: random state management, ID generation, timestamps, and array hashing.

> **Interfaces:** Python ⭐⭐⭐ (primary) · CLI — · MCP — · Skills ⭐⭐ · Hook — · HTTP —

## Problem and Solution


| # | Problem | Solution |
|---|---------|----------|
| 1 | **"Seed everything" requires 5+ lines of boilerplate** -- `random.seed()` + `np.random.seed()` + `torch.manual_seed()` + `torch.cuda.manual_seed_all()` + `tf.random.set_seed()` + `os.environ[PYTHONHASHSEED]` | **`RandomStateManager(seed=42)`** -- one call seeds every framework detected in the env; `.reset()` rewinds mid-experiment |
| 2 | **Experiment run directories collide** -- two parallel runs overwrite each other | **`gen_ID()` + `hash_array()`** -- unique directory names like `20260423_2155_abc12345`; deterministic array fingerprints for integrity checks |

