Skip to main content

Aesthetic and smart PyTorch environment tester

Project description

๐Ÿง  Torcy

Aesthetic and smart PyTorch environment tester - because checking your setup shouldn't look boring.

PyPI Python License: MIT Status Torch


โš ๏ธ 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

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

torcy-1.0.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

torcy-1.0.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

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

Hashes for torcy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 097b802023ea33c7a4cf5b36bc7582965c759aba99ce2fa866ed569c2b21af33
MD5 9dc1d1befa026c34799c6e61793c2211
BLAKE2b-256 0ef2f53fee8ea05f84a96a0e7a3d8d0444c2eef30e09c89f30704401c7b1f693

See more details on using hashes here.

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

Hashes for torcy-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 faa8192bea58f942de3d108336ec190914e681b88a029884344d4302835ebf8e
MD5 cf372eb9c72346eca16b8510b88c578d
BLAKE2b-256 b35681fbe8af085ed4ee574ee6a28d809e9ce3104e6c7934a6e7a824691f7ba6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page