Skip to main content

Offline Natural Language Command Runner

Project description

nlcmd

Offline Natural Language Command Runner

nlcmd turns simple English‐like instructions into shell commands and executes them. No internet required—just rapidfuzz for fuzzy matching.

Features

  • Fully offline: no API keys or external calls.
  • Fuzzy matching + optional spaCy lemmatization.
  • Built-in command database (JSON) and user overrides via ~/.nlcmd/config.yaml.
  • Interactive REPL and one‐off “run” subcommand.
  • Plugin support: drop additional JSON files into nlcmd/commands/.
  • Unit tests (pytest) for parser and executor.
  • Packaged as a normal Python CLI (nlcmd).

Installation

1. From PyPI

# (Optional) Create a venv
python -m venv ~/.venvs/nlcmd
source ~/.venvs/nlcmd/bin/activate    # Linux/macOS
# OR
# .\venvs\nlcmd\Scripts\activate       # Windows PowerShell

pip install nlcmd

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

nlcmd-0.1.0.tar.gz (16.6 kB view details)

Uploaded Source

Built Distribution

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

nlcmd-0.1.0-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

Details for the file nlcmd-0.1.0.tar.gz.

File metadata

  • Download URL: nlcmd-0.1.0.tar.gz
  • Upload date:
  • Size: 16.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for nlcmd-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9cf3b0957a049c8bfbce0f52edb3491fedfffda5f7a8dee01fa23dbdc8a640b4
MD5 80aab52322ac78a691a9fcddba822da5
BLAKE2b-256 4e7351a3ed90a557b62c9bfee34d4940e3e6291947371a4f6a671ca1cae789b0

See more details on using hashes here.

File details

Details for the file nlcmd-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: nlcmd-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 19.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for nlcmd-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f83bc2f93c6089d542eb1a6bb0e5aad3ecc85d1f600c8e0fe46e62da305699d6
MD5 b801a84d5c2321e7fd2b52679245ca20
BLAKE2b-256 06a2d6f8921ab4cccb14b0435c0113e5c8323cd9c53377653b28aefeb267a006

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