{"id":19124216,"url":"https://github.com/tair-opensource/tair-py","last_synced_at":"2025-05-05T19:12:31.042Z","repository":{"id":49837272,"uuid":"513777476","full_name":"tair-opensource/tair-py","owner":"tair-opensource","description":"A Python client of Tair based on redis-py","archived":false,"fork":false,"pushed_at":"2023-11-29T02:41:20.000Z","size":207,"stargazers_count":13,"open_issues_count":3,"forks_count":7,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-11-08T14:57:44.460Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tair-opensource.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-07-14T05:56:03.000Z","updated_at":"2024-10-29T15:26:13.000Z","dependencies_parsed_at":"2023-09-27T09:37:56.048Z","dependency_job_id":"de627000-a8d2-4427-b543-3742951f03b9","html_url":"https://github.com/tair-opensource/tair-py","commit_stats":null,"previous_names":["alibaba/tair-py"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tair-opensource%2Ftair-py","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tair-opensource%2Ftair-py/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tair-opensource%2Ftair-py/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tair-opensource%2Ftair-py/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tair-opensource","download_url":"https://codeload.github.com/tair-opensource/tair-py/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223789618,"owners_count":17203230,"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":[],"created_at":"2024-11-09T05:28:26.400Z","updated_at":"2024-11-09T05:28:27.055Z","avatar_url":"https://github.com/tair-opensource.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tair-py\n\n[![Test](https://github.com/alibaba/tair-py/actions/workflows/test.yml/badge.svg)](https://github.com/alibaba/tair-py/actions/workflows/test.yml)\n[![Format](https://github.com/alibaba/tair-py/actions/workflows/format.yml/badge.svg)](https://github.com/alibaba/tair-py/actions/workflows/format.yml)\n[![Coverage](https://github.com/alibaba/tair-py/actions/workflows/coverage.yml/badge.svg)](https://github.com/alibaba/tair-py/actions/workflows/coverage.yml)\n[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE)\n[![pypi](https://badge.fury.io/py/tair.svg)](https://pypi.org/project/tair/)\n\nEnglish | [简体中文](https://github.com/alibaba/tair-py/blob/main/README.zh_CN.md)\n\ntair-py is a Python client of [Tair](https://www.alibabacloud.com/help/en/apsaradb-for-redis/latest/apsaradb-for-redis-enhanced-edition-overview) based on [redis-py](https://github.com/redis/redis-py). The following modules of Tair are supported.\n\n- [TairString](https://www.alibabacloud.com/help/en/apsaradb-for-redis/latest/tairstring-commands), is a string that contains a version number. ([Open sourced](https://github.com/alibaba/TairString))\n- [TairHash](https://www.alibabacloud.com/help/en/apsaradb-for-redis/latest/tairhash-commands), is a hash that allows you to specify the expiration time and version number of a field. ([Open sourced](https://github.com/alibaba/TairHash))\n- [TairZset](https://www.alibabacloud.com/help/en/apsaradb-for-redis/latest/tairzset-commands), allows you to sort data of the double type based on multiple dimensions. ([Open sourced](https://github.com/alibaba/TairZset))\n- [TairBloom](https://www.alibabacloud.com/help/en/apsaradb-for-redis/latest/tairbloom-commands), is a Bloom filter that supports dynamic scaling. \n- [TairRoaring](https://www.alibabacloud.com/help/en/apsaradb-for-redis/latest/tairroaring-commands), is a more efficient and balanced type of compressed bitmaps recognized by the industry. \n- [TairSearch](https://www.alibabacloud.com/help/en/apsaradb-for-redis/latest/tairsearch-command), is a full-text search module developed in-house based on Redis modules. \n- [TairDoc](https://www.alibabacloud.com/help/en/apsaradb-for-redis/latest/tairdoc-commands), to perform create, read, update, and delete (CRUD) operations on JSON data. \n- [TairGis](https://www.alibabacloud.com/help/en/apsaradb-for-redis/latest/tairgis-commands), allowing you to query points, linestrings, and polygons. ([Open Sourced](https://github.com/tair-opensource/TairGis))\n- [TairTs](https://www.alibabacloud.com/help/en/apsaradb-for-redis/latest/tairts-commands), is a time series data structure that is developed on top of Redis modules.\n- [TairCpc](https://www.alibabacloud.com/help/en/apsaradb-for-redis/latest/taircpc-commands), is a data structure developed based on the compressed probability counting (CPC) sketch. \n- [TairVector](https://www.alibabacloud.com/help/en/apsaradb-for-redis/latest/tairvector), is a vector search data structure, offering simplicity, flexibility, real-time performance, and high efficiency.  \n\n## Install\n\nInstall from pip:\n\n```shell\npip install tair\n```\n\nInstall from source:\n\n```shell\ngit clone https://github.com/alibaba/tair-py.git\ncd tair-py\npython setup.py install\n```\n\n## Usage\n\ntair-py supports Python 3.7+.\n\n```python\n#!/usr/bin/env python\n\nfrom tair import Tair\n\nif __name__ == \"__main__\":\n    try:\n        t = Tair(host=\"localhost\", port=6379, db=0)\n        t.exset(\"foo\", \"bar\")\n        # exget return a ExgetResult object.\n        ret = t.exget(\"foo\")\n        print(ret.value)  # output b'bar'.\n        print(ret.version)  # output 1\n    except Exception as e:\n        print(e)\n        exit(1)\n```\n\nFor more examples, please see [examples](https://github.com/alibaba/tair-py/blob/main/examples).\n\n## Maintainers\n\n[@Vincil Lau](https://github.com/VincilLau).\n\n## Contributing\n\nFeel free to dive in! [Open an issue](https://github.com/alibaba/tair-py/issues/new) or submit a Pull Request.\n\n## License\n\n[MIT](LICENSE)\n\n## Tair All SDK\n\n| language | GitHub |\n|----------|---|\n| Java     |https://github.com/alibaba/alibabacloud-tairjedis-sdk|\n| Python   |https://github.com/alibaba/tair-py|\n| Go       |https://github.com/alibaba/tair-go|\n| .Net     |https://github.com/alibaba/AlibabaCloud.TairSDK|","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftair-opensource%2Ftair-py","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftair-opensource%2Ftair-py","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftair-opensource%2Ftair-py/lists"}