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.7.tar.gz (14.1 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.7-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bourguibagpt-1.7.7.tar.gz
  • Upload date:
  • Size: 14.1 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.7.tar.gz
Algorithm Hash digest
SHA256 0d5a70ea00f8c383489cd45ae581348155c2868bf4824cbe6c283436c0d9a393
MD5 8a468bbaf373e5908583369c64efaecb
BLAKE2b-256 02ba9c23b69c073146c7bab766adfa4c54635e1f20bcb9f5f9944ec0433be516

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bourguibagpt-1.7.7-py3-none-any.whl
  • Upload date:
  • Size: 12.3 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 86b954a844b24834c58ee0eff2ca0c7f29e0d037bf8ea8e42af10a636de4f906
MD5 84fd56d6921625d5788c491edb7e40ef
BLAKE2b-256 1999cbd1478e8cf8836c43c3faf9fad78c7b5797b0cd709fe61dea57390cac02

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