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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file livescript-1.0.0.tar.gz.
File metadata
- Download URL: livescript-1.0.0.tar.gz
- Upload date:
- Size: 82.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
817107e0b4b6777083fead7b433c3c09b3149ab3e09cb5685d0f5f7727fc860c
|
|
| MD5 |
2811d793ff5714973024cf06864bdd70
|
|
| BLAKE2b-256 |
75054b78015a6fc334fd7b7672b3220cf4e8ed4c200ab88ef872dee623282a14
|
File details
Details for the file livescript-1.0.0-py2.py3-none-any.whl.
File metadata
- Download URL: livescript-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 84.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2325f936b2fe8f10d3d4cfb2761c520929ae1cbe8458417c561d285c2a1582eb
|
|
| MD5 |
2f0934c5b1270436fc740271ad01f3ad
|
|
| BLAKE2b-256 |
91940a202225c18e8cfac638dc95d48f6155beddb77fb1e641847d72e994c2e0
|