Skip to main content

Simple library to support live coding

Project description

Build status PyPI Version

A simple library to support live coding in python. Modeled after the idioms in livecoder.net.

Quick Start

Install livecoder from pypi:

pip install live

Open an example file with your favorite editor:

git clone git@github.com:fritzo/livecoder     # grab an example
vi livecoder/examples/datadiff.py             # open in your favorite editor

And tell live to watch the script:

cd livecoder/examples                 # move to where script is importable
live datadiff.py                      # and watch output for errors

Every time you save the script, live reloads it and updates the live coding state. You’ll probably want to set up your editor to save after every keystroke, or save once per second. For example in Vim 7.4+ you can save after each modification using:

autocmd TextChanged,TextChangedI <buffer> write

License

Apache 2.0

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

live-0.0.3.tar.gz (1.6 kB view details)

Uploaded Source

File details

Details for the file live-0.0.3.tar.gz.

File metadata

  • Download URL: live-0.0.3.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for live-0.0.3.tar.gz
Algorithm Hash digest
SHA256 aa033899ba812dd49303df269ad9175a7a679a6dcaaf34570ad321d41a68178c
MD5 192744a6518be29a12f92c0a5fda6dfb
BLAKE2b-256 a2125b2cded36daa65895e58ef04023202bf27e09e4ea476353ee2013ba13370

See more details on using hashes here.

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