Transcrypt
Transcrypt copied to clipboard
Python 3.9 to JavaScript compiler - Lean, fast, open! -
Hello, I try to run the nodejs example found here https://www.transcrypt.org/docs/html/installation_use.html 2.5. Compiling for node.js And get unexpected token error on node nodejs_demo.js command: import { AssertionError, AttributeError, BaseException, DeprecationWarning,...
Whenever I use requests in my code then try to transcript it, it tells me this: ``` line 2, at import of: File 'requests', line 118, namely: Import error, can't...
I don't see a way to embed type information in the transpiled JS code that can be accessed at runtime. Currently I have entities defined in Python and am converting...
Hi, My use case is to send a code snippet in Python to an api which returns back the JS equivalent of that snippet. Can we use Transcrypt to achieve...
I bumped into #455 in my own code, but a little investigation showed that a small patch to `transcrypt/modules/org/transcrypt/__builtin__.js` (viewable as the totality of PR #702) would fix it. I...
I've a need for accurate decimal values in my code, and thus attempted to utilize Python's Decimal module, but compilation fails when I attempt to run Transcrypt on it. ```python...
I'm trying to figure out where to put my files I want to be transpiled. The documentation is completely useless in my case, as it doesn't specify for what I...
This is broken: ```python x = b"\x80" ``` ```bash $ python -m transcrypt -b -m x.py Error while compiling (offending file last): File 'x', line 1, namely: Error while compiling...
Trying to compile and run `hello` demo from source, but I get "ReferenceError: hello is not defined"
Not sure if this is the right place here, but I cannot get the hello demo get running from teh source code: After installing transcrypt in my virtual env and...
Context: I am using Transcrypt to convert the code in this repository: https://github.com/deepmind/pysc2 to javascript. Problem: I can't import collections, therefore I cant target the classes that are generated by...