jieba-rpc 0.0.4

Creator: bigcodingguy24

Last updated:

Add to Cart

Description:

jiebarpc 0.0.4

jieba-rpc=============[![Build Status](https://travis-ci.org/messense/jieba-rpc.svg?branch=master)](https://travis-ci.org/messense/jieba-rpc)Simple [jieba](https://github.com/fxsjy/jieba) RPC server based on [msgpack-rpc-python](https://github.com/msgpack-rpc/msgpack-rpc-python).## InstallationInstall `jieba-rpc` using `pip`:```bashpip install jieba-rpc```## UsageYou can start a simple jieba RPC server by executing:```bashpython -m jiebarpc localhost:8888```Or if you wish to customize it using codes:```python#!/usr/bin/env python# -*- coding: utf-8 -*-from __future__ import absolute_import, unicode_literalsfrom jiebarpc import JiebaRPCServer, JiebaRPCDispatcherdef main(host, port): server = JiebaRPCServer(JiebaRPCDispatcher()) server.listen(host, port) server.start() return 0if __name__ == '__main__': import sys if len(sys.argv) != 3: print('Usage: %s host port' % sys.argv[0]) sys.exit(1) host = sys.argv[1] port = int(sys.argv[2]) sys.exit(main(host, port))```## LicenseThe MIT License (MIT)Copyright (c) 2014 messensePermission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THESOFTWARE.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.