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.txtto do an editable install - Run
pytestto 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/*
Metadata
Release files for jspyr 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| jspyr-0.1.0.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jspyr-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.9 kB
Release files / jspyr-0.1.0.tar.gz
| Download URL | jspyr-0.1.0.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
05d334d4fcccaee489bb053c8c2e940055f704dc4d2d10cd2491f769020f8389
|
|
BLAKE2b-256 checksum How to use checksums |
2bc9e1ac14dc52ab55b09eafa948551cdbf0b211cec314986e29767a7f68cfc4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.0
|
Release files / jspyr-0.1.0-py3-none-any.whl
| Download URL | jspyr-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5e665b7e0e7d4bb77ac347cab03dce55963726e91703ace455c26f22f20efce1
|
|
BLAKE2b-256 checksum How to use checksums |
5b9441033ed9054acec6b6b6c75099440b0d202dce987e470a0d4b27d9aa30fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.0
|