semvec/pypi-packages huggingface dataset:
GodoPy 0.0.3
Python and Cython bindings to the Godot game engine.
License: MIT
Requires Python: >=3.6

======
GodoPy
======

Different Python bindings to the Godot game engine.


Work in progress
================

The bindings are a work in progress. Some planned features are missing and the existing APIs can be unstable!


Features
========

* Compilation of Cython and Python code to GDNative binaries

* Running dynamic, byte-compiled and AOT-compiled Python code from NativeScript extensions

* Automatically generatated bindings to the full Godot API

* Access to the complete official C++ API from the Cython programming language, full interoperability
  between ``godot-cpp`` and ``GodoPy``; in fact ``godot-cpp`` types are used by Cython bindings as is

* Automatic type conversions between Godot and Python types

* NumPy array access to all numeric Godot types


Installation
============

* ``PYTHON_QUICKSTART.md`` introduces GodoPy for beginners

* Advanced usage and AOT compilation are described in ``CYTHON_QUICKSTART.md``
Flask-WXApp 0.1.3
Flask Extension for WeChat App.
License: MIT

微信小程序Flask扩展
===================

- `微信文档 <https://mp.weixin.qq.com/debug/wxadoc/dev/api/api-login.html>`_

Installation
------------

.. code::

    pip install Flask-WXApp

Configuration
-------------

Your configuration should be declared within your Flask config. 

.. code:: python

    WX_APPID = 'your appid'
    WX_SECRET = 'your app secret'

Create instance within your application

.. code:: python

    from flask import Flask
    from flask_wxapp import WXApp

    wxapp = WXApp()

    def create_app():
        app = Flask(__name__)
        wxapp.init_app(app)
        return app

Usage
-----

- 通过code换取openid和session_key

接口::

  wxapp.jscode2session(js_code)

返回json(dict):

============    =============
参数            说明
============    =============
openid          用户唯一标识
session_key     会话密钥
============    =============


- 加密数据解密

接口::

    wxapp.decrypt(session_key, encrypted_data, iv)

返回数据如下::

    {
	'avatarUrl': 'http://wx.qlogo.cn/mmopen/vi_32/aSKcBBPpibyKNicHNTMM0qJVh8Kjgiak2AHWr8MHM4WgMEm7GFhsf8OYrySdbvAMvTsw3mo8ibKicsnfN5pRjl1p8HQ/0',
	'city': 'Guangzhou',
	'country': 'CN',
	'gender': 1,
	'language': 'zh_CN',
	'nickName': 'Band',
	'openId': 'oGZUI0egBJY1zhBYw2KhdUfwVJJE',
	'province': 'Guangdong',
	'unionId': 'ocMvos6NjeKLIBqg5Mr9QjxrP1FA',
	'watermark': {'appid': 'wx4f4bc4dec97d474b', 'timestamp': 1477314187}
    }

- 生成3rd_session的key

.. code:: python

    wx.gen_3rd_session_key()

返回32位长度的16进止字符串,例如::

   8e4792ee728926443147bb5703aa50a7