[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1031126: ITP: aiomcache -- Minimal pure python memcached client



Package: wnpp
Severity: wishlist
Owner: Gianfranco Costamagna <locutusofborg@debian.org>

* Package name    : aiomcache
  Version         : 0.8.1
  Upstream Author : Nikolay Kim <fafhrd91@gmail.com>
* URL             : https://github.com/aio-libs/aiomcache/
* License         : BSD-2-Clause
  Programming Lang: Python
  Description     : Minimal pure python memcached client

Binary package names: python3-aiomcache
 memcached client for asyncio
 The API looks very similar to the other memcache clients:
 .
  .. code:: python
 .
     import asyncio
     import aiomcache
 .
     async def hello_aiomcache():
         mc = aiomcache.Client("127.0.0.1", 11211)
         await mc.set(b"some_key", b"Some value")
         value = await mc.get(b"some_key")
         print(value)
         values = await mc.multi_get(b"some_key", b"other_key")
         print(values)
         await mc.delete(b"another_key")
 .
     asyncio.run(hello_aiomcache())
 .
 .
 Version 0.8 introduces `FlagClient` which allows registering callbacks to
 set or process flags.  See `examples/simple_with_flag_handler.py`

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


Reply to: