semvec/pypi-packages huggingface dataset:
bottle-websocket 0.2.9
WebSockets for bottle
License: MIT
Keywords: bottle websockets

This project adds websocket capabilities to [bottle](http://bottlepy.org), leveraging [gevent-websocket](http://www.gelens.org/code/gevent-websocket/) and [gevent](http://www.gevent.org/).

### Install
Use `pip` or `easy_install`:

    pip install bottle-websocket

### Usage
Usage is pretty straight-forward, just import the server and plugin:

    from bottle.ext.websocket import GeventWebSocketServer
    from bottle.ext.websocket import websocket

You can use the websocket plugin to turn routes websocket handlers, the websocket is passed to the route as the first argument:

    @get('/websocket', apply=[websocket])
    def echo(ws):
        while True:
            msg = ws.receive()
            if msg is not None:
                ws.send(msg)
            else: break

And then use the provided server:

    run(host='127.0.0.1', port=8080, server=GeventWebSocketServer)

### Contributors
- [zeekay](https://github.com/zeekay)
- [xeross](https://github.com/xeross)
frigg-test-discovery 1.4.1
Test discovery util for frigg-worker
License: MIT

frigg-test-discovery |Build status| |Coverage status|
=====================================================

Test discovery util for frigg-worker

Install
-------

::

    pip install frigg-test-discovery

Usage
-----

.. code:: python

    from frigg_test_discovery import detect_tasks

    tasks = detect_tasks(list_of_filenames)

--------------

MIT © frigg.io

.. |Build status| image:: https://ci.frigg.io/badges/frigg/frigg-test-discovery/
   :target: https://ci.frigg.io/frigg/frigg-test-discovery/last/
.. |Coverage status| image:: https://ci.frigg.io/badges/coverage/frigg/frigg-test-discovery/
   :target: https://ci.frigg.io/frigg/frigg-test-discovery/last/