Metadata-Version: 1.1
Name: livereload
Version: 2.3.1
Summary: Python LiveReload is an awesome tool for web developers
Home-page: https://github.com/lepture/python-livereload
Author: Hsiaoming Yang
Author-email: me@lepture.com
License: BSD
Description: LiveReload
        ==========
        
        This is a brand new LiveReload in version 2.0.0.
        
        .. image:: https://pypip.in/d/livereload/badge.png
           :target: https://pypi.python.org/pypi/livereload
           :alt: Downloads
        .. image:: https://pypip.in/v/livereload/badge.png
           :target: https://pypi.python.org/pypi/livereload
           :alt: Version
        
        
        Installation
        ------------
        
        Python LiveReload is designed for web developers who know Python.
        
        Install Python LiveReload with pip::
        
            $ pip install livereload
        
        If you don't have pip installed, try easy_install::
        
            $ easy_install livereload
        
        Command Line Interface
        ----------------------
        
        Python LiveReload provides a command line utility, ``livereload``, for starting a server in a directory.
        
        By default, it will listen to port 35729, the common port for `LiveReload browser extensions`_. ::
        
            $ livereload --help
            usage: livereload [-h] [-p PORT] [directory]
        
            Start a `livereload` server
        
            positional arguments:
              directory             Directory to watch for changes
        
            optional arguments:
              -h, --help            show this help message and exit
              -p PORT, --port PORT  Port to run `livereload` server on
        
        .. _`livereload browser extensions`: http://feedback.livereload.com/knowledgebase/articles/86242-how-do-i-install-and-use-the-browser-extensions-
        
        Developer Guide
        ---------------
        
        The new livereload server is designed for developers. It can power a
        wsgi application now::
        
            from livereload import Server, shell
        
            server = Server(wsgi_app)
        
            # run a shell command
            server.watch('static/*.stylus', 'make static')
        
            # run a function
            def alert():
                print('foo')
            server.watch('foo.txt', alert)
        
            # output stdout into a file
            server.watch('style.less', shell('lessc style.less', output='style.css'))
        
            server.serve()
        
        The ``Server`` class accepts parameters:
        
        - app: a wsgi application
        - watcher: a watcher instance, you don't have to create one
        
        server.watch
        ~~~~~~~~~~~~
        
        ``server.watch`` can watch a filepath, a directory and a glob pattern::
        
            server.watch('path/to/file.txt')
            server.watch('directory/path/', delay=5)
            server.watch('glob/*.pattern')
        
        You can also use other library (for example: formic) for more powerful
        file adding::
        
            for filepath in formic.FileSet(include="**.css"):
                server.watch(filepath, 'make css')
        
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Environment :: Web Environment :: Mozilla
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Natural Language :: English
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Topic :: Software Development :: Build Tools
Classifier: Topic :: Software Development :: Compilers
Classifier: Topic :: Software Development :: Debuggers
