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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for livescript-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2325f936b2fe8f10d3d4cfb2761c520929ae1cbe8458417c561d285c2a1582eb |
|
MD5 | 2f0934c5b1270436fc740271ad01f3ad |
|
BLAKE2b-256 | 91940a202225c18e8cfac638dc95d48f6155beddb77fb1e641847d72e994c2e0 |