Metadata-Version: 2.4
Name: tiny-torch-mirror
Version: 0.1.0
Summary: A minimalistic PyTorch mirror for educational purposes.
Author-email: Your Name <your.email@example.com>
License: MIT
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Topic :: Utilities
Requires-Python: <4.0,>=3.9
Description-Content-Type: text/markdown
Requires-Dist: pydantic-settings<3.0.0,>=2.10.1
Requires-Dist: typer<0.17.0,>=0.16.0
Requires-Dist: pyyaml<7.0.0,>=6.0.2
Requires-Dist: httpx[socks]<0.29.0,>=0.28.1
Requires-Dist: packaging<26.0,>=25.0
Requires-Dist: tqdm<5.0.0,>=4.67.1
Requires-Dist: stamina<26.0.0,>=25.1.0
Requires-Dist: textual<4.0.0,>=3.5.0
Requires-Dist: structlog<26.0.0,>=25.4.0
Requires-Dist: fastapi<0.116.0,>=0.115.14
Requires-Dist: uvicorn<0.36.0,>=0.35.0
Requires-Dist: aiofiles<25.0.0,>=24.1.0
Provides-Extra: dev
Requires-Dist: pytest<9.0.0,>=8.0.0; extra == "dev"
Requires-Dist: black<26.0.0,>=24.0.0; extra == "dev"
Requires-Dist: isort<7.0.0,>=5.13.0; extra == "dev"
Requires-Dist: pytest-sugar<2.0.0,>=1.0.0; extra == "dev"

# Tiny Torch Mirror

A minimal PyTorch mirror for private remote servers with no network access.

## Installation

```bash
pip install tiny-torch-mirror
```

## Usage

### Sync to Private Repository from PyTorch Index

1. **Create a config file**
   ```bash
   tiny-torch-mirror config
   ```

2. **Edit the config file**  
   Set the `mirror_root` to your private mirror root directory.

3. **Install this package on your private server.**
   ```bash
   # on your private server
   pip install tiny-torch-mirror
   ```

4. **Run the sync command locally.**
   ```bash
   tiny-torch-mirror sync
   ```

### Use the Private Mirror

**Start the mirror server:**

```bash
tiny-torch-mirror serve --path <path to your private mirror> --port 8081
```

**Install packages from the mirror:**  

To install torch and torchvision with CUDA 11.8:

```bash
pip install torch torchvision --index-url http://localhost:8081/whl/cu118
```
