Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Wrapper for transcrypt transpiler for most common html5 functions like cookies, dom, buttons, canvas

Project description


This is a suggestion for a transcrypt framework which offers convenient solutions or wrappers around common functions. Originally created by Andreas Bunkahle 2018

Install it with:

pip install TranscryptFrame

You can import this library with import TranscryptFrame as tf

and use it in your Python/Transcrypt scripts like this

myElement = tf.doc_id(“intro”) tf.doc_id(“demo”).innerHTML = “The text from the intro paragraph is ” + myElement.innerHTML

or even shorter: myElement = tf.S(“#intro”, “htm”) tf.S(“#demo”).innerHTML = “The text from the intro paragraph is ” + myElement

You can also have jQuery-like function calls like

tf.S(“#demo”).innerHTML = “<p>New paragraph</p>” instead of $(“#demo”).html(“<p>New paragraph</p>”) in Javascript or document.getElementById(“demo”).innerHTML = “<p>New paragraph</p>” in Transcrypt

or new_var = tf.S(“#demo”, “htm”) instead of new_var = $(“#demo”).html() or new_var = document.getElementById(“demo”).innerHTML


There are several examples for running the library in

You find a tutorial for it at:


The code currently only runs under Python 3 due to the fact that Transcrypt is only available for Python 3. Of course it relies on Transcrypt for running.



Project details

Release history Release notifications

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for TranscryptFrame, version 1.0
Filename, size File type Python version Upload date Hashes
Filename, size (6.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page