Aesthetic and smart PyTorch environment tester
Project description
๐ง Torcy
Aesthetic and smart PyTorch environment tester - because checking your setup shouldn't look boring.
โ ๏ธ Note: This library is not expected to receive frequent updates.
It will only be updated when it becomes incompatible or broken with newer versions of PyTorch or Python.
Torcy is designed to be stable, lightweight, and long-lasting. Once it works - it just works.
โจ Overview
Torcy is a stylish and safe CLI & library tool to test your PyTorch environment in seconds.
It checks whether PyTorch is installed correctly, detects CPU/GPU, verifies CUDA support, and even runs a small benchmark - all with an aesthetic terminal output ๐ป๐ฅ
๐ Installation
pip install torcy
Or install from source:
git clone https://github.com/rillToMe/torcy.git
cd torcy
pip install .
๐ก Usage
Run directly in your terminal:
torcy
Example output:
๐ฅ Starting PyTorch Environment Test ๐ฅ
๐งฉ PyTorch version: 2.4.0+cpu
โ๏ธ Using CPU: 12th Gen Intel(R) Core(TM) i5-12450HX
๐ก You can install the GPU version with: torcy --install-gpu
๐ Random tensor on CPU:
tensor([[0.23, 0.58, 0.71],
[0.91, 0.64, 0.12],
[0.55, 0.41, 0.77]])
๐ง Running quick compute benchmark...
๐ Benchmarking... โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 100% 0:00:05
โก Compute speed: 5.11245s
โ
Test completed successfully - ๐ง Smooth setup!
๐งฉ GPU Installation Helper
Got an NVIDIA GPU (like RTX 3050)?
Torcy can install the correct GPU-enabled PyTorch build automatically:
torcy --install-gpu
This uses the official CUDA 12.1 wheel from the PyTorch repository.
๐ Features
| Feature | Description |
|---|---|
| ๐ Smart Detection | Detects PyTorch version, CUDA status, and hardware info |
| ๐ง CPU/GPU Info | Shows exact CPU model or GPU name |
| ๐ก Auto-Suggestion | Suggests commands to install GPU-enabled PyTorch |
| โ๏ธ Benchmark Test | Quick compute test using PyTorch matrix multiplication |
| ๐จ Beautiful CLI | Animated intro, colorized output with rich |
| ๐ Dual-Use | Works as both a CLI tool and Python module |
๐ง As a Python Module
import torcy
torcy.test()
โ๏ธ Dependencies
- Python 3.8+
- PyTorch
richpy-cpuinfo
Install manually if missing:
pip install rich py-cpuinfo
๐งฉ Developer Mode
For local development (to test without reinstalling the wheel):
python -m torcy
๐งพ License
MIT License ยฉ 2025 DitDev
Feel free to fork, modify, and share!
๐ Portfolio: ditdev.vercel.app
๐ฌ Fun Fact
Torcy was created just to make torch.cuda.is_available() look cooler ๐
If you love small tools with personality - welcome aboard.
Torcy - beautiful, minimal, and brutally honest about your PyTorch setup.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file torcy-1.0.0.tar.gz.
File metadata
- Download URL: torcy-1.0.0.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
097b802023ea33c7a4cf5b36bc7582965c759aba99ce2fa866ed569c2b21af33
|
|
| MD5 |
9dc1d1befa026c34799c6e61793c2211
|
|
| BLAKE2b-256 |
0ef2f53fee8ea05f84a96a0e7a3d8d0444c2eef30e09c89f30704401c7b1f693
|
File details
Details for the file torcy-1.0.0-py3-none-any.whl.
File metadata
- Download URL: torcy-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
faa8192bea58f942de3d108336ec190914e681b88a029884344d4302835ebf8e
|
|
| MD5 |
cf372eb9c72346eca16b8510b88c578d
|
|
| BLAKE2b-256 |
b35681fbe8af085ed4ee574ee6a28d809e9ce3104e6c7934a6e7a824691f7ba6
|