{"id":13595246,"url":"https://github.com/pinterest/pymemcache","last_synced_at":"2025-04-09T10:33:13.815Z","repository":{"id":5131145,"uuid":"6296987","full_name":"pinterest/pymemcache","owner":"pinterest","description":"A comprehensive, fast, pure-Python memcached client.","archived":false,"fork":false,"pushed_at":"2024-04-12T22:20:29.000Z","size":854,"stargazers_count":740,"open_issues_count":30,"forks_count":176,"subscribers_count":32,"default_branch":"master","last_synced_at":"2024-04-14T12:52:02.231Z","etag":null,"topics":["memcache","memcached","python"],"latest_commit_sha":null,"homepage":"https://pymemcache.readthedocs.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"nicklockwood/CountryPicker","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pinterest.png","metadata":{"files":{"readme":"README.rst","changelog":"ChangeLog.rst","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2012-10-19T15:15:19.000Z","updated_at":"2024-04-17T23:25:22.389Z","dependencies_parsed_at":"2024-02-27T02:48:23.779Z","dependency_job_id":"a383e0f6-f724-4caa-8b6a-03364d4acc81","html_url":"https://github.com/pinterest/pymemcache","commit_stats":{"total_commits":539,"total_committers":95,"mean_commits":5.673684210526316,"dds":0.8348794063079777,"last_synced_commit":"d8ec581fff55c63d93f3e15a2a302e395114a759"},"previous_names":[],"tags_count":35,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinterest%2Fpymemcache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinterest%2Fpymemcache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinterest%2Fpymemcache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pinterest%2Fpymemcache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pinterest","download_url":"https://codeload.github.com/pinterest/pymemcache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248020593,"owners_count":21034459,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["memcache","memcached","python"],"created_at":"2024-08-01T16:01:46.343Z","updated_at":"2025-04-09T10:33:08.800Z","avatar_url":"https://github.com/pinterest.png","language":"Python","readme":"pymemcache\n==========\n\n.. image:: https://img.shields.io/pypi/v/pymemcache.svg\n    :target: https://pypi.python.org/pypi/pymemcache\n\n.. image:: https://readthedocs.org/projects/pymemcache/badge/?version=master\n        :target: https://pymemcache.readthedocs.io/en/latest/\n        :alt: Master Documentation Status\n\nA comprehensive, fast, pure-Python memcached client.\n\npymemcache supports the following features:\n\n* Complete implementation of the memcached text protocol.\n* Connections using UNIX sockets, or TCP over IPv4 or IPv6.\n* Configurable timeouts for socket connect and send/recv calls.\n* Access to the \"noreply\" flag, which can significantly increase the speed of writes.\n* Flexible, modular and simple approach to serialization and deserialization.\n* The (optional) ability to treat network and memcached errors as cache misses.\n\nInstalling pymemcache\n=====================\n\nInstall from pip:\n\n.. code-block:: bash\n\n  pip install pymemcache\n\nFor development, clone from github and run the tests:\n\n.. code-block:: bash\n\n    git clone https://github.com/pinterest/pymemcache.git\n    cd pymemcache\n\nRun the tests (make sure you have a local memcached server running):\n\n.. code-block:: bash\n\n    tox\n\nUsage\n=====\n\nSee the documentation here: https://pymemcache.readthedocs.io/en/latest/\n\nDjango\n------\n\nSince version 3.2, Django has included a pymemcache-based cache backend.\nSee `its documentation \n\u003chttps://docs.djangoproject.com/en/stable/topics/cache/#memcached\u003e`__.\n\nOn older Django versions, you can use\n`django-pymemcache \u003chttps://github.com/django-pymemcache/django-pymemcache\u003e`_.\n\nComparison with Other Libraries\n===============================\n\npylibmc\n-------\n\nThe pylibmc library is a wrapper around libmemcached, implemented in C. It is\nfast, implements consistent hashing, the full memcached protocol and timeouts.\nIt does not provide access to the \"noreply\" flag. It also isn't pure Python,\nso using it with libraries like gevent is out of the question, and its\ndependency on libmemcached poses challenges (e.g., it must be built against\nthe same version of libmemcached that it will use at runtime).\n\npython-memcached\n----------------\n\nThe python-memcached library implements the entire memcached text protocol, has\na single timeout for all socket calls and has a flexible approach to\nserialization and deserialization. It is also written entirely in Python, so\nit works well with libraries like gevent. However, it is tied to using thread\nlocals, doesn't implement \"noreply\", can't treat errors as cache misses and is\nslower than both pylibmc and pymemcache. It is also tied to a specific method\nfor handling clusters of memcached servers.\n\nmemcache_client\n---------------\n\nThe team at mixpanel put together a pure Python memcached client as well. It\nhas more fine grained support for socket timeouts, only connects to a single\nhost. However, it doesn't support most of the memcached API (just get, set,\ndelete and stats), doesn't support \"noreply\", has no serialization or\ndeserialization support and can't treat errors as cache misses.\n\nExternal Links\n==============\n\nThe memcached text protocol reference page:\n  https://github.com/memcached/memcached/blob/master/doc/protocol.txt\n\nThe python-memcached library (another pure-Python library):\n  https://github.com/linsomniac/python-memcached\n\nMixpanel's Blog post about their memcached client for Python:\n  https://engineering.mixpanel.com/we-went-down-so-we-wrote-a-better-pure-python-memcache-client-b409a9fe07a9\n\nMixpanel's pure Python memcached client:\n  https://github.com/mixpanel/memcache_client\n  \nBye-bye python-memcached, hello pymemcache (migration guide)\n  https://jugmac00.github.io/blog/bye-bye-python-memcached-hello-pymemcache/\n\nCredits\n=======\n\n* `Charles Gordon \u003chttp://github.com/cgordon\u003e`_\n* `Dave Dash \u003chttp://github.com/davedash\u003e`_\n* `Dan Crosta \u003chttp://github.com/dcrosta\u003e`_\n* `Julian Berman \u003chttp://github.com/Julian\u003e`_\n* `Mark Shirley \u003chttp://github.com/maspwr\u003e`_\n* `Tim Bart \u003chttp://github.com/pims\u003e`_\n* `Thomas Orozco \u003chttp://github.com/krallin\u003e`_\n* `Marc Abramowitz \u003chttp://github.com/msabramo\u003e`_\n* `Marc-Andre Courtois \u003chttp://github.com/mcourtois\u003e`_\n* `Julien Danjou \u003chttp://github.com/jd\u003e`_\n* `INADA Naoki \u003chttp://github.com/methane\u003e`_\n* `James Socol \u003chttp://github.com/jsocol\u003e`_\n* `Joshua Harlow \u003chttp://github.com/harlowja\u003e`_\n* `John Anderson \u003chttp://github.com/sontek\u003e`_\n* `Adam Chainz \u003chttp://github.com/adamchainz\u003e`_\n* `Ernest W. Durbin III \u003chttps://github.com/ewdurbin\u003e`_\n* `Remco van Oosterhout \u003chttps://github.com/Vhab\u003e`_\n* `Nicholas Charriere \u003chttps://github.com/nichochar\u003e`_\n* `Joe Gordon \u003chttps://github.com/jogo\u003e`_\n* `Jon Parise \u003chttps://github.com/jparise\u003e`_\n* `Stephen Rosen \u003chttps://github.com/sirosen\u003e`_\n* `Feras Alazzeh \u003chttps://github.com/FerasAlazzeh\u003e`_\n* `Moisés Guimarães de Medeiros \u003chttps://github.com/moisesguimaraes\u003e`_\n* `Nick Pope \u003chttps://github.com/ngnpope\u003e`_\n* `Hervé Beraud \u003chttps://github.com/4383\u003e`_\n* `Martin Jørgensen \u003chttps://github.com/martinnj\u003e`_\n* `Matej Spiller Muys \u003chttps://github.com/matejsp\u003e`_\n* `misuzu \u003chttps://github.com/misuzu\u003e`_\n\nWe're Hiring!\n=============\nAre you really excited about open-source? Or great software engineering?\nPinterest is `hiring \u003chttps://careers.pinterest.com/\u003e`_!\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpinterest%2Fpymemcache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpinterest%2Fpymemcache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpinterest%2Fpymemcache/lists"}