{"id":21847,"library":"qwasm","title":"qwasm","description":"qwasm is a pure-Python WebAssembly decoder and disassembler. It parses WebAssembly binary modules into an intermediate representation and supports disassembly to WAT-like text format. Current version 1.0.1.","status":"active","version":"1.0.1","language":"python","source_language":"en","source_url":"https://github.com/CQCL/qwasm","tags":["webassembly","wasm","decoder","disassembler","binary-parser"],"install":[{"cmd":"pip install qwasm","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"","wrong":null,"symbol":"parse_module","correct":"from qwasm import parse_module"}],"quickstart":{"code":"import qwasm\n\n# Assuming 'sample.wasm' exists in the current directory\nwith open('sample.wasm', 'rb') as f:\n    data = f.read()\n\nmodule = qwasm.parse_module(data)\nprint(qwasm.disassemble(module))\n","lang":"python","description":"Load a WebAssembly binary, parse it, and print the disassembly."},"warnings":[{"fix":"Open the file in binary mode and pass the bytes object.","message":"qwasm.parse_module() expects bytes, not a file path.","severity":"gotcha","affected_versions":"all"},{"fix":"Pin to a specific version and watch the repository for updates.","message":"The library is in early development (v1.0.1); API may change without notice.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Check the documentation; try import qwasm.disassemble or from qwasm import disassemble. Actually, current API: from qwasm import parse_module; then use qwasm.disassemble(module). This error can happen if you forgot to assign the parse result.","cause":"Incorrect import or missing module; the function might be named differently.","error":"AttributeError: module 'qwasm' has no attribute 'disassemble'"},{"fix":"Read the file with open('file.wasm', 'rb') as f: data = f.read() and pass data.","cause":"Passing a filename string instead of bytes to parse_module.","error":"TypeError: expected bytes, not str"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}