{"id":18871939,"url":"https://github.com/pisugar/pisugar-server-py","last_synced_at":"2025-06-21T07:06:14.414Z","repository":{"id":57453077,"uuid":"466378345","full_name":"PiSugar/pisugar-server-py","owner":"PiSugar","description":"Python library to communicate with pisugar-server","archived":false,"fork":false,"pushed_at":"2024-05-01T13:31:42.000Z","size":20,"stargazers_count":12,"open_issues_count":3,"forks_count":5,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-06-18T07:53:24.668Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PiSugar.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":"2022-03-05T07:07:52.000Z","updated_at":"2025-06-06T07:00:35.000Z","dependencies_parsed_at":"2024-11-08T05:29:12.431Z","dependency_job_id":"a9e4e683-b8e3-4aa2-9b1e-ea4ea3704482","html_url":"https://github.com/PiSugar/pisugar-server-py","commit_stats":{"total_commits":13,"total_committers":2,"mean_commits":6.5,"dds":"0.15384615384615385","last_synced_commit":"418f660188a32206d283feaee312a8df18af6fd8"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/PiSugar/pisugar-server-py","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiSugar%2Fpisugar-server-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiSugar%2Fpisugar-server-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiSugar%2Fpisugar-server-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiSugar%2Fpisugar-server-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PiSugar","download_url":"https://codeload.github.com/PiSugar/pisugar-server-py/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiSugar%2Fpisugar-server-py/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261080562,"owners_count":23106597,"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-08T05:28:00.730Z","updated_at":"2025-06-21T07:06:09.400Z","avatar_url":"https://github.com/PiSugar.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pisugar-server-py\n\nPython library to communicate with pisugar-server.\n\n## Requirements\n\npython 3.5+\n\n## Usage\n\nInstallation\n\n    pip3 install pisugar\n\nPython test code\n\n    from pisugar import test_via_tcp\n\n    test_via_tcp(\u003cYOUR HOST ADDR\u003e)\n\nPython example\n\n    from pisugar import *\n    \n    conn, event_conn = connect_tcp('raspberrypi.local')\n    s = PiSugarServer(conn, event_conn)\n\n    s.register_single_tap_handler(lambda: print('single'))\n    s.register_double_tap_handler(lambda: print('double'))\n\n    version = s.get_version()\n\nNOTE: The tap event callback should not block the thread\n\n## License\n\nApache License Version 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpisugar%2Fpisugar-server-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpisugar%2Fpisugar-server-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpisugar%2Fpisugar-server-py/lists"}