Skip to main content

JsPyr (pronounced Jasper) combines a Python and a JavaScript program into a single file.

Project description

jspyr

JsPyr (pronounced Jasper) combines a Python and a JavaScript program into a single file.

Installation

pip install jspyr

Usage

$ cat hello.py
print("Hello, World!")

$ cat hello.js
console.log("Hello, World!");

$ jspyr hello.py hello.js --out hello.jp
Created `hello.jp` from `hello.py` and `hello.js`!

$ python hello.jp
Hello, World!

$ node hello.jp
Hello, World!

Local Development / Testing

  • Create and activate a virtual environment
  • Run pip install -r requirements-dev.txt to do an editable install
  • Run pytest to run tests

Type Checking

Run mypy .

Create and upload a package to PyPI

Make sure to bump the version in setup.cfg.

Then run the following commands:

python -m build

Then upload it to PyPI using twine:

twine upload dist/*

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

jspyr-0.1.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

jspyr-0.1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jspyr-0.1.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for jspyr-0.1.0.tar.gz
Algorithm Hash digest
SHA256 05d334d4fcccaee489bb053c8c2e940055f704dc4d2d10cd2491f769020f8389
MD5 86941b171640afde6faeadff90dfdbae
BLAKE2b-256 2bc9e1ac14dc52ab55b09eafa948551cdbf0b211cec314986e29767a7f68cfc4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jspyr-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for jspyr-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5e665b7e0e7d4bb77ac347cab03dce55963726e91703ace455c26f22f20efce1
MD5 1b19cc93beb2a504a6413b15b22928fd
BLAKE2b-256 5b9441033ed9054acec6b6b6c75099440b0d202dce987e470a0d4b27d9aa30fe

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