Skip to main content

Fast, type-safe, custom Namespaces for local Redis

Project description

Firedis

pip install firedis

A faster, type-safe Python client for your local Redis server. Optimized for ultra high frequency, synchronous transactions over a Unix socket, or localhost

130,000+ synchronous transactions per second while serializing/deserializing any Python object in/out of Redis.

import datetime as dt
from firedis import Firedis, Namespace

class MyRedis(Firedis):
    login_times: Namespace[dt.datetime]
    numbers: Namespace[int | float]
    documents: Namespace[dict[str, str]]


r = MyRedis()  # Takes same arguments as `redis.Redis()`

r.login_times.set("Peter", dt.datetime.now())
r.numbers.set('foo', 1)
r.documents.set('bar', {'a': 'A', 'b': 'B'})

Static Type Safety, and direct storage of Python objects

  • ...

Performance

  • ...

Mirrors redis.Redis() API

  • ...

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

firedis-0.1.2.tar.gz (7.3 kB view hashes)

Uploaded Source

Built Distribution

firedis-0.1.2-py2.py3-none-any.whl (8.1 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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