Skip to main content

A Python library for parsing and executing JavaScript code within Python applications.

Project description

FromJS

A Python library for parsing and executing JavaScript code within Python applications.

Installation

pip install FromJS

Usage

from FromJS import import_js

# Import a JavaScript file
js_module = import_js('path/to/your/javascript/file.js')

# Use the imported JavaScript functionality
result = js_module.some_function()

Features

  • Parse JavaScript files and convert to Python objects
  • Support for JavaScript variables, functions, and classes
  • Handle ES6+ syntax including async/await
  • Export management

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

fromjs-0.1.0.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fromjs-0.1.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file fromjs-0.1.0.tar.gz.

File metadata

  • Download URL: fromjs-0.1.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for fromjs-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b6fef6c600627852a535cfacebfe0d8229521a5bfd134fa1e908e97c46603e8a
MD5 11cbf2e3cd80bfa2a9385da54ae6f973
BLAKE2b-256 9748d0c593c430ece1a858533eccdf986a7848501c199b15368a20ef301a4c53

See more details on using hashes here.

File details

Details for the file fromjs-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: fromjs-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for fromjs-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 06d0a947d74e55bb617609b863a22367a7c2f90f5112d5eefd6e478a98225a32
MD5 1ca969ee5e4ebce37eda16d35a13b288
BLAKE2b-256 fbfacc802cf88230f20d0f5a34f67039ec764fe7508179cba76fd5d74be68473

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