{"library":"sockets","title":"sockets","type":"library","description":"A lightweight Python package for creating simple servers and clients with sockets. Version 1.0.0 is the initial release. No active maintenance or release cadence observed.","language":"python","status":"active","last_verified":"Fri May 01","install":{"commands":["pip install sockets"],"cli":null},"imports":["from sockets import server","from sockets import client"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":null,"github":"https://github.com/eshiofune/sockets","docs":null,"changelog":null,"pypi":"https://pypi.org/project/sockets/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"from sockets import server, client\n\ndef handle_client(conn):\n    data = conn.recv(1024)\n    print(\"Received:\", data.decode())\n    conn.sendall(b\"Hello from server\")\n    conn.close()\n\n# Run server in background (example)\nimport threading\nt = threading.Thread(target=server.serve, args=('localhost', 9999, handle_client))\nt.start()\n\n# Client example\nclient.send('localhost', 9999, \"Hello server\")","lang":"python","description":"Create a simple echo server and client using sockets library.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}