Allows for classical OO programming with multiple inheritance using pure Python syntax, parsed by CPython’s native parser
Hierarchical URL based module system to prevent name conflicts
Multi-level sourcemaps and optional annotation of target code with source references
Compact downloads, kB’s rather than MB’s
Operator overloading can be switched on and off locally to facilitate use for numerical math that’s both readable and efficient
Documentation with code examples
Take a look at the documentation with code examples at the Transcrypt website: http://www.transcrypt.org .
Status of latest release
Release: Athens (PyPi v3.5.222, GitHub #9)
This release contains:
Improved support for the new, redesigned core of Numscrypt. While Numscrypt is still in its infancy, its scope has been widened from merely educational to general use for computations in the browser. A number of optimizations have been put in place, resulting in performance comparable to pure JS numerical libraries. The difference is that Transcrypt (or rather Python), with its facilities for operator overloading, allows a much more concise and readable notation of numerical algorithms. Plans are to gradually build out Numscrypt with more functionality.
Optional static type validation (experimental) using type annotations. Static type validation is activated simply by a command switch. Internally it relies on the mypy project. While this project is still in flux, the resulting productivity improvement is already impressive. Since static type validation is optional and cannot break your code, you can get 90% of the benefits from it rightnow without risk. Even only statically typing the interfaces between modules immediately pays off, especially when working with a team. Don’t believe it, try it!
Diverse bug fixes.
Thanks to everyone who contributed!
Jacques de Hooge
What’s new in the latest commits
Truthyness of instances of custom classes fixed (see issue #110)
Source map generation bug fixed (see issue #104)
Optional static type validation using mypy (experimental)
Small doc improvements
Some more fixes for Numscrypt
Fix to enable Numscrypt development
Pragma’s else and elif fixed for use in .py rather than .js files
A few methods of builtin types are currently left out, especially when they (almost) duplicate functionality of other methods. Also method decorators (as opposed to function decorators and class decorators) are not supported, with the exception of @classmethod. This results from a deliberate choice to keep Transcrypt lean and simple.
Other packages you might like
Multi-module Python source code obfuscator: https://pypi.python.org/pypi/Opy
PLC simulator with Arduino code generation: https://pypi.python.org/pypi/SimPyLC
A lightweight Python course taking beginners seriously (under construction): https://pypi.python.org/pypi/LightOn
Event driven evaluation nodes: https://pypi.python.org/pypi/Eden
Copyright 2014, 2015, 2016 Jacques de Hooge, GEATEC engineering, www.geatec.com
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.