Skip to main content

Professional Python Project Initializer with uv, ml/dl support, and embedded config.

Project description

🐍 ViperX

Professional Python Project Initializer The modern, snake-fast way to bootstrap Python projects.

ViperX is a CLI tool designed to generate production-ready Python projects instantly. It leverages uv for blazing fast dependency management and offers specialized templates for Machine Learning (ml) and Deep Learning (dl).

✨ Features

  • Blazing Fast: Built on top of uv.
  • Pre-configured: pyproject.toml, proper src layout, ruff ready.
  • ML/DL First: Templates with torch, tensorflow, kagglehub and Smart Caching.
  • Smart Caching: Auto-downloads and caches datasets to ~/.cache/viperx/data (or local data/).
  • Strict Isolation: Environment variables (.env) isolated in src/<pkg>/ for better security.
  • Config-in-Package: Solves the "Colab/Kaggle doesn't see my config" problem.
  • Platform Agnostic: Works on Local, VSCode, Colab, and Kaggle.
  • Safe Mode: Never overwrites or deletes files automatically—reports changes for manual action.

📦 Installation

Recommended (Global Tool)

pipx install viperx

Alternative (uv)

uv tool install viperx

🚀 Quick Start

# Classic Package
viperx config -n my-lib

# Machine Learning Project
viperx config -n churn-prediction -t ml --env

# Deep Learning Project (PyTorch)
viperx config -n deep-vision -t dl -f pytorch

# Declarative Config (Infrastructure as Code)
viperx config get                   # Generate template
viperx config -c viperx.yaml        # Apply config

🧱 Project Structure

Standard Layout

my-lib/
├── pyproject.toml      # Managed by uv
├── README.md
├── .gitignore
├── viperx.yaml         # Config file
└── src/
    └── my_lib/
        ├── __init__.py
        ├── main.py         # Entry point
        ├── config.yaml     # Data URLs & Params
        ├── config.py       # Loader
        ├── .env            # Secrets (ISOLATED)
        └── tests/
            └── test_core.py

ML/DL Layout

deep-vision/
├── pyproject.toml
├── notebooks/
│   ├── Base_Kaggle.ipynb
│   └── Base_General.ipynb
├── data/               # Cached datasets
└── src/
    └── deep_vision/
        ├── main.py
        ├── config.py       # <--- ISOLATED
        ├── .env            # <--- ISOLATED
        ├── data_loader.py  # Smart caching
        └── tests/

💻 CLI Reference

config - Main Command

viperx config [OPTIONS]

Options:

Flag Description Default
-n, --name Project name (Required) -
-t, --type classic, ml, dl classic
-d, --description Project description -
-a, --author Author name git user
-l, --license MIT, Apache-2.0, GPLv3 MIT
-b, --builder uv, hatch uv
-f, --framework pytorch, tensorflow (DL only) pytorch
--env / --no-env Generate .env file --no-env
-c, --config Path to viperx.yaml -

config get - Generate Template

viperx config get

Creates a viperx.yaml template in current directory.

config update - Rebuild from Codebase

viperx config update

Scans the existing project and updates viperx.yaml to match reality:

  • Detects packages in src/
  • Detects use_config, use_env, use_tests from actual files
  • Adds annotations for any mismatches

package - Workspace Management

# Add package
viperx package add -n worker-api -t classic

# Delete package
viperx package delete -n worker-api

# Update dependencies
viperx package update -n worker-api

📝 Declarative Config (viperx.yaml)

project:
  name: "my-project"
  description: "A cool project"
  author: "Your Name"
  license: "MIT"
  builder: "uv"

settings:
  type: "classic"          # classic | ml | dl
  use_env: false
  use_config: true
  use_tests: true

workspace:
  packages:
    - name: "api"
      type: "classic"
    - name: "ml-core"
      type: "ml"
      use_env: true

🔒 Safe Mode Philosophy

ViperX follows a non-destructive approach:

Action Behavior
Add ✅ Creates new files/packages
Update ⚠️ Reports changes, user decides
Delete ❌ Never deletes—warns user
Overwrite ❌ Never overwrites existing files

🧪 Test Coverage

uv run pytest src/viperx/tests
# 46 tests | 76% coverage

Test Structure:

  • unit/ - Validation (5 tests)
  • functional/ - CLI, licenses, project types, updates (18 tests)
  • scenarios/ - Classic, workspace, type blocking, config scanner (18 tests)
  • integration/ - E2E lifecycle (5 tests)

🤝 Contributing

git clone https://github.com/KpihX/viperx.git
cd viperx
uv sync
uv run viperx --help

Built with ❤️ by KpihX

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

viperx-1.3.5.tar.gz (52.2 kB view details)

Uploaded Source

Built Distribution

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

viperx-1.3.5-py3-none-any.whl (71.0 kB view details)

Uploaded Python 3

File details

Details for the file viperx-1.3.5.tar.gz.

File metadata

  • Download URL: viperx-1.3.5.tar.gz
  • Upload date:
  • Size: 52.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"25.10","id":"questing","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for viperx-1.3.5.tar.gz
Algorithm Hash digest
SHA256 c5d7e142319274967bb1979c7592250da22dc4a0471a2fc041722d881b218471
MD5 ec869fdf2aa30e9487271c0324dc0700
BLAKE2b-256 28192d5d912a32059e8da80cfd1931c7ff34322ec2492d182e67693c94111676

See more details on using hashes here.

File details

Details for the file viperx-1.3.5-py3-none-any.whl.

File metadata

  • Download URL: viperx-1.3.5-py3-none-any.whl
  • Upload date:
  • Size: 71.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"25.10","id":"questing","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for viperx-1.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 78d7436d1e8deaee7648d5b64b4a47678d4e2923137215beae2cb719a1d22053
MD5 d1a73181564dc5519335a9173a30ea30
BLAKE2b-256 bdaf2196ea8483cf6fb24ccd5a2558756e4d289aa8c4d382e92eaaae86ef8765

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