Metadata-Version: 2.4
Name: nl2cmd-ai
Version: 3.0.3
Summary: Natural Language to Command Line Interface - Hybrid ML + Rule Engine with Git Support
Home-page: https://github.com/Cosy-y/NL2CMD
Author: Cosy-y
Author-email: your.email@example.com
Project-URL: Bug Reports, https://github.com/Cosy-y/NL2CMD/issues
Project-URL: Source, https://github.com/Cosy-y/NL2CMD
Project-URL: Documentation, https://github.com/Cosy-y/NL2CMD/blob/main/COMPLETE_PROJECT_DOCUMENTATION.md
Keywords: cli,command-line,natural-language,ml,ai,automation,git,shell,terminal
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: System :: Shells
Classifier: Topic :: Utilities
Classifier: Topic :: Software Development :: User Interfaces
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pyperclip>=1.8.2
Requires-Dist: scikit-learn>=1.3.0
Requires-Dist: numpy>=1.24.0
Requires-Dist: rapidfuzz>=3.0.0
Requires-Dist: python-Levenshtein>=0.21.0
Requires-Dist: fuzzywuzzy>=0.18.0
Requires-Dist: nltk>=3.8.0
Requires-Dist: sentence-transformers>=2.2.0
Requires-Dist: requests>=2.31.0
Requires-Dist: beautifulsoup4>=4.12.0
Requires-Dist: reportlab>=4.0.0
Provides-Extra: dev
Requires-Dist: pytest>=7.0.0; extra == "dev"
Requires-Dist: black>=22.0.0; extra == "dev"
Requires-Dist: flake8>=4.0.0; extra == "dev"
Requires-Dist: twine>=4.0.0; extra == "dev"
Requires-Dist: wheel>=0.37.0; extra == "dev"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license-file
Dynamic: project-url
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

NL2CMD - Natural Language to Command Line Interface

[![PyPI version](https://badge.fury.io/py/nl2cmd-ai.svg)](https://badge.fury.io/py/nl2cmd-ai)
[![Python Support](https://img.shields.io/pypi/pyversions/nl2cmd-ai.svg)](https://pypi.org/project/nl2cmd-ai/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

Transform natural language into command-line instructions instantly

NL2CMD  is an intelligent command-line interface that converts natural language queries into actual shell commands using a hybrid ML + Rule-based approach and works on multiple platform windows and linux



### Installation
```bash
pip install nl2cmd-ai
```

### Usage
```bash
# Single command mode
n2c "list all files"
n2c "create file config.json"
n2c "check git status"
n2c "kill process chrome"

# Interactive mode
n2c -i
n2c> show system info
n2c> create folder project and create file readme.txt
n2c> good  # Mark command as correct
n2c> exit

# Training
n2c --train     # Train ML model
n2c --retrain   # Retrain with feedback
```

##  Examples

### Basic Commands
```bash
n2c "list all files"              → dir / ls
n2c "show system information"     → systeminfo / uname -a
n2c "check disk health"           → wmic diskdrive get status
n2c "find large files"            → forfiles /S /M * /C "cmd /c if @fsize GEQ 104857600 echo @path"
```

### Parameterized Commands
```bash
n2c "create file config.json"     → echo. > config.json
n2c "create folder Documents"     → mkdir Documents
n2c "kill process firefox"        → taskkill /IM firefox.exe /F
n2c "copy file src.txt to dst.txt" → copy src.txt dst.txt
```

### Git Commands
```bash
n2c "check git status"            → git status
n2c "push to github"              → git push
n2c "create new branch feature"   → git branch feature
n2c "commit changes with message" → git commit -m "Update"
```

### Multi-Command Chaining
```bash
n2c "create folder project and create file readme.txt"
→ mkdir project && echo. > readme.txt

n2c "list files then show system info"
→ dir && systeminfo
```



### Local Setup
```bash
git clone https://github.com/Cosy-y/NL2CMD.git
cd NL2CMD
pip install -r requirements.txt
python train_model.py
n2c "test command"
```

### Building Package
```bash
pip install build twine
python -m build
twine upload dist/*
```


Sem 5 project

## 📄 License

MIT License - see [LICENSE](LICENSE) file for details.

