Skip to main content

Command-line interface for Refrakt ML/DL framework

Project description

refrakt_cli

PyPI version

refrakt_cli is a command-line interface for the refrakt_core deep learning and machine learning research framework. It enables rapid, reproducible, and flexible pipeline training by converting CLI arguments into YAML-based experiment configurations, seamlessly integrating with refrakt_core's modular system.


📦 Installation

Install the latest release from PyPI:

pip install refrakt_cli

🚀 What is refrakt_cli?

  • A CLI tool to launch, manage, and override ML/DL training pipelines using YAML configs.
  • Bridges user-friendly command-line workflows with the powerful abstractions of refrakt_core.
  • Supports dynamic hyperparameter overrides, modular experiment configs, and robust logging.

⚙️ Setup

git clone https://github.com/refrakt-hub/refrakt_cli.git
cd refrakt_cli

# (Recommended) Create and activate a virtual environment
python3 -m venv .venv
source .venv/bin/activate

# Install dependencies
pip install .

🧪 Usage: Running Experiments

Run with a config file

refrakt --config path/to/your_config.yaml

Override hyperparameters on-the-fly

refrakt --config path/to/your_config.yaml model.name=ResNet optimizer.lr=0.0005 trainer.epochs=20

Supported CLI Flags

Flag Description
--config Path to YAML config file
--log_type Logging backend: tensorboard, wandb, or both
--debug Enable debug mode with extra verbosity

🧩 Project Structure

src/refrakt_cli/
├── cli.py                # Main CLI entry point
├── helpers/              # Argument parsing, config overrides, pipeline orchestration
│   ├── argument_parser.py
│   ├── config_overrides.py
│   └── pipeline_orchestrator.py
├── hooks/                # Custom hooks (e.g., hyperparameter overrides)
│   └── hyperparameter_override.py
├── utils/                # Utility functions for pipeline management
│   └── pipeline_utils.py
└── __init__.py
  • cli.py: Main CLI logic and entry point.
  • helpers/: Argument parsing, config override logic, and pipeline orchestration.
  • hooks/: Custom hooks for advanced config/hyperparameter handling.
  • utils/: Utility functions for pipeline and config management.

Test files are located in the tests/ directory, mirroring the main module structure.


📄 License

This repository is licensed under the MIT License. See LICENSE for full details.


👤 Credits

Akshath Mangudi

If you find issues, raise them. If you learn from this, share it. Built with love and curiosity :)

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

refrakt_cli-0.1.0.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

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

refrakt_cli-0.1.0-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file refrakt_cli-0.1.0.tar.gz.

File metadata

  • Download URL: refrakt_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for refrakt_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f23efdc9978275c981d6df99619acdb5cf3c4b548a917820a693ca9b037c3a1e
MD5 60052c8f8cfd805dbccf39b953d7d572
BLAKE2b-256 328a8c362309a3bd39b46eea8844d8488b1c96af4ea1de32b97997676e0869c5

See more details on using hashes here.

File details

Details for the file refrakt_cli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: refrakt_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for refrakt_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b1b7e131df797d1f6f1a8c2a57ecb54caa9153516ce9d27fe983c8dfce3d2e99
MD5 58bd82911d7724cfca10cd9e9c714705
BLAKE2b-256 b28c48df4a7a10ea66a352f5c7fdff45a44f78918fb85fabb7a4c192462e0742

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