Skip to main content

minimal redis client written in cython, 5X faster than redis-py.

Tutorial

execute command

>>> from credis import Connection
>>> conn = Connection(host='127.0.0.1', port=6379)
>>> conn.execute('set', 'test', 1)
'OK'
>>> conn.execute('get', 'test')
'1'

execute pipelined commands

>>> commands = [('set', 'test%d'%i, i) for i in range(3)]
>>> conn.execute_pipeline(*commands)
('OK', 'OK', 'OK')

connection pool for gevent

>>> from credis.geventpool import ResourcePool
>>> pool = ResourcePool(32, Connection, host='127.0.0.1', port=6379)
>>> with pool.ctx() as conn:
...     conn.execute('get', 'test')
'1'
>>> pool.execute('get', 'test')
'1'
>>> commands = [('get', 'test%d'%i) for i in range(3)]
>>> pool.execute_pipeline(*commands)
('1', '2', '3')

Metadata

Release files for credis 2.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for credis 2.0.2
File Size Uploaded Provenance
credis-2.0.2.tar.gz 6.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for credis 2.0.2
File Interpreter ABI Platform
credis-2.0.2-cp310-cp310-macosx_13_0_x86_64.whl CPython 3.10 CPython 3.10 macOS 13.0+ x86-64 Details

Total release size: 279.4 kB

Release files / credis-2.0.2.tar.gz

Download URL credis-2.0.2.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b0738f08da452edd3667884c4e6ddcb5f6f988e87cbe6fdaca0308dce842f690
BLAKE2b-256 checksum
How to use checksums
9e118a08c4f9f8811f0c0f15a9b55d94633bf6a96df2c8849a2e0dd65c4c785d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.10.11 Darwin/22.6.0

Release files / credis-2.0.2-cp310-cp310-macosx_13_0_x86_64.whl

Download URL credis-2.0.2-cp310-cp310-macosx_13_0_x86_64.whl
Size 273.5 kB
Tags CPython 3.10 macOS 13.0+ x86-64
SHA-256 checksum
How to use checksums
3f7c01beeed9499e3d3d8f70a3bcc974ac2997e530af109cd17473d9030b7d57
BLAKE2b-256 checksum
How to use checksums
c451dac09a0b072d7e76cbbf95d538bbaf9525bf869acec8e608593dd5a6cc87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.10.11 Darwin/22.6.0

Security for credis 2.0.2

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page