{"id":17086560,"url":"https://github.com/arl/iolib2","last_synced_at":"2025-03-23T14:41:35.577Z","repository":{"id":138955573,"uuid":"109182393","full_name":"arl/iolib2","owner":"arl","description":"Output device abstraction. Mask device differences (serial port, LPT, file, ethernet, etc.). Extendable","archived":false,"fork":false,"pushed_at":"2017-11-02T13:30:45.000Z","size":943,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-28T20:44:39.138Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/arl.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}},"created_at":"2017-11-01T20:48:17.000Z","updated_at":"2024-07-27T02:37:03.000Z","dependencies_parsed_at":"2023-12-21T05:20:59.584Z","dependency_job_id":null,"html_url":"https://github.com/arl/iolib2","commit_stats":null,"previous_names":["aurelien-rainone/iolib2"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arl%2Fiolib2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arl%2Fiolib2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arl%2Fiolib2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arl%2Fiolib2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arl","download_url":"https://codeload.github.com/arl/iolib2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245119575,"owners_count":20563762,"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-10-14T13:28:56.518Z","updated_at":"2025-03-23T14:41:35.542Z","avatar_url":"https://github.com/arl.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Example of use:\n\n## Python example client:\n- cd `client`\n- run: `virtualenv -p $(which python2) .`\n- enable the virtualenv with `source ./bin/activate`\n- install python deps: `pip install -r requirements.txt`\n- Even if the daemon is not started yet, we can still use the client to send\n  some text, that's not a problem thanks to the use of ZeroMQ :-D.\n- Let's choose the `file://` output and write to `/tmp/myfile`\n\n```sh\n$ echo 'hello' | python client.py -p 1234 -u file://name=/tmp/world\nConnecting to daemon...\n('set_port -\u003e', (0, None))\n('write -\u003e', (0, None))\n('send -\u003e', (0, None))\n('reset_port -\u003e', (0, None))\n```\n\n## Go daemon:\n- install ZeroMQ version 4.0.1 or above on your system, (`libzmq` on linux)\n- run: `go install`\n- run: `iolib2 1234` to start the daemon on port `1234`. In the `iolib2` python\n  module the `IOLin2Daemon` class acts as a wrapper around the Go executable, it\n  should be used as a singleton.\n\n```sh\n$ iolib2 1234\nINFO[0000] waiting for requests or program termination\nINFO[0025] received request \"SET-PORT|file://name=/tmp/world\"\nDEBU[0025] received SET-PORT with param file://name=/tmp/world\nname=/tmp/world\nDEBU[0025] fileport.set(map[name:/tmp/world])\nINFO[0025] fileport, set filename to /tmp/world\nINFO[0025] received request \"WRITE|hello\n\"\nDEBU[0025] received WRITE with param hello\n\nINFO[0025] received request \"SEND|\"\nDEBU[0025] received SEND with param\nINFO[0025] received request \"RESET|\"\nDEBU[0025] received RESET with param\nINFO[0025] reset current port, \"file\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farl%2Fiolib2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farl%2Fiolib2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farl%2Fiolib2/lists"}