Skip to main content

AI-powered CLI tool that connects natural language with developer workflows

Project description

 ██████╗ ███████╗ ██████╗██████╗ ██╗   ██╗██████╗ ████████╗
 ██╔══██╗██╔════╝██╔════╝██╔══██╗╚██╗ ██╔╝██╔══██╗╚══██╔══╝
 ██║  ██║█████╗  ██║     ██████╔╝ ╚████╔╝ ██████╔╝   ██║
 ██║  ██║██╔══╝  ██║     ██╔══██╗  ╚██╔╝  ██╔═══╝    ██║
 ██████╔╝███████╗╚██████╗██║  ██║   ██║   ██║        ██║
 ╚═════╝ ╚══════╝ ╚═════╝╚═╝  ╚═╝   ╚═╝   ╚═╝        ╚═╝

AI-powered CLI tool that connects natural language with developer workflows:

  • Git commit generation
  • Shell command generation
  • Slang / abbreviation decoding

Powered by Google Gemini API.


Features

Commit Generator (default mode)

Generates Conventional Commit messages from:

  • staged git diff (git diff --staged)
  • or manual input text

Example:

git add .
decrypt

or:

decrypt "fix auth bug in jwt middleware"

Shell Command Generator

Convert natural language into executable terminal commands.

decrypt -s "find all png files larger than 10MB and delete them"

Slang Decoder

Expands internet slang and shorthand into readable text.

decrypt -sl "hru btw idk"

Interactive Mode

Run without arguments:

decrypt

Installation

From PyPI

pip install decrypt

Recommended (CLI isolation)

pipx install decrypt

Local install

git clone https://github.com/REvDl/Scripts.git
cd Scripts/automation_tool/DecrypMessage
pip install .

Configuration

On first run:

  • Gemini API key
  • Default language

Stored at:

~/.config/decrypt/.env

Reset:

decrypt --config

CLI Usage

usage: decrypt [-h] [--lang LANG] [--config] [-sl] [-s] [-c] [text]

positional arguments:
  text          input text or git diff

options:
  -h, --help    show help
  --lang LANG   output language
  --config      reconfigure API key and language
  -sl, --slang  decode slang
  -s, --shell   generate shell command
  -c, --commit  generate commit message

Examples

Commit:

git add .
decrypt

Shell:

decrypt -s "kill all processes on port 3000"

Slang:

decrypt -sl "idk brb hru"

Why

Developers constantly:

  • write commit messages manually
  • translate natural language into shell commands
  • decode slang and shorthand text

This tool unifies all of that into a single CLI.


Tech Stack

  • Python 3.10+
  • Google Gemini API
  • Tenacity
  • Pydantic Settings
  • argparse

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

decrypt-1.1.2.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

decrypt-1.1.2-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file decrypt-1.1.2.tar.gz.

File metadata

  • Download URL: decrypt-1.1.2.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for decrypt-1.1.2.tar.gz
Algorithm Hash digest
SHA256 a57d1a539bdce131d5d90a81f87f8545f5d05f20640618dc1dd91c617cd04d56
MD5 594734950db47508dedfe8ca85eb73ff
BLAKE2b-256 d4d83d9c98e243d342b087aa73f257d0fcf3a6f938cbd685eeff074d7f679f47

See more details on using hashes here.

File details

Details for the file decrypt-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: decrypt-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for decrypt-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8d17145d0e33e3e1858d824c95da0d0e4b61b1ee70d117e971759e68ec21c26a
MD5 dc07fd57475e7b2dc5c17d1de776dd7e
BLAKE2b-256 9884896d3eeb53d83d2573fd2cc62681b431520f57e2f3668319318c51de1d21

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