semvec/pypi-packages huggingface dataset:
hier-client 0.1.5
Python library for using Hier from the CLI.
License: MIT

# hier_client

A Python library for using [Hier](https://honorable-diligent-serval.anvil.app/) from the CLI.

## Install

The client requires Python >3.6. Just use `pip` to install:

```
$ pip install hier_client
```

## Quickstart

Before using the client, you must generate a Hier token.
Go to your profile page on [Hier](https://honorable-diligent-serval.anvil.app/).
Click the `Refresh token` button.

Back at the command-line, initialize the client.
You'll only have to do this once.

```
$ hier init
```

You'll be prompted for the email you used to register for Hier,
as well as the token you just generated.
If you do ever want to update your token,
you can always rerun `hier init`.

Now, add a note for today:

```
$ hier write "Learned about the Hier client."
```

If you've already made notes for today, no worries, just append to them:

```
$ hier write --append "Learned about the Hier client."
```

Or to start a note over from scratch, use `--force` instead.

```
$ hier write --force "Wrote a fresh note."
```

Finally, if you just want to see what you've already written:

```
$ hier read
```

## Bugs or Suggestions

Feel free to leave an [Issue](https://github.com/Jessime/hier_client/issues) if anything comes up!
Flask-WX-OAuth 0.2.3
Flask Extension for wechat oauth2.0.
License: MIT

Flask-WX-OAuth
==============

.. inclusion-marker-do-not-remove

官方文档
----------

- `微信网页授权 <https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421140842>`_

- `授权后接口调用 <https://open.weixin.qq.com/cgi-bin/showdocument?action=dir_list&t=resource/res_list&verify=1&id=open1419316518&lang=zh_CN>`_

- `公众平台测试账号 <http://mp.weixin.qq.com/debug/cgi-bin/sandbox?t=sandbox/login>`_

安装
-------

.. code-block:: sh

    pip install Flask-WX-OAuth

使用方式
----------

flask扩展的使用方式:

.. code-block:: python

    from flask_wx_oauth import WXOAuth

    wx_oauth = WXOAuth()
    wx_oauth.init_app(app)



也可以每次初始化后使用:

.. code-block:: python

    from flask_wx_oauth import WXOAuth
    wx_oauth = WXOAuth(appid='YOUR APPID', secret='YOUR SECRET')


在view中调用
--------------

.. code-block:: py

    next = request.args.get('next', '/')
    redirect_uri = url_for('.authorized', next=next, _external=True)
    params = dict(
        redirect_uri=redirect_uri,
        scope='snsapi_base',
    )
    return redirect(wx_oauth.get_authorize_url(**params))


运行示例代码
--------------

.. code-block:: sh

    docker build -t flask-wx-oauth .
    docker run -v $(pwd):/app -p 5000:5000 flask-wx-oauth