# redys
A simple redis-like in pure python3, fully asyncio/thread/process compliant !
[on pypi/redys](https://pypi.org/project/redys/)
### features
- asyncio compliant
- client Sync (Client) & Async (AClient)
- 100% tested on all platforms ("3.7", "3.8", "3.9", "3.10", "3.11" on ubuntu-latest, macos-latest, windows-latest) **NEW**
- very quick
- `classics` commands : get/set/delete/keys & incr/decr
- `sets` commands : sadd/srem
- `queue` commands : rpush/lpush/rpop/lpop
- `pubsub` commands : subscribe/unsubscribe/get_event & publish
- `cache` commands : setex
- `ping()` command ;-)
- `KILL()` command (so a client can kill the server) **NEW**
- exchange everything that is pickable (except None)
- raise real python exception in client side
- minimal code size
- works well on GAE Standard (2nd generation/py37)
- just in-memory !
### why ?
Redis is great, but overbloated for my needs. Redys is simple, you can start
the server side in an asyncio loop, and clients can interact with a simple
in-memory db. Really useful when clients are in
async/threads/process(workers)/multi-hosts world, to share a unique source of truth.
### nb
- The sync client (`Client`) use threads, so it can't live in the same loop as the server (`Server`). It's better to use it in another thread or process.
- The async client (`AClient`) can live in the same loop as the server (`Server`), but don't forget to await each methods (which are coroutines in async version)
- Not fully/concurrency tested. Use at own risk ;-)
- See [tests](https://github.com/manatlan/redys/blob/master/tests.py) for examples
BTW, I use it in production since 2018: and no problems at all !!!! (it works as excepted)
Raw data
{
"_id": null,
"home_page": "https://github.com/manatlan/redys",
"name": "redys",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7,<4.0",
"maintainer_email": "",
"keywords": "python3,redis,pickle,asyncio,queue,cache,set,pubsub,sync,async",
"author": "manatlan",
"author_email": "manatlan@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/df/7f/31d92c44603dbde5d50871b3c064cf7aba2701ecf23f5a12bba505fff367/redys-0.9.20.tar.gz",
"platform": null,
"description": "# redys\n\nA simple redis-like in pure python3, fully asyncio/thread/process compliant !\n\n[on pypi/redys](https://pypi.org/project/redys/)\n\n### features\n\n- asyncio compliant\n- client Sync (Client) & Async (AClient)\n- 100% tested on all platforms (\"3.7\", \"3.8\", \"3.9\", \"3.10\", \"3.11\" on ubuntu-latest, macos-latest, windows-latest) **NEW**\n- very quick\n- `classics` commands : get/set/delete/keys & incr/decr\n- `sets` commands : sadd/srem\n- `queue` commands : rpush/lpush/rpop/lpop\n- `pubsub` commands : subscribe/unsubscribe/get_event & publish\n- `cache` commands : setex\n- `ping()` command ;-)\n- `KILL()` command (so a client can kill the server) **NEW**\n- exchange everything that is pickable (except None)\n- raise real python exception in client side\n- minimal code size\n- works well on GAE Standard (2nd generation/py37)\n- just in-memory !\n\n\n\n### why ?\n\nRedis is great, but overbloated for my needs. Redys is simple, you can start\nthe server side in an asyncio loop, and clients can interact with a simple\nin-memory db. Really useful when clients are in\nasync/threads/process(workers)/multi-hosts world, to share a unique source of truth.\n\n### nb\n\n- The sync client (`Client`) use threads, so it can't live in the same loop as the server (`Server`). It's better to use it in another thread or process.\n- The async client (`AClient`) can live in the same loop as the server (`Server`), but don't forget to await each methods (which are coroutines in async version)\n- Not fully/concurrency tested. Use at own risk ;-)\n- See [tests](https://github.com/manatlan/redys/blob/master/tests.py) for examples\n\nBTW, I use it in production since 2018: and no problems at all !!!! (it works as excepted)\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A simple redis-like in pure python3, fully asyncio compliant",
"version": "0.9.20",
"project_urls": {
"Documentation": "https://github.com/manatlan/redys",
"Homepage": "https://github.com/manatlan/redys",
"Repository": "https://github.com/manatlan/redys"
},
"split_keywords": [
"python3",
"redis",
"pickle",
"asyncio",
"queue",
"cache",
"set",
"pubsub",
"sync",
"async"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6239ec86648ce43de5f99b3efb01b5516158d46d9233898a89940c850267bae6",
"md5": "4dcc3a9900dbe11acc2c6a7ab143fa11",
"sha256": "28446b995a77d759e238e5b8deef6fd7e9d50a3eb796323eff1b2317bb74f5ff"
},
"downloads": -1,
"filename": "redys-0.9.20-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4dcc3a9900dbe11acc2c6a7ab143fa11",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7,<4.0",
"size": 9531,
"upload_time": "2023-10-12T11:27:39",
"upload_time_iso_8601": "2023-10-12T11:27:39.380364Z",
"url": "https://files.pythonhosted.org/packages/62/39/ec86648ce43de5f99b3efb01b5516158d46d9233898a89940c850267bae6/redys-0.9.20-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "df7f31d92c44603dbde5d50871b3c064cf7aba2701ecf23f5a12bba505fff367",
"md5": "2922ecf3658cc466aa88c5fb63aafd37",
"sha256": "0117097a96596675dd5c3d7e878b2288079fdd05dc1a1d97cbac225f79f21bb1"
},
"downloads": -1,
"filename": "redys-0.9.20.tar.gz",
"has_sig": false,
"md5_digest": "2922ecf3658cc466aa88c5fb63aafd37",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7,<4.0",
"size": 8009,
"upload_time": "2023-10-12T11:27:40",
"upload_time_iso_8601": "2023-10-12T11:27:40.711467Z",
"url": "https://files.pythonhosted.org/packages/df/7f/31d92c44603dbde5d50871b3c064cf7aba2701ecf23f5a12bba505fff367/redys-0.9.20.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-10-12 11:27:40",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "manatlan",
"github_project": "redys",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "redys"
}