Skip to main content

Tunisian Shell Command Assistant

Project description


BourguibaGPT ๐Ÿ‡น๐Ÿ‡ณ

Your AI-Powered Tunisian Shell Command Assistant

Python Version: 3.6+
License: MIT
PyPI Version: Check Here

BourguibaGPT is an intelligent CLI tool that transforms natural language requests into safe shell commands using advanced AI models. Designed with a focus on safety and usability, it's your perfect companion for terminal productivity.

CLI Demo: View Image


Features โœจ

  • Natural Language Understanding ๐Ÿ‡น๐Ÿ‡ณ
    Describe tasks in plain English, French, or Arabic (Tunisian dialect friendly!).
  • AI-Powered Command Generation ๐Ÿค–
    Leverages local LLMs via Ollama (default: deepseek-r1:1.5b).
  • Safety First ๐Ÿ”’
    Multi-layer validation against dangerous commands.
  • Interactive CLI ๐Ÿ’ป
    Rich terminal interface with syntax highlighting and progress indicators.
  • Command History ๐Ÿ“š
    Automatic tracking of generated commands with execution status.
  • Cross-Platform ๐ŸŒ
    Supports Linux, macOS, and Windows Subsystem for Linux.
  • Smart Execution โšก
    Optional auto-execution with confirmation prompts.

Installation ๐Ÿ“ฆ

Step 1: Install Ollama (required)

Run the following command in the terminal:

curl -fsSL https://ollama.com/install.sh | sh
ollama pull deepseek-r1:1.5b

Step 2: Install BourguibaGPT

Now install BourguibaGPT with:

pip install bourguibagpt


Quick Start ๐Ÿš€

Run the command:

bourguibagpt

Example interaction:

โ•”โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•—
โ•‘              Your Tunisian Shell Command Assistant           โ•‘
โ•šโ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•

๐Ÿ‡น๐Ÿ‡ณ BourguibaGPT โ†’ list all json files modified last week
Generated command: find . -name "*.json" -mtime -7

Execute? [yes/no]: yes
โœ… Command executed successfully

Advanced Usage ๐Ÿ› ๏ธ

Command Line Options

bourguibagpt [OPTIONS]

  • --model MODEL_NAME โ†’ Specify Ollama model (default: deepseek-r1:1.5b).
  • --temperature FLOAT โ†’ Control creativity (0.1-1.0, default: 0.7).
  • --auto-execute โ†’ Auto-execute validated commands.
  • --history-file PATH โ†’ Custom command history location.

Manage History

Show last 10 commands:
bourguibagpt --history

Execute from history:
bourguibagpt execute "find . -name *.json -mtime -7"


Safety Measures โš ๏ธ

BourguibaGPT includes multiple protection layers:

  • Pattern matching against dangerous commands (e.g., rm -rf /).
  • Command structure validation.
  • Execution confirmation prompts.
  • Restricted special characters handling.
  • Model prompt engineering for safety.

Roadmap ๐Ÿ—บ๏ธ

  • Browser-based GUI
  • Command explanation mode
  • Plugin system for custom validations
  • Shared team history sync
  • Alternative AI backend support

Contributing ๐Ÿค

We welcome contributions! Please see our Contribution Guidelines (CONTRIBUTING.md) for details.


License ๐Ÿ“„

This project is licensed under the MIT License - see the LICENSE file for details.


GitHub Repository: Visit Here
Report Issues: Submit Here



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

bourguibagpt-1.7.8.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

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

bourguibagpt-1.7.8-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file bourguibagpt-1.7.8.tar.gz.

File metadata

  • Download URL: bourguibagpt-1.7.8.tar.gz
  • Upload date:
  • Size: 14.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for bourguibagpt-1.7.8.tar.gz
Algorithm Hash digest
SHA256 98f89489a89373886a00d2567284a300aba67ecfa6ef1669a7dba16522126202
MD5 bfc7a132170937c9d07a81c6b4b6e83e
BLAKE2b-256 143d1be04d887c4fac7881cea5668a86a46a4ce5ce306351854fb481e3e94276

See more details on using hashes here.

File details

Details for the file bourguibagpt-1.7.8-py3-none-any.whl.

File metadata

  • Download URL: bourguibagpt-1.7.8-py3-none-any.whl
  • Upload date:
  • Size: 12.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.12

File hashes

Hashes for bourguibagpt-1.7.8-py3-none-any.whl
Algorithm Hash digest
SHA256 38bd3cd3d6f6160772a329aa6e792a032a9dcb534f1ad259a6a9e5d69b2df87f
MD5 d3caa2e0f6a7bed6c7956a371095e7b9
BLAKE2b-256 053e22d8183e049dedb17f6f34cf2cbfdbe212d0d4451568a5b51b5c87cef891

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