{"_id":"@asyncapi/template-python-websocket-client","_rev":"4-6ae4cbb661c7e18413f9d82781de5289","name":"@asyncapi/template-python-websocket-client","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@asyncapi/template-python-websocket-client","version":"0.0.1","author":{"name":"Lukasz Gornicki","email":"lpgornicki@gmail.com"},"license":"Apache-2.0","_id":"@asyncapi/template-python-websocket-client@0.0.1","maintainers":[{"name":"fmvilas","email":"fmvilas@gmail.com"},{"name":"derberg","email":"lpgornicki@gmail.com"},{"name":"asyncapi-bot","email":"derberg@wp.pl"}],"dist":{"shasum":"966d66bc42533644a6335abc24be4df62e67833b","tarball":"https://registry.npmjs.org/@asyncapi/template-python-websocket-client/-/template-python-websocket-client-0.0.1.tgz","fileCount":21,"integrity":"sha512-tWvXfzwFDe4MpJVQQHUKfMojQNcjqAzqrMcw7YZsDEBDMulir4rCp5r9UjSfUgOkP2MhsEXSUzz72zdVTtECRA==","signatures":[{"sig":"MEUCIFvGv+fIByIVzTMxlA1VYGGawRilE8cA3YEZJoNUPxZQAiEAykAKjFWBeC26QbmUOydvb974oFv2EiVqqn1BKVktyUA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26369},"jest":{"transform":{"^.+\\.jsx?$":"babel-jest"},"moduleNameMapper":{"^nimma/(.*)":"<rootDir>/../../../../../node_modules/nimma/dist/cjs/$1","^nimma/legacy$":"<rootDir>/../../../../../node_modules/nimma/dist/legacy/cjs/index.js"},"moduleFileExtensions":["js","json","jsx"]},"babel":{"presets":["@babel/preset-env",["@babel/preset-react",{"runtime":"automatic"}]]},"gitHead":"78360e958dc418175775d10b0c84cfc977cffe3c","scripts":{"test":"npm run test:cleanup && jest  --coverage","test:update":"jest --updateSnapshot","test:cleanup":"rimraf \"tests/temp\""},"_npmUser":{"name":"asyncapi-bot","email":"derberg@wp.pl"},"generator":{"renderer":"react","generator":">=1.3.0 <3.0.0","apiVersion":"v3","parameters":{"server":{"required":true,"description":"The name of the server described in AsyncAPI document"},"clientFileName":{"default":"client.py","required":false,"description":"The name of the generated client file"}}},"deprecated":"Should not be available in NPM. Internal AsyncAPI Generator package.","_npmVersion":"10.8.2","description":"This is a template generating Python websocket client","directories":{},"_nodeVersion":"18.20.7","dependencies":{"rimraf":"^3.0.2","@asyncapi/generator-helpers":"*","@asyncapi/generator-react-sdk":"^1.1.2"},"_hasShrinkwrap":false,"devDependencies":{"@babel/cli":"^7.25.9","@babel/core":"^7.26.0","@asyncapi/parser":"^3.0.14","@babel/preset-env":"^7.26.0","@asyncapi/generator":"*","@babel/preset-react":"^7.25.9","jest-esm-transformer":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/template-python-websocket-client_0.0.1_1742292074276_0.326099672493372","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2025-03-18T10:01:14.207Z","modified":"2026-07-31T14:03:04.313Z","0.0.1":"2025-03-18T10:01:14.504Z"},"author":{"name":"Lukasz Gornicki","email":"lpgornicki@gmail.com"},"license":"Apache-2.0","description":"This is a template generating Python websocket client","maintainers":[{"email":"lpgornicki@gmail.com","name":"derberg"}],"readme":"## Python WebSocket Client\n\nYou can test this template:\n1. Clone the project and run `npm install`\n2. Navigate to `packages/templates/clients/python/websocket`\n3. Install with `npm install` and run test with `npm run test`\n4. Go to test folder with `cd test`\n5. Install dependencies of the generated client: `pip install -r temp/snapshotTestResult/requirements.txt`\n6. Start example script that uses a client library generated by the test: `python example.py`\n\n> By default this is testing against Postman echo service. You can modify `packages/templates/clients/python/websocket/example.py` and change first line to `from temp.snapshotTestResult.client_hoppscotch import HoppscotchEchoWebSocketClient` and line 16 `client = HoppscotchEchoWebSocketClient()` and run `python example.py` again. You will see example still works but agains different API. This is possible as both AsyncAPI documents have the same name of operation for sending messages: `sendEchoMessage` so each client generated has the same API.","readmeFilename":"README.md"}