Skip to main content

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

Release files for livescript 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for livescript 1.0.0
File Size Uploaded
livescript-1.0.0.tar.gz 82.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for livescript 1.0.0
File Interpreter ABI Platform
livescript-1.0.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 167.7 kB

Release files / livescript-1.0.0.tar.gz

Download URL livescript-1.0.0.tar.gz
Size 82.9 kB
Tags Source
SHA-256 checksum
How to use checksums
817107e0b4b6777083fead7b433c3c09b3149ab3e09cb5685d0f5f7727fc860c
BLAKE2b-256 checksum
How to use checksums
75054b78015a6fc334fd7b7672b3220cf4e8ed4c200ab88ef872dee623282a14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / livescript-1.0.0-py2.py3-none-any.whl

Download URL livescript-1.0.0-py2.py3-none-any.whl
Size 84.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
2325f936b2fe8f10d3d4cfb2761c520929ae1cbe8458417c561d285c2a1582eb
BLAKE2b-256 checksum
How to use checksums
91940a202225c18e8cfac638dc95d48f6155beddb77fb1e641847d72e994c2e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page