{"id":16190617,"url":"https://github.com/tiagocoutinho/gserial","last_synced_at":"2025-03-19T03:30:58.346Z","repository":{"id":57434117,"uuid":"212176979","full_name":"tiagocoutinho/gserial","owner":"tiagocoutinho","description":"gevent friendly serial line","archived":false,"fork":false,"pushed_at":"2019-12-23T16:08:51.000Z","size":94,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-09T10:04:49.279Z","etag":null,"topics":["gevent","python","ser2net","serial","tcp-bridge"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tiagocoutinho.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-01T19:01:45.000Z","updated_at":"2022-07-30T07:57:44.000Z","dependencies_parsed_at":"2022-08-27T22:22:35.546Z","dependency_job_id":null,"html_url":"https://github.com/tiagocoutinho/gserial","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiagocoutinho%2Fgserial","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiagocoutinho%2Fgserial/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiagocoutinho%2Fgserial/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tiagocoutinho%2Fgserial/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tiagocoutinho","download_url":"https://codeload.github.com/tiagocoutinho/gserial/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243965723,"owners_count":20375920,"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":["gevent","python","ser2net","serial","tcp-bridge"],"created_at":"2024-10-10T07:43:45.506Z","updated_at":"2025-03-19T03:30:58.065Z","avatar_url":"https://github.com/tiagocoutinho.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gevent-serial\n\nA python 3 [gevent](https://gevent.org) friendly access to the serial port.\n\nDeeply inspired by [pyserial](https://github.com/pyserial/pyserial). It tries to mimic\nits interface but it doesn't aim to garantee full API compatibility.\n\nFor now only Linux (and possibly any BSD or posix complient system) is supported.\n\nSupport for local serial port, RFC2217, and RS485 (untested).\n\nIncludes an optional serial to TCP bridge (experimental).\n\n\n## Installation\n\nFrom within your favourite python environment:\n\n```console\n$ pip install gevent-serial\n```\n\n### Serial to TCP bridge\n\nOptional serial to TCP bridge using RFC2217 or Raw TCP protocols.\n\nIt requires you to install the optional server package with:\n\n```console\n$ pip install gevent-serial[ser2tcp]\n```\n\nThe ser2tcp server needs a configuration file written in YAML.\nIt consists of a list of entries. Each entry describes:\n\n* url: the serial port address (ex: /dev/ttyS0),\n* listener: the TCP port listener (ex: :8000)\n* mode: socket mode (rfc2217 or raw) (default: rfc2217)\n* ... any other property accepted by the Serial object constructor\n  (ex: baudrate, parity)\n\nHere is an example:\n\n```yaml\n- url: /dev/ttyS0\n  baudrate: 9600\n  listener: :2217   # listen on all network interfaces, TCP port 2217\n  mode: rfc2217\n\n- url: /dev/ttyS1\n  baudrate: 115200\n  mode: raw\n  listener: :2218\n\n- url: loop://\n  listener: :2219\n  baudrate: 115200\n  mode: raw\n\n- url: loop://\n  listener: :2220\n  baudrate: 9600\n  mode: rfc2217\n```\n\nTo start the ser2tcp server simply type:\n\n```console\n$ ser2tcp -c \u003cpath to the config YAML file\u003e\n```\n\n(type `ser2tcp --help` to see additional options)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiagocoutinho%2Fgserial","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftiagocoutinho%2Fgserial","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiagocoutinho%2Fgserial/lists"}