{"id":16653298,"url":"https://github.com/mattmoony/pash","last_synced_at":"2026-04-28T02:31:45.024Z","repository":{"id":57450937,"uuid":"253578736","full_name":"MattMoony/pash","owner":"MattMoony","description":"Interactive shell for python scripts ... Since I used one in many of my latter projects and don't want to develop a new one everytime. 👓","archived":false,"fork":false,"pushed_at":"2021-03-28T09:13:04.000Z","size":52,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-19T10:31:08.565Z","etag":null,"topics":["arguments","cool","interactive","programming","python","scripting","scripts","shell","structure"],"latest_commit_sha":null,"homepage":"https://pash.readthedocs.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MattMoony.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}},"created_at":"2020-04-06T18:10:48.000Z","updated_at":"2023-12-19T12:59:41.000Z","dependencies_parsed_at":"2022-09-26T17:31:21.980Z","dependency_job_id":null,"html_url":"https://github.com/MattMoony/pash","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MattMoony%2Fpash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MattMoony%2Fpash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MattMoony%2Fpash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MattMoony%2Fpash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MattMoony","download_url":"https://codeload.github.com/MattMoony/pash/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243261076,"owners_count":20262789,"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","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":["arguments","cool","interactive","programming","python","scripting","scripts","shell","structure"],"created_at":"2024-10-12T09:43:45.920Z","updated_at":"2025-12-27T05:30:44.862Z","avatar_url":"https://github.com/MattMoony.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Documentation Status](https://readthedocs.org/projects/pash/badge/?version=latest)](https://pash.readthedocs.io/en/latest/?badge=latest) ![pypi version](https://img.shields.io/pypi/v/pash-cmd) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pash-cmd) ![GitHub License](https://img.shields.io/github/license/mattmoony/pash)\n\n# pash\n\n---\n\n## About\n\nSince many of my recent Python projects have included an interactive shell / command prompt of some sorts,\nI've decided to write my own package for it, so that I won't have to think of a new way of handling commands everytime.\n\nI hope it can be of some use to other Python programmers as well, as it'll hopefully make my life a lot easier.\n\n## Install\n\nInstalling `pash` is very easy thanks to pip:\n\n```bash\npython3 -m pip install pash-cmd\n```\n\n## Usage\n\nFirst, create a shell ...\n\n```python\nfrom pash.shell import Shell\nsh = Shell(prompt='$ ')\n```\n\n... and then, simply add as many commands as you want/need!\n\n```python\nfrom pash.command import Command\nsh.add_command(Command('ping', callback=pong))\n...\n```\n\nYou can even create _cascading commands_ ...\n\n```python\nfrom pash.command import CascCommand\nsh.add_command(CascCommand('go', cmds=[\n    Command('north', callback=gnorth),\n    Command('south', callback=gsouth),\n]))\n...\n```\n\n## Documentation\n\nThe full docs are hosted [here](https://pash.readthedocs.io). (Please excuse the messiness, it's my first time working with sphinx, readthedocs, etc. ^^)\n\n---\n\n... Matthias M. (April 2020)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattmoony%2Fpash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattmoony%2Fpash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattmoony%2Fpash/lists"}