{"id":22404539,"url":"https://github.com/clamor-py/anysocks","last_synced_at":"2025-10-06T17:25:49.435Z","repository":{"id":36077873,"uuid":"193564726","full_name":"clamor-py/anysocks","owner":"clamor-py","description":"Implementation of the WebSocket protocol on top of anyio","archived":false,"fork":false,"pushed_at":"2024-12-01T21:47:28.000Z","size":85,"stargazers_count":8,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-01T22:31:36.767Z","etag":null,"topics":["asyncio","clamor","curio","library","python","python3","trio","websocket","websocket-client","websocket-library","websockets"],"latest_commit_sha":null,"homepage":"http://anysocks.readthedocs.io/","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/clamor-py.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":"2019-06-24T19:15:48.000Z","updated_at":"2024-02-28T11:22:21.000Z","dependencies_parsed_at":"2023-02-10T13:45:41.056Z","dependency_job_id":"ee221cb0-2505-4ef4-a994-42172748d382","html_url":"https://github.com/clamor-py/anysocks","commit_stats":{"total_commits":51,"total_committers":3,"mean_commits":17.0,"dds":0.1568627450980392,"last_synced_commit":"69696f91507c22ce98df2446d4b8bb70996f62ec"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clamor-py%2Fanysocks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clamor-py%2Fanysocks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clamor-py%2Fanysocks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clamor-py%2Fanysocks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clamor-py","download_url":"https://codeload.github.com/clamor-py/anysocks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228275017,"owners_count":17895008,"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":["asyncio","clamor","curio","library","python","python3","trio","websocket","websocket-client","websocket-library","websockets"],"created_at":"2024-12-05T10:13:46.112Z","updated_at":"2025-10-06T17:25:49.377Z","avatar_url":"https://github.com/clamor-py.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# anysocks\n\nThis library implements [the WebSocket protocol](https://tools.ietf.org/html/rfc6455) based on the [Sans-IO library wsproto](https://github.com/python-hyper/wsproto).\nI/O is handled by the [anyio project](https://github.com/agronholm/anyio) which makes this library compatible to asyncio, trio and curio.\n\n[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fclamor-py%2Fanysocks%2Fbadge%3Fref%3Dmaster\u0026style=flat)](https://actions-badge.atrox.dev/clamor-py/anysocks/goto?ref=master)\n[![Maintainability](https://api.codeclimate.com/v1/badges/9346c58f1ff2ab188c9a/maintainability)](https://codeclimate.com/github/clamor-py/anysocks/maintainability)\n[![CodeFactor](https://www.codefactor.io/repository/github/clamor-py/anysocks/badge)](https://www.codefactor.io/repository/github/clamor-py/anysocks)\n[![Documentation Status](https://readthedocs.org/projects/anysocks/badge/?version=latest)](https://anysocks.readthedocs.io/en/latest/?badge=latest)\n[![PyPI version](https://badge.fury.io/py/anysocks.svg)](https://badge.fury.io/py/anysocks)\n\n## Installation\n\nThis library requires Python 3.5+. You can install it directly from PyPI:\n\n```sh\npython3 -m pip install -U anysocks\n```\n\nIf you want the cutting edge development version instead, install it directly from GitHub:\n\n```sh\npython3 -m pip install -U git+https://github.com/clamor-py/anysocks@master#egg=anysocks\n```\n\n## Documentation\n\nThis README only provides a short overview, see the full documentation [here](https://anysocks.readthedocs.io/en/latest).\n\n## Example\n\n```python\nimport anyio\nfrom anysocks import open_connection\n\n\nasync def main():\n    async with open_connection('wss://echo.websocket.org') as con:\n        print('Connection established!')\n\n        # First, let's send some text to the server.\n        text = input('What to send? ')\n        await con.send_message(text)\n\n        # Now, we receive and verify the server's response.\n        message = await con.get_message()\n        assert message == text, \"Received {}, expected {}\".format(message, text)\n\n    print('Connection closed with code {}', con.close_code.value)\n\nanyio.run(main)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclamor-py%2Fanysocks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclamor-py%2Fanysocks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclamor-py%2Fanysocks/lists"}