【文件属性】:
文件名称:nameko-socket-server:用于nameko服务的套接字服务器入口点
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-07 15:25:03
Python
nameko-socket-server
通过简单套接字访问的入口点
用法
from nameko_socket_server import socket_command
class MyService ( object ):
@ socket_command ( 'hello' )
def hello ( self ):
return 'hello world'
$ echo ' hello ' | nc localhost 6000 ; echo
hello world
【文件预览】:
nameko-socket-server-master
----setup.py(1KB)
----.gitignore(31B)
----.travis.yml(458B)
----LICENSE(570B)
----README.rst(381B)
----nameko_socket_server.py(3KB)
----test()
--------conftest.py(779B)
--------test_nameko_socket_server.py(1KB)
----tox.ini(397B)