Skip to main content

CLI tool for deciphering internet abbreviations using Gemini API

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.1.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.1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: decrypt-1.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 02eedafd8732bcd1bdaec5ac6d0a9375db5be5821b3498ee8d9874167edb91fe
MD5 51ead74079500b47e1815757212e9d78
BLAKE2b-256 cf11d4e54a1ef906da37bcea7a91570bb919322f2ec0a1b74167b519a3cc1224

See more details on using hashes here.

File details

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

File metadata

  • Download URL: decrypt-1.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5f43b6fceb2140d1e651b85ca10bc96afac615edd508d175b8c8dfa6aada87aa
MD5 fa25dbd49f505336b782f3f995b40110
BLAKE2b-256 a4f419a886ff6ab5aefb0cfc2be0a223095a6b6d6b66b200e1723defe0900225

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