Skip to main content

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 javascriptpy 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']))

image

Project details


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.0.0.tar.gz (1.9 kB view details)

Uploaded Source

File details

Details for the file javascriptpy-1.0.0.tar.gz.

File metadata

  • Download URL: javascriptpy-1.0.0.tar.gz
  • Upload date:
  • Size: 1.9 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

Hashes for javascriptpy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e9779b6e736f0eaf7e29bd23c9cf9ab1adb4823cd4399161d404985e45ff7f00
MD5 7c204434b739c935d67002d9f52b0764
BLAKE2b-256 95a39c313d3a3b0b913543d818f4b889831d99bb7cfe64d9fde8c9924e70b366

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page