{"id":18373106,"url":"https://github.com/thanatisia/py-chroot","last_synced_at":"2025-04-11T00:59:03.200Z","repository":{"id":242889750,"uuid":"810852130","full_name":"Thanatisia/py-chroot","owner":"Thanatisia","description":"A simple implementation of chroot made in python that starts up a REPL for traversing the chroot virtual environment","archived":false,"fork":false,"pushed_at":"2024-06-06T15:47:05.000Z","size":1247,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T00:59:00.023Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Thanatisia.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOGS.md","contributing":"CONTRIBUTING.md","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-06-05T13:22:54.000Z","updated_at":"2024-06-07T14:32:16.000Z","dependencies_parsed_at":"2024-12-24T02:42:47.221Z","dependency_job_id":"5531023d-25ee-4265-8854-44dad98ae7fb","html_url":"https://github.com/Thanatisia/py-chroot","commit_stats":null,"previous_names":["thanatisia/py-chroot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thanatisia%2Fpy-chroot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thanatisia%2Fpy-chroot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thanatisia%2Fpy-chroot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Thanatisia%2Fpy-chroot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Thanatisia","download_url":"https://codeload.github.com/Thanatisia/py-chroot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248322611,"owners_count":21084336,"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":[],"created_at":"2024-11-06T00:08:39.523Z","updated_at":"2025-04-11T00:59:03.182Z","avatar_url":"https://github.com/Thanatisia.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pychroot - Chroot implementation in python with TUI/REPL\n\n## Information\n### Project\n+ Project Name: py-chroot\n+ Package Version: v0.2.0\n- Repository:\n    + GitHub: https://github.com/Thanatisia/py-chroot\n\n### Description\n+ A simple chroot CLI utility made in python that starts up a REPL for traversing the chroot\n\n### Motivation\n- I wanted to see if I could make a proper chroot interface/shell in Python as I knew how to do the fundamental workflow on their own (i.e. individual functions to chroot into the system, print and exit)\n    + The thought of making a cross-platform chroot utility came to mind, hence the project idea\n    + The more I wrote, I somehow ended up with a REPL and I guess a working (albeit incredibly lackluster) shell\n\n### Demo\n+ ![pychroot demo 1](resources/demo/gifs/pychroot.gif)\n\n## Setup\n### Dependencies\n+ python\n### Pre-Requisites\n\n## Documentations\n### Synopsis/Syntax\n```bash\npy-chroot {options} \u003carguments\u003e\n```\n\n### Parameters\n#### Positionals\n#### Optionals\n- With Arguments\n    - `-p | --prompt [custom-prompt]` : Specify the custom string you wish to set as your REPL/shell prompt\n        + Type: String\n        - Notes\n            + Ensure that you wrap your string with a single quote ('your-string') to ensure that none of the string gets executed on boot time\n        + Format: `-p '\"your-string\"'\n    - `-r | --root [root-directory]` : Specify the target root directory within the root filesystem to jump into\n        + Type: String\n    - `-m | --mount [rootfs-mount-path]` : Specify the target root filesystem mount path to chroot into\n        + Type: String\n- Flags\n    + -h | --help\n    + -v | --version\n\n### Usage\n- Basic Chroot into a new root filesystem\n    ```bash\n    py-chroot {-m|--mount [rootfs-mount-directory]} {-r|--root [root-directory]}\n    ```\n\n### Terminal UI (REPL) Key Commands\n- `cd [directory]` : Change directory into the specified directory path\n- enter : Enter/Chroot into the specified new rootfs directory\n- exit | quit : Exit the REPL shell\n- exit-chroot : Exit the current chroot session to go back up to the original rootfs\n- help : Display help menu (this)\n- version : Display system information\n- \u003cdefault\u003e : The command will be executed on run\n\n## Wiki\n\n## Resources\n\n## References\n+ [nessy.info - 2013-12-05 - Python chroot and exit chroot](https://nessy.info/post/2013-12-05-python-chroot-and-exit-chroot/)\n\n## Remarks\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthanatisia%2Fpy-chroot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthanatisia%2Fpy-chroot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthanatisia%2Fpy-chroot/lists"}