This package lets you use Javascript like objects in python.
Project description
Javascript.py
This package lets you use javascript like objects in python.
Installation
Stable version:
pip install javascriptpy
Working version:
pip install git+https://github.com/CodeWithSwastik/javascript-py
Example Usage
from javascript import *
array = Array('apple', 'orange', 'cherry')
index = Math.floor(Math.random()*array.length)
console.info('Random element:',array[index])
console.table(array)
Console
from javascript import console, Array
console.clear()
console.error("Syntax Error!")
console.warn("Forgot an import!")
console.table(Array(['earth', 'venus']))
What's new?
- Added RegExp, Date, JSON
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
javascriptpy-1.1.1.tar.gz
(8.0 kB
view details)
File details
Details for the file javascriptpy-1.1.1.tar.gz.
File metadata
- Download URL: javascriptpy-1.1.1.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.10.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68e9ff13cfc7795e7fb94a5bd8887f731275eedec8cb9f4f3b366b88a207359f
|
|
| MD5 |
b1025f00414b28cac9fa3eeca1ac600c
|
|
| BLAKE2b-256 |
d13922e2354a0d74d254e7e03ea91869ec0c458f92aedc7e0368a4ceeae86b11
|