https://github.com/vr2262/asyncio-portier
Portier client for Python with asyncio
https://github.com/vr2262/asyncio-portier
portier python python-3 python-library
Last synced: 8 months ago
JSON representation
Portier client for Python with asyncio
- Host: GitHub
- URL: https://github.com/vr2262/asyncio-portier
- Owner: vr2262
- License: gpl-3.0
- Created: 2017-02-08T21:28:11.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-07-23T18:49:23.000Z (almost 5 years ago)
- Last Synced: 2025-01-22T21:11:09.687Z (over 1 year ago)
- Topics: portier, python, python-3, python-library
- Language: Python
- Homepage: https://pypi.org/project/asyncio-portier/
- Size: 58.6 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
Portier authentication Python helpers that are asyncio-aware
============================================================
|coverage|
.. |coverage| image:: https://github.com/vr2262/asyncio-portier/workflows/Python%20tests%20and%20coverage/badge.svg
*asyncio-portier* is a set of helpers for `the Portier Identity Provider
`_. It is based on `the portier-python package
`_ but modified to work with
:code:`asyncio`.
Usage
------------
The helpers work in much the same way as the ones in *portier-python*. Check
`the demos directory
`_ for usage
examples.
Notes
------------
* *portier-python* doesn't seem to work quite right with Redis as the cache
backend, so there are a few Redis-specific modifications. This may change in
the future.
* I expected the calls to cryptographic libraries to be blocking, but I saw no
improvement from running those calls in an :code:`Executor` as per
https://docs.python.org/3/library/asyncio-eventloop.html#executor.