{"id":40980707,"url":"https://github.com/deadsy/py_linenoise","last_synced_at":"2026-01-22T07:14:38.468Z","repository":{"id":54300354,"uuid":"53740591","full_name":"deadsy/py_linenoise","owner":"deadsy","description":"A port of the linenoise line editor to Python.","archived":false,"fork":false,"pushed_at":"2024-05-17T17:37:18.000Z","size":85,"stargazers_count":14,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-17T18:26:17.960Z","etag":null,"topics":["cli","command-line","line-editor","linenoise","python","readline"],"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/deadsy.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":"2016-03-12T16:10:25.000Z","updated_at":"2024-05-17T18:26:23.333Z","dependencies_parsed_at":"2024-05-17T18:26:22.291Z","dependency_job_id":"ae6799bd-bc8a-44c8-b408-564de341337a","html_url":"https://github.com/deadsy/py_linenoise","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/deadsy/py_linenoise","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deadsy%2Fpy_linenoise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deadsy%2Fpy_linenoise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deadsy%2Fpy_linenoise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deadsy%2Fpy_linenoise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deadsy","download_url":"https://codeload.github.com/deadsy/py_linenoise/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deadsy%2Fpy_linenoise/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28658101,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"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":["cli","command-line","line-editor","linenoise","python","readline"],"created_at":"2026-01-22T07:14:37.553Z","updated_at":"2026-01-22T07:14:38.458Z","avatar_url":"https://github.com/deadsy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# py_linenoise\n\nA port of linenoise to Python (because sometimes readline doesn't cut it...)\n\nSee: http://github.com/antirez/linenoise\n\n## Standard Features\n * Single line editing\n * Multiline editing\n * Input from files/pipes\n * Input from unsupported terminals\n * History\n * Completions\n * Hints\n\n## Other Features\n * Line buffer initialization: Set an initial buffer string for editing.\n * Hot keys: Set a special hot key for exiting line editing.\n * Loop Functions: Call a function in a loop until an exit key is pressed.\n\n## Examples\n\n### example1.py\n\nMatches the example code in the C version of the linenoise library.\n\n### example2.py\n\nImplements a heirarchical command line interface using cli.py and the linenoise library.\n\n## Motiviation\n\nThe GNU readline library is a standard package in Python, but sometimes it's hard to use:\n\n * How do you have a hot key exit the line editing so you can offer context sensitive help?\n * How do you call a polling function during line editing so you can check for other things?\n\nHaving a simple, hackable, native Python implementation of line editing makes these things much easier.\nThe linenoise library in C already offers a simple alternative.\nPorting these functions to Python makes it even easier to use on any system with a POSIX compatible terminal environment.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeadsy%2Fpy_linenoise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeadsy%2Fpy_linenoise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeadsy%2Fpy_linenoise/lists"}