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

Metadata

Release files for javascriptpy 1.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for javascriptpy 1.1.6
File Size Uploaded Provenance
javascriptpy-1.1.6.tar.gz 8.1 kB Without provenance Details

Release files / javascriptpy-1.1.6.tar.gz

Download URL javascriptpy-1.1.6.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
2c00a33c2097fc98ee21b572980ade0d4ac49195e386e19fe08cfaf7d00742c2
BLAKE2b-256 checksum
How to use checksums
128f00d62415bb59ad134be3c852f10544c090021148270a290e5149b2d7ef41
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for javascriptpy 1.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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