{"id":34079799,"url":"https://github.com/g000d1ess/snakeshell","last_synced_at":"2025-12-14T11:02:17.101Z","repository":{"id":221769528,"uuid":"755297091","full_name":"G000D1ESS/snakeshell","owner":"G000D1ESS","description":"🐍 SnakeShell: a Bash-like Unix Shell in Python","archived":false,"fork":false,"pushed_at":"2024-11-01T20:18:15.000Z","size":115,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-10-27T07:26:12.068Z","etag":null,"topics":["bash","cli","console","linux","python","shell","snake","unix","unix-shell"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/G000D1ESS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-09T20:45:55.000Z","updated_at":"2024-11-15T14:17:11.000Z","dependencies_parsed_at":"2024-02-10T00:26:24.863Z","dependency_job_id":"558a72b4-ef0d-4b0e-8a4c-e638e510589a","html_url":"https://github.com/G000D1ESS/snakeshell","commit_stats":null,"previous_names":["g000d1ess/snakeshell"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/G000D1ESS/snakeshell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/G000D1ESS%2Fsnakeshell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/G000D1ESS%2Fsnakeshell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/G000D1ESS%2Fsnakeshell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/G000D1ESS%2Fsnakeshell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/G000D1ESS","download_url":"https://codeload.github.com/G000D1ESS/snakeshell/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/G000D1ESS%2Fsnakeshell/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27726941,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-14T02:00:11.348Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","cli","console","linux","python","shell","snake","unix","unix-shell"],"created_at":"2025-12-14T11:02:15.946Z","updated_at":"2025-12-14T11:02:17.096Z","avatar_url":"https://github.com/G000D1ESS.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🐍 SnakeShell: A Bash-like Unix Shell in Python\n\n![License](https://img.shields.io/badge/license-MIT-blue.svg)\n![Python](https://img.shields.io/badge/python-3.12-blue.svg)\n![Contributions Welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg)\n\nWelcome to **SnakeShell**! 🎉\n\nThis project aims to develop a Unix shell similar to Bash, written in Python and utilizing the PEG parser [TatSu](https://github.com/neogeny/TatSu). SnakeShell is designed to replicate core functionalities of traditional Unix shells while incorporating modern features.\n\n## 📚 Table of Contents\n\n- [Features](#-features)\n- [Installation](#-installation)\n- [Usage](#-usage)\n- [Roadmap](#-roadmap)\n- [Contributing](#-contributing)\n- [License](#-license)\n\n## 🌟 Features\n\n- ✨ **Process Management**: Forking, executing, and waiting for processes\n- ✨ **File Redirection and Pipes**: Input/output redirection and command pipelines\n- 🚧 **Job Control**: Background processes and signal handling\n- ⏳ **Quoting and Expansion**: Variable expansion and globbing\n- ⏳ **Interactive Features**: Command history and auto-completion\n\n## 🚀 Installation\n\n### Install with pip (Recommended):\n\n- Install SnakeShell from PyPI:\n\n    ```bash\n    python3 -m pip install cobrashell\n    ```\n\n### From Source:\n\n1. **Clone the repository**\n\n    ```bash\n    git clone https://github.com/G000D1ESS/snakeshell.git\n    ```\n\n2. **Navigate to the project directory**\n\n    ```bash\n    cd snakeshell\n    ```\n\n3. **Run the installation**\n\n    ```bash\n    python3 -m pip install .\n    ```\n\n## 🎮 Usage\n\nTo use this Unix Shell, follow these steps:\n\n1. **Start the shell by executing the command:**\n\n    ```bash\n    snake\n    ```\n\n2. **Enter commands in the interactive shell and press Enter to execute them.**\n\n    Example commands:\n\n    ```bash\n    ls -l\n    cd /path/to/directory\n    mkdir new_directory\n    ```\n\n## 📋 Roadmap\n\n### Development Stages\n\n#### Stage 1: Fork/Exec/Wait ✅\n\n- Basics of Unix processes\n- Implement the simplest possible shell\n- Support built-in commands like `cd`, `exec`, etc.\n- Search for commands in `PATH`\n- Handle exit statuses and the `!` operator\n- Support command lists using `;`, `\u0026\u0026`, and `||`\n- Support subshells and line continuation\n\n#### Stage 2: Files and Pipes ✅\n\n- Implement file descriptor redirection (`\u003c`, `\u003e`, `\u003e\u003e`, `\u003c\u003e`)\n- Support pipes between commands (`|`)\n- Handle file descriptor duplication (`\u003c\u0026`, `\u003e\u0026`)\n- Implement process and command substitution (`\u003c(...)`, `$(...)`)\n- Ensure proper handling of file descriptors and inheritance\n\n#### Stage 3: Job Control and Signals 🚧\n\n- Discuss signals and support for keyboard shortcuts like `Ctrl+C`, `Ctrl+\\`, and `Ctrl+Z`\n- Implement background processes and job control (`\u0026`, `jobs`, `fg`, `bg`)\n- Ensure proper handling of sessions and process groups\n\n#### Stage 4: Quoting and Expansion ⏳\n\n- Handle environments and variables\n- Implement globbing (wildcard matching)\n- Support quoting and character escaping\n- Handle alias and function expansions\n\n#### Stage 5: Interactivity ⏳\n\n- Enhance the shell for interactive work\n- Support command history\n- Implement auto-completion\n- Customize prompts and themes\n\n## 📄 License\n\nThis project is licensed under the **MIT License** - see the [LICENSE](LICENSE) file for details.\n\n---\n\nFeel free to ⭐ star the repository if you find it interesting!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fg000d1ess%2Fsnakeshell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fg000d1ess%2Fsnakeshell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fg000d1ess%2Fsnakeshell/lists"}