Debian Codegraph @

PKG-INFO

raw
1 Metadata-Version: 2.1
2 Name: aiomcache
3 Version: 0.8.2
4 Summary: Minimal pure python memcached client
5 Home-page: https://github.com/aio-libs/aiomcache/
6 Author: Nikolay Kim
7 Author-email: [email protected]
8 Maintainer: Nikolay Kim <[email protected]>, Andrew Svetlov <[email protected]>
9 Maintainer-email: [email protected]
10 License: BSD
11 Classifier: License :: OSI Approved :: BSD License
12 Classifier: Intended Audience :: Developers
13 Classifier: Programming Language :: Python
14 Classifier: Programming Language :: Python :: 3.8
15 Classifier: Programming Language :: Python :: 3.9
16 Classifier: Programming Language :: Python :: 3.10
17 Classifier: Programming Language :: Python :: 3.11
18 Classifier: Programming Language :: Python :: 3.12
19 Classifier: Operating System :: POSIX
20 Classifier: Operating System :: MacOS :: MacOS X
21 Classifier: Operating System :: Microsoft :: Windows
22 Classifier: Environment :: Web Environment
23 Classifier: Framework :: AsyncIO
24 Requires-Python: >=3.8
25 Description-Content-Type: text/x-rst
26 License-File: LICENSE
27 Requires-Dist: typing_extensions>=4; python_version < "3.11"
28
29 memcached client for asyncio
30 ============================
31
32 asyncio (PEP 3156) library to work with memcached.
33
34
35 Getting started
36 ---------------
37
38 The API looks very similar to the other memcache clients:
39
40 .. code:: python
41
42 import asyncio
43 import aiomcache
44
45 async def hello_aiomcache():
46 mc = aiomcache.Client("127.0.0.1", 11211)
47 await mc.set(b"some_key", b"Some value")
48 value = await mc.get(b"some_key")
49 print(value)
50 values = await mc.multi_get(b"some_key", b"other_key")
51 print(values)
52 await mc.delete(b"another_key")
53
54 asyncio.run(hello_aiomcache())
55
56
57 Version 0.8 introduces `FlagClient` which allows registering callbacks to
58 set or process flags. See `examples/simple_with_flag_handler.py`
59
60 =======
61 CHANGES
62 =======
63
64 .. towncrier release notes start
65
66 0.8.2 (2024-05-07)
67 ==================
68 - Fix a static typing error with ``Client.get()``.
69
70 0.8.1 (2023-02-10)
71 ==================
72 - Add ``conn_args`` to ``Client`` to allow TLS and other options when connecting to memcache.
73
74 0.8.0 (2022-12-11)
75 ==================
76 - Add ``FlagClient`` to support memcached flags.
77 - Fix type annotations for ``@acquire``.
78 - Fix rare exception caused by memcached server dying in middle of operation.
79 - Fix get method to not use CAS.
80
81 0.7.0 (2022-01-20)
82 =====================
83
84 - Added support for Python 3.10
85 - Added support for non-ascii keys
86 - Added type annotations
87
88 0.6.0 (2017-12-03)
89 ==================
90
91 - Drop python 3.3 support
92
93 0.5.2 (2017-05-27)
94 ==================
95
96 - Fix issue with pool concurrency and task cancellation
97
98 0.5.1 (2017-03-08)
99 ==================
100
101 - Added MANIFEST.in
102
103 0.5.0 (2017-02-08)
104 ==================
105
106 - Added gets and cas commands
107
108 0.4.0 (2016-09-26)
109 ==================
110
111 - Make max_size strict #14
112
113 0.3.0 (2016-03-11)
114 ==================
115
116 - Dockerize tests
117
118 - Reuse memcached connections in Client Pool #4
119
120 - Fix stats parse to compatible more mc class software #5
121
122 0.2 (2015-12-15)
123 ================
124
125 - Make the library Python 3.5 compatible
126
127 0.1 (2014-06-18)
128 ================
129
130 - Initial release