Skip to main content

Call LiveScript from Python

Project description

python-livescript lets you call LiveScript code from Python

Example

>>> from livescript import lseval
>>> print lseval('''
      require! 'fs'
      return fs.readdirSync('.')
    ''')

Installation

$ pip install livescript

Returning values

Returning will pass back the output back to Python. Any datatype supported by JSON can be passed back. If you want to return the last statement, you can omit the return statement.

NPM modules

To use modules, simply install them with npm and ensure that the node_modules directory they are installed to is your current working directory. You can use them as usual with require.

License

MIT

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

livescript-1.0.0.tar.gz (82.9 kB view hashes)

Uploaded Source

Built Distribution

livescript-1.0.0-py2.py3-none-any.whl (84.8 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page