{"id":21306372,"url":"https://github.com/davidemoro/play_websocket","last_synced_at":"2025-07-11T21:31:29.217Z","repository":{"id":57453408,"uuid":"118928922","full_name":"davidemoro/play_websocket","owner":"davidemoro","description":"pytest-play support for websockets","archived":false,"fork":false,"pushed_at":"2019-01-25T23:17:05.000Z","size":36,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2025-06-02T06:35:07.909Z","etag":null,"topics":["pytest","python","testing","websocket"],"latest_commit_sha":null,"homepage":"https://github.com/pytest-dev/pytest-play","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/davidemoro.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-01-25T15:14:37.000Z","updated_at":"2019-02-22T23:01:33.000Z","dependencies_parsed_at":"2022-08-29T08:41:41.898Z","dependency_job_id":null,"html_url":"https://github.com/davidemoro/play_websocket","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/davidemoro/play_websocket","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidemoro%2Fplay_websocket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidemoro%2Fplay_websocket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidemoro%2Fplay_websocket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidemoro%2Fplay_websocket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidemoro","download_url":"https://codeload.github.com/davidemoro/play_websocket/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidemoro%2Fplay_websocket/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263806610,"owners_count":23514416,"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":["pytest","python","testing","websocket"],"created_at":"2024-11-21T16:23:30.509Z","updated_at":"2025-07-11T21:31:28.861Z","avatar_url":"https://github.com/davidemoro.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"==============\nplay websocket\n==============\n\n\n.. image:: https://img.shields.io/pypi/v/play_websocket.svg\n        :target: https://pypi.python.org/pypi/play_websocket\n\n.. image:: https://travis-ci.org/davidemoro/play_websocket.svg?branch=develop\n       :target: https://travis-ci.org/davidemoro/play_websocket\n\n.. image:: https://readthedocs.org/projects/play-websocket/badge/?version=latest\n        :target: https://play-websocket.readthedocs.io/en/latest/?badge=latest\n        :alt: Documentation Status\n\n.. image:: https://codecov.io/gh/davidemoro/play_websocket/branch/develop/graph/badge.svg\n        :target: https://codecov.io/gh/davidemoro/play_websocket\n\n\npytest-play support for websockets\n\nMore info and examples on:\n\n* pytest-play_, documentation\n* cookiecutter-qa_, see ``pytest-play`` in action with a working example if you want to start hacking\n\n\nFeatures\n--------\n\nThis project defines new pytest-play_ commands.\n\nConnect\n=======\n\n::\n\n    - type: connect\n      provider: play_websocket\n      options:\n        url: wss://echo.websocket.org/\n        timeout: 2\n\nSend\n====\n\n::\n\n    - type: send\n      provider: play_websocket\n      url: wss://echo.websocket.org/\n      payload: Hello!\n\n\n\nReceive\n=======\n\n::\n\n    - type: recv\n      provider: play_websocket\n      url: wss://echo.websocket.org/\n      variable: data\n      variable_expression: response.upper()\n      assertion: data == 'HELLO!'\n      timeout: 10\n\n\nReceive until\n=============\n\nIf you want to filter the data returned by the websocked\nuntil you get what you expect::\n\n    - provider: python\n      type: wait_until\n      expression: variables['data'] == 'HELLO!'\n      timeout: 60\n      poll: 0\n      sub_commands:\n      - type: recv\n        provider: play_websocket\n        url: wss://echo.websocket.org/\n        variable: data\n        variable_expression: response.upper()\n        timeout: 60\n\nTwitter\n-------\n\n``pytest-play`` tweets happens here:\n\n* `@davidemoro`_\n\nCredits\n-------\n\nThis package was created with Cookiecutter_ and the cookiecutter-play-plugin_ (based on `audreyr/cookiecutter-pypackage`_ project template).\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage\n.. _`cookiecutter-play-plugin`: https://github.com/davidemoro/cookiecutter-play-plugin\n.. _pytest-play: https://github.com/davidemoro/pytest-play\n.. _cookiecutter-qa: https://github.com/davidemoro/cookiecutter-qa\n.. _`@davidemoro`: https://twitter.com/davidemoro\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidemoro%2Fplay_websocket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidemoro%2Fplay_websocket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidemoro%2Fplay_websocket/lists"}