Skip to main content

A tiny JavaScript code generator

Project description

TinyJS

A simple package that allows for synthesising simple, syntaxically correct, javascript code

Installation

pip install tinyjs

Usage

from tinyjs import create_program, annotate_program

program_list = create_program(level="ALL", count=1000)
annotated_program_list = annotate_program(program_list, level="ALL")
# Or
annotated_program_list = create_program(level="ALL", count=1000, annotated=True)

Note: Annotation requires NodeJS to be installed! Annotation happens by evaluating the code, and for reliability, this was handled by native NodeJS instead

License

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

Acknowledgements

This project is a modified port of the TinyJS generator by Kamel Yamani et al., 2021

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

tinyjs-0.1.2.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

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

tinyjs-0.1.2-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file tinyjs-0.1.2.tar.gz.

File metadata

  • Download URL: tinyjs-0.1.2.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for tinyjs-0.1.2.tar.gz
Algorithm Hash digest
SHA256 15ba3e0e7ad8b841d8b14e050d82919ede9262341b2bb9f01e7e05712076314e
MD5 7e9ddd74374bd321ee37620ba2851817
BLAKE2b-256 de0698b436e0a61fc94ef70c25dbea5dcc3c40350efbc3d9f55ac04277d43e2c

See more details on using hashes here.

Provenance

The following attestation bundles were made for tinyjs-0.1.2.tar.gz:

Publisher: package_and_upload.yaml on almajd3713/TinyJS

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tinyjs-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: tinyjs-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for tinyjs-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 90c8f9244a810f5b57405cbc356d58fedc67d56acde95945c3e95a4d6cd78399
MD5 150fea3504cb7fb2feb9423a895c1640
BLAKE2b-256 36c1c6ae7abe931d9cec2bf72b57370b4a020e7df5d6da1e996a0b39a0e3607a

See more details on using hashes here.

Provenance

The following attestation bundles were made for tinyjs-0.1.2-py3-none-any.whl:

Publisher: package_and_upload.yaml on almajd3713/TinyJS

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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