{"id":22779395,"url":"https://github.com/egebilecen/pywebsocket","last_synced_at":"2025-09-16T09:58:21.431Z","repository":{"id":57458464,"uuid":"105921399","full_name":"egebilecen/pywebsocket","owner":"egebilecen","description":"A simple RFC6455 Websocket server implementation in Python.","archived":false,"fork":false,"pushed_at":"2021-09-28T01:22:20.000Z","size":754,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-18T20:29:42.268Z","etag":null,"topics":["python-websocket","websocket-server"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/egebilecen.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}},"created_at":"2017-10-05T17:48:43.000Z","updated_at":"2024-05-14T18:05:42.000Z","dependencies_parsed_at":"2022-09-09T22:50:23.680Z","dependency_job_id":null,"html_url":"https://github.com/egebilecen/pywebsocket","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/egebilecen/pywebsocket","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egebilecen%2Fpywebsocket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egebilecen%2Fpywebsocket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egebilecen%2Fpywebsocket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egebilecen%2Fpywebsocket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/egebilecen","download_url":"https://codeload.github.com/egebilecen/pywebsocket/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egebilecen%2Fpywebsocket/sbom","scorecard":{"id":368573,"data":{"date":"2025-08-11","repo":{"name":"github.com/egebilecen/pywebsocket","commit":"a4273cac8fc364fbed4a7949423a591036732cf0"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-18T12:27:07.387Z","repository_id":57458464,"created_at":"2025-08-18T12:27:07.387Z","updated_at":"2025-08-18T12:27:07.387Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275399643,"owners_count":25457782,"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","status":"online","status_checked_at":"2025-09-16T02:00:10.229Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["python-websocket","websocket-server"],"created_at":"2024-12-11T20:08:40.538Z","updated_at":"2025-09-16T09:58:21.403Z","avatar_url":"https://github.com/egebilecen.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pywebsocket\nSimple websocket server library written in Python.\n\nExample Server Code: \u003cbr\u003e\n**main.py**\n\n```python\nfrom pywebsocket.server import WebsocketServer, WebsocketClient\n\ndef on_client_connect(server : WebsocketServer, \n                      client : WebsocketClient) -\u003e None:\n    # Add this client's socket id to a channel's user list.\n    server.default_channel[\"users\"].append(client.get_id())\n    client.data[\"current_channel\"] = server.default_channel\n\n    print(server.channel_list)\n\ndef on_client_disconnect(server : WebsocketServer, \n                          client : WebsocketClient) -\u003e None:\n    # Remove the client from the channel it is currently in.\n    client.data[\"current_channel\"][\"users\"].remove(client.get_id())\n\n    print(server.channel_list)\n\ndef on_client_data(server : WebsocketServer, \n                   client : WebsocketClient,\n                   data) -\u003e None:\n    # Echo client's message.\n    print(\"Received from client:\", data)\n    server.send_string(client.get_id(), data)\n\nserver = WebsocketServer(\"192.168.1.2\", 3630,\n                         client_buffer_size       = 1024,\n                         pass_data_as_string      = True,\n                         daemon_handshake_handler = False, # if set to True, main process \n                                                           # will exit immediately. Be sure to\n                                                           # create an endless loop after\n                                                           # server.start() has been called.\n                         debug                    = True)\n\n# You can set your own variables to server like below:\nserver.channel_list = {\n    \"general\" : {\n        \"users\" : []\n    },\n    \"news\" : {\n        \"users\" : []\n    }\n}\nserver.default_channel = server.channel_list[\"general\"]\n\nserver.set_special_handler(\"client_connect\",    on_client_connect)\nserver.set_special_handler(\"client_disconnect\", on_client_disconnect)\nserver.set_special_handler(\"client_data\",       on_client_data)\n\nserver.start()\n```\n\n# Installation\nInstall via `pip`:\n\n```\npip install pywebsocket\n```\n\nOr you can install manually by cloning this repo and running this command:\n\n```\npython3 setup.py install\n```\n\n# Documentation\nPlease refer to [here](https://egebilecen.github.io/pywebsocket/namespaces.html) for documentation.\n\n---\n\n**Notes:**\n* Doesn't support **HTTPS** connection.\n* Server does support receiving fragmented messages but it doesn't support sending fragmented messages.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegebilecen%2Fpywebsocket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fegebilecen%2Fpywebsocket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegebilecen%2Fpywebsocket/lists"}