semvec/pypi-packages huggingface dataset:
nameko-socket-server 0.1.1
Socket server entrypoints for nameko services
License: Apache License, Version 2.0

nameko-socket-server
--------------------

Entrypoints for access via simple sockets

Usage
-----

.. code-block:: python

    from nameko_socket_server import socket_command

    class MyService(object):
        @socket_command('hello')
        def hello(self):
            return 'hello world'


.. code-block:: bash

    $ echo 'hello' | nc localhost 6000; echo
    hello world