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

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

Commands

devkit 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
devkit init                          # fully interactive
devkit init my-api --type fastapi --env venv
devkit init my-lib --type package --env conda --python 3.12
devkit 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

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

Auto-detects project type and runs the right command:

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

devkit clean — Remove artifacts

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

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


devkit info — System snapshot

devkit info
devkit info --json

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


devkit find — Fast file search

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

devkit zip / devkit unzip — Archive utilities

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

devkit env — Environment variable management

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

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

devkit 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.1.tar.gz (25.3 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.1-py3-none-any.whl (36.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: devit_cli-0.1.1.tar.gz
  • Upload date:
  • Size: 25.3 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.1.tar.gz
Algorithm Hash digest
SHA256 783cc9ece78693da2cbc46241febf27b13a2de6e2db35148752daad995041bf4
MD5 947b5e586282ad9822a4f429811e434d
BLAKE2b-256 f6c36dfd72adaa6069a8524357bf0fa55e1bb37fa070c5b7d308e8f658000ec2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: devit_cli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 36.5 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 695d224cd02aa69ce7ba83107e51259a0fa6aaf02e3c159a7123e409adf48677
MD5 2be68fcea4886216274dc41616027034
BLAKE2b-256 42204afd2333ad5dc29783c8579282955630a6ca05d480060e05a904740ecc13

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