Skip to main content

A full-featured CLI framework for professional Python developers

Project description

devit-cli

A full-featured CLI toolkit for professional Python developers.
Scaffold projects  ·  Clean builds  ·  Inspect system  ·  Search files  ·  Manage archives & env vars

PyPI version Monthly downloads Python versions License


Installation

pip install devit-cli

Requires Python 3.10+. Works on Windows · Linux · macOS.


Quick Start

devit           # show help + logo
devit init      # interactive project wizard
devit info      # system snapshot
devit clean     # remove caches & build artifacts
devit dev       # start dev server / install in dev mode
devit test      # run tests (auto-detects pytest / django)

Commands

devit init — Project wizard

Interactively scaffold a new project. Asks for:

Question Options
Project type Python Package · FastAPI · Django · AWS Scripts
Environment New venv · Existing Python interpreter · New conda · Existing conda env · Skip
Python version e.g. 3.11
devit init                          # fully interactive
devit init my-api --type fastapi --env venv
devit init my-lib --type package --env conda --python 3.12
devit init my-app -y                # skip confirmation prompt

Generated structures

Python Package

my-lib/
├── my_lib/
│   ├── __init__.py
│   └── core.py
├── tests/
│   └── test_core.py
├── docs/
├── pyproject.toml
├── README.md
└── .gitignore

FastAPI

my-api/
├── main.py
├── app/
│   └── routers/
│       └── health.py
├── tests/
│   └── test_api.py
├── requirements.txt
├── README.md
└── .gitignore

Django

my-site/
├── manage.py
├── my_site/
│   ├── settings.py
│   ├── urls.py
│   └── wsgi.py
├── apps/
│   └── core/
│       ├── views.py
│       └── urls.py
├── requirements.txt
└── .gitignore

AWS Scripts

my-aws/
├── scripts/
│   ├── main.py
│   ├── s3.py
│   └── ec2.py
├── tests/
├── requirements.txt
└── .gitignore

devit dev / run / build / test — Unified task runner

Auto-detects project type and runs the right command:

Command Package FastAPI Django AWS
devit dev pip install -e .[dev] uvicorn main:app --reload manage.py runserver sam local start-api
devit run python -m <module> uvicorn main:app manage.py runserver 0.0.0.0 python -m scripts.main
devit build python -m build pip install -r requirements.txt pip install -r requirements.txt sam build
devit test pytest -v pytest -v manage.py test pytest -v
devit dev
devit test
devit build
devit run -- --port 9000    # extra args forwarded

devit clean — Remove artifacts

devit clean                  # clean cwd
devit clean ./my-project     # clean specific dir
devit clean --dry-run        # preview only
devit clean --include-venv   # also remove .venv
devit clean -y               # skip confirmation

Removes: __pycache__, *.pyc, .pytest_cache, build/, dist/, *.egg-info, .DS_Store, *.log, node_modules, .coverage, and more.


devit info — System snapshot

devit info
devit info --json

Shows: OS, hostname, Python version + executable, active venv/conda env, CPU count + frequency, RAM usage, disk usage.


devit find — Fast file search

devit find "*.py"
devit find "config" -e toml -e ini
devit find "*" --min-size 1mb --newer-than 7    # >1 MB, modified in last 7 days
devit find --dirs-only "src"
devit find "*" -l 500                           # show up to 500 results

devit zip / devit unzip — Archive utilities

devit zip dist.zip src/ README.md
devit zip dist.zip . -x __pycache__ -x "*.pyc" -l 9
devit unzip dist.zip ./output
devit unzip dist.zip --list     # show contents without extracting

devit env — Environment variable management

devit env list                        # list all env vars
devit env list --filter AWS           # filter by keyword
devit env list --json                 # JSON output

devit env export                      # save to .env  (dotenv format)
devit env export vars.json --format json
devit env export activate.sh  --format shell       # bash / zsh
devit env export activate.ps1 --format powershell  # Windows PowerShell
devit env export activate.bat --format cmd         # Windows CMD

devit env diff .env .env.production   # show what changed

Tech Stack

Library Purpose
click CLI framework
rich Beautiful terminal output, progress bars, tables
questionary Interactive prompts
psutil System metrics (CPU, RAM, disk)

Contributing

git clone https://github.com/dipenpadhiyar/devit-cli
cd devit-cli
pip install -e ".[dev]"
pytest

Pull requests are welcome!


License

MIT — see LICENSE for details.

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

devit_cli-0.1.5.tar.gz (25.9 kB view details)

Uploaded Source

Built Distribution

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

devit_cli-0.1.5-py3-none-any.whl (37.2 kB view details)

Uploaded Python 3

File details

Details for the file devit_cli-0.1.5.tar.gz.

File metadata

  • Download URL: devit_cli-0.1.5.tar.gz
  • Upload date:
  • Size: 25.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.13

File hashes

Hashes for devit_cli-0.1.5.tar.gz
Algorithm Hash digest
SHA256 5697e8b17d208276b208660d356f7c56a0c13b5ae083fe65f494fb4faf5e2e21
MD5 699ac8bdd594e81b0066805974216e67
BLAKE2b-256 8f576c8ae292afd4fcba58e06893fbae73bf95db9a8fb38587dbc9a9bfccae63

See more details on using hashes here.

File details

Details for the file devit_cli-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: devit_cli-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 37.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.13

File hashes

Hashes for devit_cli-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ebf9e136e9d2dfb2b067c12b4c1144384ffe7ee48810215d62a7167afd3b1b1d
MD5 df1dd31b891ccf4a25c245bd078532f4
BLAKE2b-256 d0bc911daa46611a4d28e3e96dde58a21095c0ad5b402ca35e0ce55b1a3ddfcf

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