Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

jspython-dev/jspython-cli

Repository files navigation

JSPython CLI.

We provide a command line interface to run JSPython scripts

Install from NPM

  npm install -g jspython-cli

Run in terminal

  jspython path/to/jspython/file
  jspython --file path/to/jspython/file
  jspython --file=test.jspy

Pass parameters to script

In CLI

jspython --file=path/to/jspython/file --param1=value --param
jspython path/to/jspython/file param1=value param

In script

params("param1") == "value" # true
params("param") == false # true

Save evaluate log into file

jspython --file=path/to/jspython/file.jspy --output=path/to/log.txt

Development

Run example using node. (Works only if you have build project npm run build)

node ./bin/jspython --file=../jspython-examples/axios-test.jspy
node ./bin/jspython --file ../jspython-examples/parse.jspy

About

Command Line Interface to run JSPython (jspy) programs

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  
Morty Proxy This is a proxified and sanitized view of the page, visit original site.