{"id":15472264,"url":"https://github.com/sethmlarson/fix-python-repl-exit","last_synced_at":"2025-03-12T06:16:19.026Z","repository":{"id":66168593,"uuid":"254928911","full_name":"sethmlarson/fix-python-repl-exit","owner":"sethmlarson","description":"A simple script that makes typing `exit` in a Python interpreter do what you expect","archived":false,"fork":false,"pushed_at":"2020-04-11T21:17:29.000Z","size":3,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-18T16:20:38.413Z","etag":null,"topics":["exit","interpreter","python","repl"],"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/sethmlarson.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":"2020-04-11T18:22:08.000Z","updated_at":"2021-07-12T03:22:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"3bee0f92-5853-4af3-b273-c0885fcbd917","html_url":"https://github.com/sethmlarson/fix-python-repl-exit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sethmlarson%2Ffix-python-repl-exit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sethmlarson%2Ffix-python-repl-exit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sethmlarson%2Ffix-python-repl-exit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sethmlarson%2Ffix-python-repl-exit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sethmlarson","download_url":"https://codeload.github.com/sethmlarson/fix-python-repl-exit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243165536,"owners_count":20246725,"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":["exit","interpreter","python","repl"],"created_at":"2024-10-02T02:30:11.209Z","updated_at":"2025-03-12T06:16:19.008Z","avatar_url":"https://github.com/sethmlarson.png","language":"Python","readme":"# Fix Python REPL `exit`\n\nA simple script that makes typing `exit` in a Python interpreter do what you expect.\n\n## How to Use\n\nThe whole script to make things work is in the file `fix-python-repl-exit.py`.\n\nIf you have a `PYTHONSTARTUP` script already, simply paste the contents of the file\ninto your existing script. If you don't have a script already then you can setup one\nup like so:\n\n```bash\n# Create the initial script\n$ touch ~/.pythonstartup.py\n\n# Add the PYTHONSTARTUP environment variable to your bash / console profile:\n# The name of the file '~/.bashrc' may be different if you're on a different OS.\n$ echo 'export PYTHONSTARTUP=\"$HOME/.pythonstartup.py\"' \u003e ~/.bashrc\n\n# Add things to the '.pythonstartup.py' file:\n$ cat fix-python-repl-exit.py \u003e\u003e ~/.pythonstartup.py\n\n# Try it out!\n$ python\n\u003e\u003e\u003e exit\n🎉\n```\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsethmlarson%2Ffix-python-repl-exit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsethmlarson%2Ffix-python-repl-exit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsethmlarson%2Ffix-python-repl-exit/lists"}