Registry / devops / acos-jsvee-transpiler-python

acos-jsvee-transpiler-python

JSON →
library0.3.8jsnpmunverified

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.

devopsweb-frameworkserialization
npm install acos-jsvee-transpiler-python
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

transpile
import { transpile } from 'acos-jsvee-transpiler-python'
const transpile = require('acos-jsvee-transpiler-python').transpile
Package is ESM-only; CommonJS require() will not work.
default
import transpiler from 'acos-jsvee-transpiler-python'
import * as transpiler from 'acos-jsvee-transpiler-python'
Default export is the transpile function. Avoid wildcard import.
version
import { version } from 'acos-jsvee-transpiler-python/package.json'
import { version } from 'acos-jsvee-transpiler-python'
version is not exported from main module; import from package.json instead.

Transpiles a simple Python for-loop into Jsvee-compatible format and prepares visualization.

import { transpile } from 'acos-jsvee-transpiler-python'; import { Jsvee } from 'acos-jsvee'; const code = ` for i in range(5): print(i) `; try { const jsveeFormat = transpile(code); console.log('Transpiled code:', jsveeFormat); // Then use Jsvee to render const visualizer = new Jsvee(); visualizer.load(jsveeFormat); } catch (err) { console.error('Transpilation failed:', err.message); }
Debug
Known issues
breakingOnly supports a limited subset of Python 3 constructs. Unsupported syntax like list comprehensions, lambdas, or async/await will throw an error.
fix
Refactor Python code to use only supported constructs: basic loops, conditionals, function definitions, and simple expressions.
affects: >=0.1.0
gotchaIndentation errors in input Python code cause silent failures or incorrect output.
fix
Ensure all Python code passed to transpile() is syntactically valid with consistent indentation.
affects: >=0.1.0
deprecatedThis package is in maintenance mode; no new features or Python version updates are planned.
fix
Consider using Jsvee's native Python support or an alternative visualization library.
affects: >=0.3.0
Errors
Common errors & fixes
SyntaxError: invalid syntax at line 1
Unsupported Python construct used.
fix
Simplify Python code to use only supported constructs (for, while, if, def, assignments, basic expressions).
IndentationError: unexpected indent
Inconsistent indentation in source Python string.
fix
Tidy indentation to 4 spaces throughout the Python code block.
Cannot find module 'acos-jsvee'
Missing peer dependency acos-jsvee.
fix
Install required peer dependencies: npm install acos-jsvee acos-jsvee-python acos-kelmu
Upgrade
Version history
0.3.8latest on PyPI
Audit
Dependencies
acos-jsveerequiredCore dependency for Jsvee visualization format
acos-jsvee-pythonrequiredProvides Python execution base for Jsvee
acos-kelmurequiredRequired for Kelmu rendering integration
Agent activity
74 hits · last 30 days
node
16
ahrefsbot
3
petalbot
2
amazonbot
2
Resources