tair-py
English | 简体中文
tair-py is a Python client of Tair based on redis-py. The following modules of Tair are supported.
- TairString, is a string that contains a version number. (Open sourced)
- TairHash, is a hash that allows you to specify the expiration time and version number of a field. (Open sourced)
- TairZset, allows you to sort data of the double type based on multiple dimensions. (Open sourced)
- TairBloom, is a Bloom filter that supports dynamic scaling.
- TairRoaring, is a more efficient and balanced type of compressed bitmaps recognized by the industry.
- TairSearch, is a full-text search module developed in-house based on Redis modules.
- TairDoc, to perform create, read, update, and delete (CRUD) operations on JSON data.
- TairGis, allowing you to query points, linestrings, and polygons. (Open Sourced)
- TairTs, is a time series data structure that is developed on top of Redis modules.
- TairCpc, is a data structure developed based on the compressed probability counting (CPC) sketch.
- TairVector, is a vector search data structure, offering simplicity, flexibility, real-time performance, and high efficiency.
Install
Install from pip:
pip install tair
Install from source:
git clone https://github.com/alibaba/tair-py.git
cd tair-py
python setup.py install
Usage
tair-py supports Python 3.7+.
#!/usr/bin/env python
from tair import Tair
if __name__ == "__main__":
try:
t = Tair(host="localhost", port=6379, db=0)
t.exset("foo", "bar")
# exget return a ExgetResult object.
ret = t.exget("foo")
print(ret.value) # output b'bar'.
print(ret.version) # output 1
except Exception as e:
print(e)
exit(1)
For more examples, please see examples.
Maintainers
Contributing
Feel free to dive in! Open an issue or submit a Pull Request.
License
Tair All SDK
Metadata
Release files for tair 1.3.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| tair-1.3.7.tar.gz | 39.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tair-1.3.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 67.8 kB
Release files / tair-1.3.7.tar.gz
| Download URL | tair-1.3.7.tar.gz |
|---|---|
| Size | 39.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
311d04d9d86374ec697028e1a2265406003569abd4cf6fdec11080cfc91ff00a
|
|
BLAKE2b-256 checksum How to use checksums |
e8a679171161c29cf02bef3dc1235f1ad7308306cbaa3c0c8ab88f2682a94d66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.6
|
Release files / tair-1.3.7-py3-none-any.whl
| Download URL | tair-1.3.7-py3-none-any.whl |
|---|---|
| Size | 28.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
460baf95267abd4c721ca6e6fc4d5c1e19fd0e7258242a6b0ddb1ba76a9db4f0
|
|
BLAKE2b-256 checksum How to use checksums |
181b3a534ec58edd159adb7c4e4f04fb8b1288e17f6ca509a072456075c6bbaf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.6
|
Security for tair 1.3.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.