{"id":24882,"library":"acos-jsvee-transpiler-python","title":"acos-jsvee-transpiler-python","description":"Transpiler that converts Python 3 code into the format expected by Jsvee for visual execution. Current stable version 0.3.8, maintenance mode with limited updates. Designed for the ACOS server ecosystem, requiring peer dependencies acos-jsvee (~0.2.0), acos-jsvee-python (~0.2.0), and acos-kelmu (~0.1.0). Supports a restricted subset of Python constructs; not a general-purpose transpiler. Lower-level integration point for ACOS-based teaching tools.","status":"maintenance","version":"0.3.8","language":"javascript","source_language":"en","source_url":"https://github.com/acos-server/acos-jsvee-transpiler-python","tags":["javascript"],"install":[{"cmd":"npm install acos-jsvee-transpiler-python","lang":"bash","label":"npm"},{"cmd":"yarn add acos-jsvee-transpiler-python","lang":"bash","label":"yarn"},{"cmd":"pnpm add acos-jsvee-transpiler-python","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core dependency for Jsvee visualization format","package":"acos-jsvee","optional":false},{"reason":"Provides Python execution base for Jsvee","package":"acos-jsvee-python","optional":false},{"reason":"Required for Kelmu rendering integration","package":"acos-kelmu","optional":false}],"imports":[{"note":"Package is ESM-only; CommonJS require() will not work.","wrong":"const transpile = require('acos-jsvee-transpiler-python').transpile","symbol":"transpile","correct":"import { transpile } from 'acos-jsvee-transpiler-python'"},{"note":"Default export is the transpile function. Avoid wildcard import.","wrong":"import * as transpiler from 'acos-jsvee-transpiler-python'","symbol":"default","correct":"import transpiler from 'acos-jsvee-transpiler-python'"},{"note":"version is not exported from main module; import from package.json instead.","wrong":"import { version } from 'acos-jsvee-transpiler-python'","symbol":"version","correct":"import { version } from 'acos-jsvee-transpiler-python/package.json'"}],"quickstart":{"code":"import { transpile } from 'acos-jsvee-transpiler-python';\nimport { Jsvee } from 'acos-jsvee';\n\nconst code = `\nfor i in range(5):\n    print(i)\n`;\n\ntry {\n  const jsveeFormat = transpile(code);\n  console.log('Transpiled code:', jsveeFormat);\n  // Then use Jsvee to render\n  const visualizer = new Jsvee();\n  visualizer.load(jsveeFormat);\n} catch (err) {\n  console.error('Transpilation failed:', err.message);\n}","lang":"typescript","description":"Transpiles a simple Python for-loop into Jsvee-compatible format and prepares visualization."},"warnings":[{"fix":"Refactor Python code to use only supported constructs: basic loops, conditionals, function definitions, and simple expressions.","message":"Only supports a limited subset of Python 3 constructs. Unsupported syntax like list comprehensions, lambdas, or async/await will throw an error.","severity":"breaking","affected_versions":">=0.1.0"},{"fix":"Ensure all Python code passed to transpile() is syntactically valid with consistent indentation.","message":"Indentation errors in input Python code cause silent failures or incorrect output.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Consider using Jsvee's native Python support or an alternative visualization library.","message":"This package is in maintenance mode; no new features or Python version updates are planned.","severity":"deprecated","affected_versions":">=0.3.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Simplify Python code to use only supported constructs (for, while, if, def, assignments, basic expressions).","cause":"Unsupported Python construct used.","error":"SyntaxError: invalid syntax at line 1"},{"fix":"Tidy indentation to 4 spaces throughout the Python code block.","cause":"Inconsistent indentation in source Python string.","error":"IndentationError: unexpected indent"},{"fix":"Install required peer dependencies: npm install acos-jsvee acos-jsvee-python acos-kelmu","cause":"Missing peer dependency acos-jsvee.","error":"Cannot find module 'acos-jsvee'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}