Skip to main content

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

image

What's new?

  • Added RegExp, Date, JSON

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

Uploaded Source

File details

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

File metadata

  • Download URL: javascriptpy-1.1.6.tar.gz
  • Upload date:
  • Size: 8.1 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.1.6.tar.gz
Algorithm Hash digest
SHA256 2c00a33c2097fc98ee21b572980ade0d4ac49195e386e19fe08cfaf7d00742c2
MD5 61059bb4d372bfda9dd82084d1f14406
BLAKE2b-256 128f00d62415bb59ad134be3c852f10544c090021148270a290e5149b2d7ef41

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.1.6 This release

1 file

1.1.5

1 file

1.1.4

1 file

1.1.3

1 file

1.1.2

1 file

1.1.1

1 file

1.1.0

1 file

1.0.5

1 file

1.0.4

1 file

1.0.3

1 file

1.0.2

1 file

1.0.1

1 file

1.0.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page