semvec/pypi-packages huggingface dataset:
wechat2 1.0.0
Wechat Python SDK
License: MIT
Keywords: wechat

微信公众平台SDK
=================

项目背景
--------
从2014年开始玩微信公众平台，试用过其中大多数的功能，如：消息回复、自定义菜单、公众号中的支付，页面授权等。之前的程序中都是直接调用公众平台的接口，这样复用功能无法实现。现将功能独立出单独模块

目前完成
-----------
* 获取access_token方法
* 获取微信服务器IP地址
* 自定义菜单中的查询、创建、删除（不包括个性化菜单接口）
* 消息管理中的接收普通消息、接收事件推送
* 消息管理中的被动回复用户消息
* 添加tornado代码的demo实例

使用示例
-----------

获取access_token方法
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

::

    from wechat.base import get_access_token_dict

    get_access_token_dict(APPID, APPSECRET)


消息处理基类
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

继承基础的消息处理类BaseHandler， 重写对应方法即可。 如文本、图片、视频等对应的处理方法分别问on_text、on_image、on_video。

::

    from wechat.message import *

    class MessageHandler(BaseHandler):

      def on_text(self, xml_dict):

          from_user = xml_dict['FromUserName']
          to_user = xml_dict['ToUserName']
          create_time = xml_dict['CreateTime']
          content = xml_dict['Content']

          text_response = TextResponse(from_user=to_user, to_user=from_user, create_time=create_time, content=content)
          return text_response


自定义菜单接口
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

::

    from wechat.menu.client import Client

    client = Client(access_token['access_token'])

    # 创建菜单
    client.create_menu(data)

    # 获取菜单
    client.get_menu()

    # 删除菜单
    client.delete_menu()


跑单元测试
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

::

        nosetests --with-coverage --cover-package=wechat


下一步计划
-------------
1. 继续补充其他常用接口

**感兴趣的同学可以加入到项目中一起完善**
remotejoystick 0.0.6
Remote joysticks can be used as locals ones.
License: MIT
Keywords: joystick remote socket

remotejoystick
===============

|py27| |py35| `中文版 <chinese_version_>`_

Remote joysticks can be connected to local computers now.

So some interesting games without online version can be played through screen sharing.

This version turns remote joysticks into local keyboard. With a ordinary server, delay is about 100ms.

Also, this program provide local joystick to keyboard function.

Install
>>>>>>>

You may install this program through the following script:

.. code:: bash

    pip install remotejoystick


Usage
>>>>>

This program provides two basic functions: local j2k & remote joystick connection.

More detailed help info is also available: `remotejoystick -h`

**remote joystick connection**

First, you need to have an touchable public net ip, assume it is `114.114.114.114`.

Install this program on the server of the ip (three platfroms supported), and run this cmd: `remotejoystick -ep 2333`.

This will use 2333 port for this program.

Then run this cmd on the joystick pc: `remotejoystick -sd 114.114.114.114 -p 2333`. (-j option is for more than one joystick)

Finally, use this cmd on game pc: `remotejoystick -rd 114.114.114.114 -p 2333`. (order of the last two cmd does not matter)

**local joystick to keyboard**

Use this cmd to turn joystick to keyboard locally: `remotejoystick --local`.

Future features
>>>>>>>>>>>>>>>

- Visual version
- Simulate as joystick signal locally (**help wanted! If you have any idea please contact me.**)

Author
>>>>>>

Author: `LittleCoder <author_>`_

Email: i7meavnktqegm1b@qq.com

Suggestion: `Issue #1 <issue#1_>`_

.. |py27| image:: https://img.shields.io/badge/python-2.7-ff69b4.svg
.. |py35| image:: https://img.shields.io/badge/python-3.5-red.svg
.. _chinese_version: https://github.com/littlecodersh/remotejoystick/blob/master/README.md
.. _author: https://github.com/littlecodersh
.. _issue#1: https://github.com/littlecodersh/remotejoystick/issues/1
hpoliced 0.0.4
Turns HTTPolice into a web server
License: MIT
Keywords: httpolice,http,lint,linting,tool

HTTPolice-Web
=============

Httpolice-Web turns `HTTPolice`_ into a web server. This was written for
`HTTPolice-devtool`_ which is a `Chrome extension`_ that intercepts HTTP
requests and gets them analysed and shows reports generated through a
devtool panel.

**Usage**

This will start the server at port ``8080``

::

    $ hpoliced

To specify an arbitrary port number

::

    $ hpoliced -p <port>

The project is hosted on GitHub, at `this location`_.

.. _HTTPolice: https://github.com/vfaronov/httpolice
.. _HTTPolice-devtool: https://github.com/activesphere/httpolice-devtool
.. _Chrome extension: https://chrome.google.com/webstore/detail/httpolice-devtool/hnlnhebgfcfemjaphgbeokdnfpgbnhgn
.. _this location: https://github.com/activesphere/httpolice-devtool/tree/master/hpoliced