Skip to main content

a client extends that gives developers easy access to tair or tairModules

Project description

tairClient is still being developed. Please do not use it for any mission critical purpose at this time.

tairClient-py is a package that gives developers easy access to tair or tairModules. Tair is a redis-like Key/Value structure data storage system independently developed by Alibaba. It has added many powerful modules which also can load by redis such as tairHash, tairString, etc.

The package extends redis-py’s interface with Tair’s API.


$ pip install tairClient

Usage example

from tairClient.client import Client
tair = Client()
tair.exhset("key","field","value",nx=True,ver=2) # returns 1
tair.exhmset("key",{"field2":"value2","field3":"value3","field4":""}) # returns b'OK'
tair.exhlen("key")                 # return 4
tair.exhdel("key","field")         # return 1
tair.exhlen("key")                 # return 3
tair.exhgetall("key")              # returns [b'field3', b'value3', b'field2', b'value2', b'field4', b'']
tair.exhver("key","field3")        # returns 1
tair.exhset("key","field3","2")    # returns 1
tair.exhgetwithver("key","field3") # returns [b'2', 13]


For complete documentation about tair’s commands, refer to tair’s module website.

from tairClient.client import Client
tair = Client()
# use __doc__ can get a simple doc about tair's class and function

Development and test

install tox , runs all tests as its default target. Ensure you have a running redis, with the module loaded.

pip install tox

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tairClient-0.1.3.tar.gz (11.4 kB view hashes)

Uploaded source

Built Distribution

tairClient-0.1.3-py3-none-any.whl (10.8 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page