Skip to main content

Python wrapper for redis-rs and redis_cluster_async

Project description

redis-rs

Python wrapper for redis-rs and redis_cluster_async

Install

pip install redis-rs

Using

import asyncio
import redis_rs

x = redis_rs.create_client([
    "redis://redis-node001",
    "redis://redis-node002",
], 1)
async def main():
    print(await x.execute(b"hset", "fooh", "a", b"asdfg"))
    print(await x.fetch_int("hset", "fooh", "b", 11234567890))
    print(await x.fetch_int("hget", "fooh", "b"))
    print(await x.fetch_str("hget", "fooh", "a"))
    print(await x.fetch_dict("hgetall", "fooh"))
    print(await x.execute("cluster", "nodes"))
    print(await x.fetch_bytes("get", "foo"))
    print(await x.fetch_int("get", "foo"))
    print(await x.execute("hgetall", "fooh"))
    print(await x.execute("zadd", "fooz", 1.5678, "b"))
    print(await x.fetch_scores("zrange", "fooz", 0, -1, "WITHSCORES"))


asyncio.run(main())

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

redis_rs-0.3.0.tar.gz (10.1 kB view details)

Uploaded Source

Built Distributions

redis_rs-0.3.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

redis_rs-0.3.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

redis_rs-0.3.0-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

redis_rs-0.3.0-cp311-none-win_amd64.whl (784.5 kB view details)

Uploaded CPython 3.11Windows x86-64

redis_rs-0.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

redis_rs-0.3.0-cp311-cp311-macosx_10_9_x86_64.macosx_10_9_arm64.macosx_10_9_universal2.whl (2.0 MB view details)

Uploaded CPython 3.11macOS 10.9+ ARM64macOS 10.9+ universal2 (ARM64, x86-64)macOS 10.9+ x86-64

redis_rs-0.3.0-cp310-none-win_amd64.whl (784.5 kB view details)

Uploaded CPython 3.10Windows x86-64

redis_rs-0.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

redis_rs-0.3.0-cp310-cp310-macosx_10_9_x86_64.macosx_10_9_arm64.macosx_10_9_universal2.whl (2.0 MB view details)

Uploaded CPython 3.10macOS 10.9+ ARM64macOS 10.9+ universal2 (ARM64, x86-64)macOS 10.9+ x86-64

redis_rs-0.3.0-cp39-none-win_amd64.whl (784.9 kB view details)

Uploaded CPython 3.9Windows x86-64

redis_rs-0.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

redis_rs-0.3.0-cp39-cp39-macosx_10_9_x86_64.macosx_10_9_arm64.macosx_10_9_universal2.whl (2.0 MB view details)

Uploaded CPython 3.9macOS 10.9+ ARM64macOS 10.9+ universal2 (ARM64, x86-64)macOS 10.9+ x86-64

redis_rs-0.3.0-cp38-none-win_amd64.whl (785.1 kB view details)

Uploaded CPython 3.8Windows x86-64

redis_rs-0.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

redis_rs-0.3.0-cp38-cp38-macosx_10_9_x86_64.macosx_10_9_arm64.macosx_10_9_universal2.whl (2.0 MB view details)

Uploaded CPython 3.8macOS 10.9+ ARM64macOS 10.9+ universal2 (ARM64, x86-64)macOS 10.9+ x86-64

redis_rs-0.3.0-cp37-none-win_amd64.whl (785.0 kB view details)

Uploaded CPython 3.7Windows x86-64

redis_rs-0.3.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.0 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ x86-64

redis_rs-0.3.0-cp37-cp37m-macosx_10_9_x86_64.macosx_10_9_arm64.macosx_10_9_universal2.whl (2.0 MB view details)

Uploaded CPython 3.7mmacOS 10.9+ ARM64macOS 10.9+ universal2 (ARM64, x86-64)macOS 10.9+ x86-64

File details

Details for the file redis_rs-0.3.0.tar.gz.

File metadata

  • Download URL: redis_rs-0.3.0.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.14.2

File hashes

Hashes for redis_rs-0.3.0.tar.gz
Algorithm Hash digest
SHA256 9f7e9a3834fd0a0f57b72244cfb9fd8276b3713fd95c8965dbe3bfb75f464ccb
MD5 b33e2d6ba6880dc5c55f95d39c93b25a
BLAKE2b-256 519cf3a64aa7ad80ee5948afdabad7068a12d0c4d73a79fc5859dcab1da0990c

See more details on using hashes here.

File details

Details for the file redis_rs-0.3.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for redis_rs-0.3.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e4ce40336443ecf3453e7feec54c181cb059d5dfb49f069b5c1afeeb5ad58a14
MD5 b7776430251e94f5d84d0ceb57cee67c
BLAKE2b-256 6fd9344ec6c2129ee447f3c754c90c0bcede5228db21bed9f7a8b2309cc4680f

See more details on using hashes here.

File details

Details for the file redis_rs-0.3.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for redis_rs-0.3.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 23e6cc34b1ec4950ef0941c1f0980f89e8f83f1da9bd9eb2b1d0c4537a1957e1
MD5 cb53cb6a871c83b17cde3f534e285e8a
BLAKE2b-256 8cfa193acbf356beed3988c73e32d1c52f640eb9faa3429ac15567566e69ae7f

See more details on using hashes here.

File details

Details for the file redis_rs-0.3.0-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for redis_rs-0.3.0-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 85750cfae663a5459b84afccc8018893ef374ce8a0cfc99f9fc373408946bad3
MD5 c5937709d5e986f70cb77a97bbd9ede7
BLAKE2b-256 978b6507f5b32c9e2dcbc63769bbb50af53b9a4b3db5c8b8d70dd80fb3ba3658

See more details on using hashes here.

File details

Details for the file redis_rs-0.3.0-cp311-none-win_amd64.whl.

File metadata

  • Download URL: redis_rs-0.3.0-cp311-none-win_amd64.whl
  • Upload date:
  • Size: 784.5 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.14.2

File hashes

Hashes for redis_rs-0.3.0-cp311-none-win_amd64.whl
Algorithm Hash digest
SHA256 66a9153d1eac4a3230130e64b7a5650491e0dc4d87ad534e9e7104a21c0960cf
MD5 a792df52017a091f15d46a2712c9d133
BLAKE2b-256 bad1a415a626cc8609d63c170f321ee4b09128cec8ac59688c773b351670a3fd

See more details on using hashes here.

File details

Details for the file redis_rs-0.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for redis_rs-0.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b3cc1fcd3c1646a0a3d12c941e36528dd9beccfecfd9ff7197b46772295fbc79
MD5 c692c15f541111e4f0b3c9d715d649be
BLAKE2b-256 d8db13c801567f8aef5f7fd22a9816490adb0161f6132e3ed073dc21b1dc0465

See more details on using hashes here.

File details

Details for the file redis_rs-0.3.0-cp311-cp311-macosx_10_9_x86_64.macosx_10_9_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for redis_rs-0.3.0-cp311-cp311-macosx_10_9_x86_64.macosx_10_9_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 7bb1067d57544aae689369d3294ee7c6c706a273baef9cbddf78a2319429915b
MD5 078939e590fd374b5ff7095d1bab8f04
BLAKE2b-256 193e94a39b58ab1c19203cf580a1fdfe1102a6933b5b9d6b6ee27470e5f4c698

See more details on using hashes here.

File details

Details for the file redis_rs-0.3.0-cp310-none-win_amd64.whl.

File metadata

  • Download URL: redis_rs-0.3.0-cp310-none-win_amd64.whl
  • Upload date:
  • Size: 784.5 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.14.2

File hashes

Hashes for redis_rs-0.3.0-cp310-none-win_amd64.whl
Algorithm Hash digest
SHA256 ca9f7331a1d55a0949dcc5305933bd22015614ed665721738b98ddd09fc7a7e2
MD5 12b990a640f065f96f8b717f1a90d777
BLAKE2b-256 9985ccebb8e388d0e2ad6938e1c2112ade89f10beec97bb41dac001749e61fd4

See more details on using hashes here.

File details

Details for the file redis_rs-0.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for redis_rs-0.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 08f6eafd4120e6e4f584066af4da43871f7db22cc92adabd2961cb0248b0657a
MD5 42b1867f3e51fc431e553571ca7a4bff
BLAKE2b-256 30cf5f74e3ab93205c04630c75dc2f39a5e3ae7be325e85dcd064d5a390a950e

See more details on using hashes here.

File details

Details for the file redis_rs-0.3.0-cp310-cp310-macosx_10_9_x86_64.macosx_10_9_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for redis_rs-0.3.0-cp310-cp310-macosx_10_9_x86_64.macosx_10_9_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 9ab78f71707ec203b8c2a5e4ab2e1144e3cf890ec549aeeb07c36644f4c3439a
MD5 fb6bf70cda71fb3d25a0155dde6ccc35
BLAKE2b-256 c8394a6fdf3cde049a56e66b9574af5248ca893abb7096c2939d8641c43fcf21

See more details on using hashes here.

File details

Details for the file redis_rs-0.3.0-cp39-none-win_amd64.whl.

File metadata

  • Download URL: redis_rs-0.3.0-cp39-none-win_amd64.whl
  • Upload date:
  • Size: 784.9 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.14.2

File hashes

Hashes for redis_rs-0.3.0-cp39-none-win_amd64.whl
Algorithm Hash digest
SHA256 86afa69a869d9f8d0c51311223ded6dc0a81d42648ffc7d7b11d412a0b25dcdf
MD5 0065863903dd9e4225e81a787e97b0f8
BLAKE2b-256 32bf75027096908c6dedcd40c559a3683701e94fb713716ed84876912991e6aa

See more details on using hashes here.

File details

Details for the file redis_rs-0.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for redis_rs-0.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 194eebd6b47fa385892978fa4e76d694bfd1a595db0c0efa9e177e667cd5348f
MD5 f0f278abad4b08c85bbba7419b401d1b
BLAKE2b-256 837e4077ef0501a820b71375ccd8a4d6b87fe496a79b1d8282e903cefb1d7316

See more details on using hashes here.

File details

Details for the file redis_rs-0.3.0-cp39-cp39-macosx_10_9_x86_64.macosx_10_9_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for redis_rs-0.3.0-cp39-cp39-macosx_10_9_x86_64.macosx_10_9_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 ac546ba11f1072fe64d6914743659d22753943f6f7f410b1fb8d0d456943ad1b
MD5 bc3582b1948980d8a63c05d3485f3a91
BLAKE2b-256 b4bea698c49e083e7d39fa9511e0a6b1f462e46d7d5e312f45a9c0168ad84e27

See more details on using hashes here.

File details

Details for the file redis_rs-0.3.0-cp38-none-win_amd64.whl.

File metadata

  • Download URL: redis_rs-0.3.0-cp38-none-win_amd64.whl
  • Upload date:
  • Size: 785.1 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.14.2

File hashes

Hashes for redis_rs-0.3.0-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 4d4c21a133a9109b6a92ea62a258e2222adbd45ee878ebc3a9529eae82a7976d
MD5 c3046223561ab76ebff74837b9930f22
BLAKE2b-256 92ae2363c62662f4b1629b1b368ca514faf6f5165bb7c8403ccb0b0f589b3d23

See more details on using hashes here.

File details

Details for the file redis_rs-0.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for redis_rs-0.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 76d2afa55139077c6abe7b436ace68a6ff9590686d3c05a9d8b110182b3a5f65
MD5 b6b307a649799675dd676af001ae5c0b
BLAKE2b-256 f2d8f853eeaf560d7a0398bc39e624ede56bf310458d1f0fb8c430f1314970ca

See more details on using hashes here.

File details

Details for the file redis_rs-0.3.0-cp38-cp38-macosx_10_9_x86_64.macosx_10_9_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for redis_rs-0.3.0-cp38-cp38-macosx_10_9_x86_64.macosx_10_9_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 6241d17f5c90e29b94692b911d1303159f108a9a9b0238ad0b029aaad956ec16
MD5 eefac8cda8049a2df4aea8cd598361ab
BLAKE2b-256 ed7b1fba95de8b3888822c24ce5f2e5750a4f84d6dc6196023b02a625fb7eef4

See more details on using hashes here.

File details

Details for the file redis_rs-0.3.0-cp37-none-win_amd64.whl.

File metadata

  • Download URL: redis_rs-0.3.0-cp37-none-win_amd64.whl
  • Upload date:
  • Size: 785.0 kB
  • Tags: CPython 3.7, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/0.14.2

File hashes

Hashes for redis_rs-0.3.0-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 bbd17653b999f3d29b30821738007b00f8149ea44abff8b458a81165826bb146
MD5 8eacfbf27ff4bea7a499f3288a35b89e
BLAKE2b-256 36016b0272e23271bfa38ca0c9f9055b906b2b949c0842a85c2512071855612a

See more details on using hashes here.

File details

Details for the file redis_rs-0.3.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for redis_rs-0.3.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 49b96d680da225586d465098b1e940a981b2bd60fe139da17265fb884a66c490
MD5 04b25cdac324a4b36101fe0d1e32230d
BLAKE2b-256 02604b91564e784922d8c05354feb4c2e3b483f70b394097bf93f1f9f1ab27f2

See more details on using hashes here.

File details

Details for the file redis_rs-0.3.0-cp37-cp37m-macosx_10_9_x86_64.macosx_10_9_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for redis_rs-0.3.0-cp37-cp37m-macosx_10_9_x86_64.macosx_10_9_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 9e51bc6f1b1e9ed69dcb4096f1a3bbb781d0454341a4d442f03da9af1cba9534
MD5 6e2bf31b0b7e30ebceab774e31a09f8e
BLAKE2b-256 b0daec3094765eaedaeeb00209e1f59ee40eacf07c1c4dd42a23c65196bc7171

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page