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

Uploaded Python 3

File details

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

File metadata

  • Download URL: bourguibagpt-1.7.6.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.6.tar.gz
Algorithm Hash digest
SHA256 b768af2cea5f889b94bf7aa7da8ea71a682d50692675e552e307d000254509f6
MD5 3843f30fa4ad149b5be4da7c8cb30ce3
BLAKE2b-256 aa6aef3789cf35d510f2f4a198d89d49a8a9736211277175ab8fd934999c04bd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bourguibagpt-1.7.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 8925c0ce1b8a03681503073e0e7f8c194b9f8e104e166f2aaa251ce8ee06ea76
MD5 ed702fac880253c088eabf7e9ea094af
BLAKE2b-256 4977b92428ef226c4599d5681db785f210e7952d2ef3c7becb9ed977faa67531

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