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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 2Python 3

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

Hashes for livescript-1.0.0.tar.gz
Algorithm Hash digest
SHA256 817107e0b4b6777083fead7b433c3c09b3149ab3e09cb5685d0f5f7727fc860c
MD5 2811d793ff5714973024cf06864bdd70
BLAKE2b-256 75054b78015a6fc334fd7b7672b3220cf4e8ed4c200ab88ef872dee623282a14

See more details on using hashes here.

File details

Details for the file livescript-1.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for livescript-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2325f936b2fe8f10d3d4cfb2761c520929ae1cbe8458417c561d285c2a1582eb
MD5 2f0934c5b1270436fc740271ad01f3ad
BLAKE2b-256 91940a202225c18e8cfac638dc95d48f6155beddb77fb1e641847d72e994c2e0

See more details on using hashes here.

Supported by

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