{"library":"parcel-transformer-transcrypt","title":"Parcel Transcrypt Transformer","description":"A Parcel v2 transformer plugin that converts Python files to JavaScript using the Transcrypt transpiler. Version 1.0.3 is current, with no active release cadence. Unlike other Python-to-JS bridges, this integrates directly with Parcel's build pipeline, enabling bundling, code splitting, and HMR. Requires Transcrypt (Python transpiler) installed in a virtual environment; Python version must match Transcrypt version. Supports custom CLI arguments and output directory configuration.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install parcel-transformer-transcrypt"],"cli":null},"imports":["no JavaScript import needed; configure in .parcelrc","{\n  \"transformers\": {\n    \"*.py\": [\"parcel-transformer-transcrypt\"]\n  }\n}","\"parcel-transformer-transcrypt\": {\n  \"transcryptVersion\": \"3.9\",\n  \"watchAllFiles\": true,\n  \"command\": \"python -m transcrypt\",\n  \"arguments\": [\"--nomin\", \"--map\"]\n}"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"# Create a basic Python file (example.py)\nprint('Hello from Python!')\n\n# Initialize project and install dependencies\nnpm init -y\nnpm install parcel --save-dev\nnpm install parcel-transformer-transcrypt --save-dev\n\n# Set up Python virtual environment with Transcrypt (Python 3.9)\npython3.9 -m venv venv\nsource venv/bin/activate\npip install transcrypt\n\n# Configure .parcelrc\ncat > .parcelrc << 'EOF'\n{\n  \"extends\": [\"@parcel/config-default\"],\n  \"transformers\": {\n    \"*.py\": [\"parcel-transformer-transcrypt\"]\n  }\n}\nEOF\n\n# Create an HTML entry that imports the Python module\ncat > index.html << 'EOF'\n<!DOCTYPE html>\n<html><body>\n<script type=\"module\" src=\"./example.py\"></script>\n</body></html>\nEOF\n\n# Build with Parcel\nnpx parcel build index.html","lang":"javascript","description":"Sets up a Parcel project with Python-to-JS support: installs parcel and transformer, creates Python file and HTML entry, configures .parcelrc, and runs build.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}