aiomcache


Nameaiomcache JSON
Version 0.8.0 PyPI version JSON
download
home_pagehttps://github.com/aio-libs/aiomcache/
SummaryMinimal pure python memcached client
upload_time2022-12-11 19:33:40
maintainerNikolay Kim <fafhrd91@gmail.com>, Andrew Svetlov <andrew.svetlov@gmail.com>
docs_urlNone
authorNikolay Kim
requires_python>=3.7
licenseBSD
keywords
VCS
bugtrack_url
requirements docker-py mypy pytest pytest-asyncio pytest-cov python-memcached flake8 flake8-bandit flake8-bugbear flake8-import-order flake8-requirements typing_extensions
Travis-CI No Travis.
coveralls test coverage
            memcached client for asyncio
============================

asyncio (PEP 3156) library to work with memcached.


Getting started
---------------

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`

=======
CHANGES
=======

.. towncrier release notes start

0.8.0 (2022-12-11)
==================
- Add ``FlagClient`` to support memcached flags.
- Fix type annotations for ``@acquire``.
- Fix rare exception caused by memcached server dying in middle of operation.
- Fix get method to not use CAS.

0.7.0 (2022-01-20)
=====================

- Added support for Python 3.10
- Added support for non-ascii keys
- Added type annotations

0.6.0 (2017-12-03)
==================

- Drop python 3.3 support

0.5.2 (2017-05-27)
==================

- Fix issue with pool concurrency and task cancellation

0.5.1 (2017-03-08)
==================

- Added MANIFEST.in

0.5.0 (2017-02-08)
==================

- Added gets and cas commands

0.4.0 (2016-09-26)
==================

- Make max_size strict #14

0.3.0 (2016-03-11)
==================

- Dockerize tests

- Reuse memcached connections in Client Pool #4

- Fix stats parse to compatible more mc class software #5

0.2 (2015-12-15)
================

- Make the library Python 3.5 compatible

0.1 (2014-06-18)
================

- Initial release

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/aio-libs/aiomcache/",
    "name": "aiomcache",
    "maintainer": "Nikolay Kim <fafhrd91@gmail.com>, Andrew Svetlov <andrew.svetlov@gmail.com>",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "aio-libs@googlegroups.com",
    "keywords": "",
    "author": "Nikolay Kim",
    "author_email": "fafhrd91@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/0b/e8/7c0f44a347a0ccc3787efb70fb0cd1e5969bdeb944b7869eed77b6533456/aiomcache-0.8.0.tar.gz",
    "platform": null,
    "description": "memcached client for asyncio\n============================\n\nasyncio (PEP 3156) library to work with memcached.\n\n\nGetting started\n---------------\n\nThe API looks very similar to the other memcache clients:\n\n.. code:: python\n\n    import asyncio\n    import aiomcache\n\n    async def hello_aiomcache():\n        mc = aiomcache.Client(\"127.0.0.1\", 11211)\n        await mc.set(b\"some_key\", b\"Some value\")\n        value = await mc.get(b\"some_key\")\n        print(value)\n        values = await mc.multi_get(b\"some_key\", b\"other_key\")\n        print(values)\n        await mc.delete(b\"another_key\")\n\n    asyncio.run(hello_aiomcache())\n\n\nVersion 0.8 introduces `FlagClient` which allows registering callbacks to\nset or process flags.  See `examples/simple_with_flag_handler.py`\n\n=======\nCHANGES\n=======\n\n.. towncrier release notes start\n\n0.8.0 (2022-12-11)\n==================\n- Add ``FlagClient`` to support memcached flags.\n- Fix type annotations for ``@acquire``.\n- Fix rare exception caused by memcached server dying in middle of operation.\n- Fix get method to not use CAS.\n\n0.7.0 (2022-01-20)\n=====================\n\n- Added support for Python 3.10\n- Added support for non-ascii keys\n- Added type annotations\n\n0.6.0 (2017-12-03)\n==================\n\n- Drop python 3.3 support\n\n0.5.2 (2017-05-27)\n==================\n\n- Fix issue with pool concurrency and task cancellation\n\n0.5.1 (2017-03-08)\n==================\n\n- Added MANIFEST.in\n\n0.5.0 (2017-02-08)\n==================\n\n- Added gets and cas commands\n\n0.4.0 (2016-09-26)\n==================\n\n- Make max_size strict #14\n\n0.3.0 (2016-03-11)\n==================\n\n- Dockerize tests\n\n- Reuse memcached connections in Client Pool #4\n\n- Fix stats parse to compatible more mc class software #5\n\n0.2 (2015-12-15)\n================\n\n- Make the library Python 3.5 compatible\n\n0.1 (2014-06-18)\n================\n\n- Initial release\n",
    "bugtrack_url": null,
    "license": "BSD",
    "summary": "Minimal pure python memcached client",
    "version": "0.8.0",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "48fc040fc04bd3f0495a362f98040e16",
                "sha256": "30d1bf51d4b8262c2a80763acf5de47e54c71b2c7dcc1b62870e64805ff699a0"
            },
            "downloads": -1,
            "filename": "aiomcache-0.8.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "48fc040fc04bd3f0495a362f98040e16",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 15521,
            "upload_time": "2022-12-11T19:33:38",
            "upload_time_iso_8601": "2022-12-11T19:33:38.018087Z",
            "url": "https://files.pythonhosted.org/packages/a9/ce/bc04d994153d22bad55db082c371f4ca57dbf526a65689d32c4ec95448ca/aiomcache-0.8.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "34a36d6be495a8e923785dcad1de727e",
                "sha256": "3efd96b646a08cc2bb9af1066caff8a122e54a5af1db81a98f3d80be3a0972d8"
            },
            "downloads": -1,
            "filename": "aiomcache-0.8.0.tar.gz",
            "has_sig": false,
            "md5_digest": "34a36d6be495a8e923785dcad1de727e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 14871,
            "upload_time": "2022-12-11T19:33:40",
            "upload_time_iso_8601": "2022-12-11T19:33:40.471296Z",
            "url": "https://files.pythonhosted.org/packages/0b/e8/7c0f44a347a0ccc3787efb70fb0cd1e5969bdeb944b7869eed77b6533456/aiomcache-0.8.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-11 19:33:40",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "aio-libs",
    "github_project": "aiomcache",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "requirements": [
        {
            "name": "docker-py",
            "specs": [
                [
                    "==",
                    "1.10.6"
                ]
            ]
        },
        {
            "name": "mypy",
            "specs": [
                [
                    "==",
                    "0.991"
                ]
            ]
        },
        {
            "name": "pytest",
            "specs": [
                [
                    "==",
                    "7.2.0"
                ]
            ]
        },
        {
            "name": "pytest-asyncio",
            "specs": [
                [
                    "==",
                    "0.20.3"
                ]
            ]
        },
        {
            "name": "pytest-cov",
            "specs": [
                [
                    "==",
                    "4.0.0"
                ]
            ]
        },
        {
            "name": "python-memcached",
            "specs": [
                [
                    "==",
                    "1.59"
                ]
            ]
        },
        {
            "name": "flake8",
            "specs": [
                [
                    "==",
                    "5.0.4"
                ]
            ]
        },
        {
            "name": "flake8-bandit",
            "specs": [
                [
                    "==",
                    "4.1.1"
                ]
            ]
        },
        {
            "name": "flake8-bugbear",
            "specs": [
                [
                    "==",
                    "22.12.6"
                ]
            ]
        },
        {
            "name": "flake8-import-order",
            "specs": [
                [
                    "==",
                    "0.18.2"
                ]
            ]
        },
        {
            "name": "flake8-requirements",
            "specs": [
                [
                    "==",
                    "1.7.5"
                ]
            ]
        },
        {
            "name": "typing_extensions",
            "specs": [
                [
                    "==",
                    "4.4.0"
                ]
            ]
        }
    ],
    "lcname": "aiomcache"
}
        
Elapsed time: 0.02376s