semvec/pypi-packages huggingface dataset:
xnrpc 1.2.2
simple rpc based on zerorpc and gevent
License: MIT
Keywords: xnrpc,gevent,zerorpc,subprocess

xnrpc
=====

xnrpc is a light-weight, reliable and language-agnostic library for
distributed communication between server-side processes.
It builds on top of zerorpc and gevent, simple ,efficient and robust.

*features*

* support heartbeat and timeout
* graceful exceptions handler
* support pipeline commands
* asynchronous I/O, support large concurrency
* very simple to use

*demo*

a simple server and client example:

.. code-block:: python

    from xnrpc.server import RpcInterface, ServerManager
    from xnrpc.client import open_client
    from xnrpc.common.log import get_log
    _log = get_log(__name__)


    class OperationRpcInterface(RpcInterface):

        def ls_file(self):
            _log.info('Operation ls file')
            return None

        def check_ip(self):
            _log.info('Operation check ip')
            return None

    if __name__ == '__main__':
        # 启动RPC服务器
        rpc_interface = OperationRpcInterface
        url = 'tcp://127.0.0.1:7772'
        server = ServerManager(url, rpc_interface, name='Test Server')
        server.start()

        # 建立一个客户端连接
        with open_client(url) as client:
            client.ls_file()
            client.check_ip()

        # 停止服务器
        server.stop()


Resources
=========

* `GitHub repository <https://github.com/yidao620c/xnrpc>`_
* `Python User Guide <https://www.python.org/doc/>`_
xntool 0.8.2
funny tools
License: MIT
Keywords: xntool,qiuniu,excel,pdf,mysql

xn toolkit
==========

xntool has many convenient tools, use ``xntool --help`` to show more examples.


install
-------

usage:

.. code-block:: bash

    pip install xntool


Wiki
----


show honey words
++++++++++++++++

usage:

.. code-block:: bash

    xntool love


tail like
+++++++++

usage:

.. code-block:: bash

    xntool tail /var/log/web.log 'python'


convert Windows' CRLF into Unix's LF
++++++++++++++++++++++++++++++++++++

usage:

.. code-block:: bash

    xntool dos2unix /var/log/web.log


replace text in file
++++++++++++++++++++

usage:

.. code-block:: bash

    xntool replace data.txt python perl


evaluate file's md5
+++++++++++++++++++
usage:

.. code-block:: bash

    xntool md5 data.txt


upload picture to qiniu
+++++++++++++++++++++++

first login <http://www.qiniu.com/>, get your configuration and modify ``/usr/etc/xntool/xntool.conf`` :

.. code-block:: bash

    #  Access Key and Secret Key
    ACCESS_KEY = 'xxxxxxxxxxxxxxxx'
    SECRET_KEY = 'yyyyyyyyyyyyyyyy'
    # your URL
    URL_PRE = 'http://yidaospace.qiniudn.com/'
    # your bucket name
    BUCKET_NAME = 'yidaospace'


usage:

.. code-block:: bash

    xntool qiniu /tmp/pics

you can fetch the urls of uploaded pictures in ``url.txt``

More
++++

for more, please use ``xntool --help`` ...

Resources
+++++++++

* `GitHub repository <https://github.com/yidao620c/xntool>`_
* `Python User Guide <https://www.python.org/doc/>`_
ink 0.0.1
Digital signatures made easy.
License: MIT
Keywords: digital signatures,signing,ed25519,key storage

Ink: Digital signatures made easy
=================================

.. image:: https://img.shields.io/pypi/v/ink.svg?style=flat-square
    :target: https://pypi.org/project/ink

.. image:: https://img.shields.io/travis/ofek/ink.svg?branch=master&style=flat-square
    :target: https://travis-ci.org/ofek/ink

.. image:: https://img.shields.io/codecov/c/github/ofek/ink.svg?style=flat-square
    :target: https://codecov.io/gh/ofek/ink

.. image:: https://img.shields.io/pypi/pyversions/ink.svg?style=flat-square
    :target: https://pypi.org/project/ink

.. image:: https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square
    :target: https://en.wikipedia.org/wiki/MIT_License

-----

Coming soon