Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/redis/redis-py

Redis Python client
https://github.com/redis/redis-py

Merge branch 'master' of github.com:andymccurdy/redis-py

9097ca4ae3ec0f99ea4a96392b4126d883066046 authored over 14 years ago by Andy McCurdy <[email protected]>
functions that return sets should now work against older Redis server versions that returned None rather than an empty list.

cab038053cd8f0e445287120dd2c68bb5179b1e4 authored over 14 years ago by Andy McCurdy <[email protected]>
Yet some more adjustments to the README

2abb7c1ae28f543cd8d5354c12a681c149838498 authored over 14 years ago by Antonio Ognio <[email protected]>
Some other minor adjustments to the README

41a126b3d55da262a5b37b14010bba437bc97280 authored over 14 years ago by Antonio Ognio <[email protected]>
Some more adjustments to the README

6ef7dfd5323c4f416ed69fce90c8df715d3e12f3 authored over 14 years ago by Antonio Ognio <[email protected]>
Adding command reference and some other sections to the README

8379f18d05fb6e79ad2f5d7412dc95ebdbd01ea0 authored over 14 years ago by Antonio Ognio <[email protected]>
New command: zcount

a12eb8c6d0d729852cafc1be17a6b22e9107946c authored over 14 years ago by Konstantin Merenkov <[email protected]>
version bump

37321e9abf8c01486d9a26e0687177c4f3cf1958 authored over 14 years ago by Andy McCurdy <[email protected]>
Small change to pubsub, hopefully fixing #49, or at least making it a little more sane

ea8769b10fa0db70ddf3ea97ee6f682174cbe6ca authored over 14 years ago by Andy McCurdy <[email protected]>
changed return type of listen() -- it's now a dictionary with the following keys: type -- the message type, data -- the actual message, channel -- the channel the message was delivered on. if the message was triggered due to a pattern matched from psubscribe, then a 4th key will be present: pattern, indicating the pattern that was matched.

fb0a249f4a39268e089825a15184d3d1b7ddac62 authored over 14 years ago by Andy McCurdy <[email protected]>
add psubscribe and punsubscribe to subscription commands

91441933d3333528f2749a888e2c5db6106493fc authored over 14 years ago by twidi <[email protected]>
added context manager support to the Lock object so you can do "with redis.lock('lockname'): ..."

allow "sleep" to be specified as an argument to the lock
moved the timeout parameter to Lock's __...

2c2fc553d1cdb0db6fbc5fdc8bd7e8a36b821df7 authored over 14 years ago by Andy McCurdy <[email protected]>
configurable sleep duration

90668b6e104f6c41babb4d64143ade4d81a47263 authored over 14 years ago by Andy McCurdy <[email protected]>
added a Lock class that mimics the behavior of threading.Lock.

convenience function on the redis client to instantiate a new Lock object.

41840883f673171e05df352eadeac41b28e10ba7 authored over 14 years ago by Andy McCurdy <[email protected]>
added ZREMRANGEBYRANK command

a4cd6bf21bd5ee5cb194c6f4e96bb4b2e93a5ceb authored over 14 years ago by Andy McCurdy <[email protected]>
BLPOP / BRPOP return tuple instead of a list, as it makes more sense

b686c967e71e3b406f2af4f36744a5258ceca8bb authored over 14 years ago by Konstantin Merenkov <[email protected]>
blpop / brpop can accept string as key

7e8ec2e28d636fb878617f1d0788973aaffd309c authored over 14 years ago by Konstantin Merenkov <[email protected]>
added test runner

9f360d566960de71eb8608fa9ce83777482a9dc9 authored over 14 years ago by sebleier <[email protected]>
Added HSETNX command and tests

9f0ed62fbc1e648207478c24342512acb3ea01aa authored over 14 years ago by sebleier <[email protected]>
renamed zinter/zunion to zinterstore/zunionstore to stay consistent with Redis.

dd8421273d4b17adfda56e8b753bdf92d4d43fb5 authored over 14 years ago by Andy McCurdy <[email protected]>
Renamed ZINTER/ZUNION to ZINTERSTORE/ZUNIONSTORE

ab623e03ca84d22313af06744a1f887ed436b9f0 authored over 14 years ago by Konstantin Merenkov <[email protected]>
added missing EXPIREAT and SETEX commands

added a few missing tests

2b07bd7ad65d4fdee11e1a3dba65180dd920cf75 authored over 14 years ago by Andy McCurdy <[email protected]>
Fixed test_hincrby

* Catch exception RedisError on attempt to increment value "a3".
Redis gives "-ERR Operation...

09e2be4054debe073a4f351d3543d7fc48652833 authored over 14 years ago by Konstantin Merenkov <[email protected]>
values with scores of 0 were previously failing due to the way the callback converted values. changed to a separate function to get proper handling. fixes #33

b936a60a02a5c9f1fafe301c952a8aa044ec6536 authored over 14 years ago by Andy McCurdy <[email protected]>
added support for zinter and zunion

f4c8393113e2205eb8eeddeed10d42ad70d648ef authored over 14 years ago by Andy McCurdy <[email protected]>
added pubsub tests

fixed a typo in hmset from the previous commit

60063e8ef022ea500788a572d7b3c07080557c54 authored over 14 years ago by Andy McCurdy <[email protected]>
docs and param name consistency cleanup

c3d531e9d279d0d3532267b1d1887ac8e68f5a43 authored over 14 years ago by Andy McCurdy <[email protected]>
added support for APPEND and SUBSTR commands

7aef2c8202746b5966526dcfdd9f531dcf9096d8 authored over 14 years ago by Andy McCurdy <[email protected]>
Always return a set object from set-based commands. Thanks Adam Charnock for the bug report.

18f2a0253e7a9b87d84d2f7767b2d7f85f39f11f authored over 14 years ago by Andy McCurdy <[email protected]>
HGETALL returns empty dict instead of None when there's no key in redis

80c248c615db260362a4bc046d531dfaabd114dc authored over 14 years ago by Konstantin Merenkov <[email protected]>
HMGET + tests

8b58178a946d7a846f4ff8f4b5d75243554bf8ec authored over 14 years ago by Konstantin Merenkov <[email protected]>
Updated tests to work with redis logic that [] means there's no key

40a8ff22e39009e5cc98538ab4ff781e31511d31 authored over 14 years ago by Konstantin Merenkov <[email protected]>
HMSET support

edcb36a33d59fb5575bac0996152013b726d61c8 authored over 14 years ago by Konstantin Merenkov <[email protected]>
[issue 29] Redis instance doesn't use shared connection pool by default

* Redis constructor accepts connection_pool keyword argument,
that defaults to None (no shar...

4dec96f235d3d1ef9fd1eb8a1549b75caae36c59 authored over 14 years ago by Konstantin Merenkov <[email protected]>
[cosmetic] stupid 80 characters

4efa5de487363b7c1d86b0a6a6719dee7fe507b4 authored almost 15 years ago by Andy McCurdy <[email protected]>
Handling that socket.error's args is either (errno, "msg") or "msg"

6268781d94d27e86403108c96cf7d687b34f2a7b authored almost 15 years ago by Konstantin Merenkov <[email protected]>
added support for BGREWRITEAOF

52e38277b60cc41d3aea2d018ca0aba0693930a5 authored almost 15 years ago by Andy McCurdy <[email protected]>
Pipeines can not optionally be transactions (wrapped in MULTI/EXEC) or not by passing the transaction parameter. This fixes #23.

74d4666a4190541ee11da3ec629a60b9b1ce6d9d authored almost 15 years ago by Andy McCurdy <[email protected]>
Not consuming responses for subscribe commands.

b33a6fc9351e19fb058eb5302d1f185ec50c75c6 authored almost 15 years ago by Konstantin Merenkov <[email protected]>
[cosmetic] a bit of formating + fixed a typo

7b1f19686cfbd451348f836abfaeae39ca1932ec authored almost 15 years ago by Konstantin Merenkov <[email protected]>
[cosmetic] removed a nearly-dupe comment from _execute_command

ca2759c1642ef420528156b3bf302c0c051c500f authored almost 15 years ago by Konstantin Merenkov <[email protected]>
Move towards binary-safeness of keys and values.

* Dropped support of all protocols except multi-bulk
the only protocol that yet to be releas...

9a4ee548b8066214fec0cbbb40fcd9812c3d17c7 authored almost 15 years ago by Konstantin Merenkov <[email protected]>
[cosmetic] whitespaces cleanup

e2772738e249ea47e5424627eca28f8689ab1dd8 authored almost 15 years ago by Konstantin Merenkov <[email protected]>
New test that proves that self.subscribed in Pipeline is necessary

f035d4df08ddf3a1ff3c392f91a08ff2d1014877 authored almost 15 years ago by Konstantin Merenkov <[email protected]>
Prevent crash when using pipelines (added self.subscribed to __init__)

4b709863dae0f0f7bf53d3a02aa08050c0d5bc31 authored almost 15 years ago by Konstantin Merenkov <[email protected]>
Yield tuple (type, channel, message) from listen() instead of dictionary

83479eec9381c4a65518f927acd09385be29b70a authored almost 15 years ago by Konstantin Merenkov <[email protected]>
added support for subscribe, unsubscribe, publish. tests incoming. pattern is:

redis.subscribe('my_channel')
for msg in redis.listen():
channel, data = msg['channel'], msg...

b58a08b955ea87f72b76a0cc9d8155110f24cb8e authored almost 15 years ago by Andy McCurdy <[email protected]>
* fix for #21, make only the "db" argument of select() required. If host and port aren't specified, the host/port options on the existing connection are used.

* added HINCRBY support

c148ede374784c9220ebc992676667254c443e75 authored almost 15 years ago by Andy McCurdy <[email protected]>
HEXISTS and HLEN implementations

added a socket_timeout parameter to allow commands to timeout and raise an error

97ed01d9ac6fe39a53dd9414085f5aa0e44f6041 authored almost 15 years ago by Andy McCurdy <[email protected]>
fix for #18 -- i had copy/pasted some code from another function and forgot to actually change it! thanks to Sam (SJD) for the bug report

5723a5468c4c168e798cecd72d21922f9c53d2e8 authored almost 15 years ago by Andy McCurdy <[email protected]>
HKEYS HVALS and HGETALL implemented

dbaef302fb95da2f4d30e5449891fc72eb0942d7 authored almost 15 years ago by Andy McCurdy <[email protected]>
HDEL implemented

d240e77d58c2cf686bef925cab93b5970129aeb7 authored almost 15 years ago by Andy McCurdy <[email protected]>
added ZRANK and ZREVRANK commands.

9ada0de4a3fc25cbba246d63eea674fcce814a54 authored almost 15 years ago by Andy McCurdy <[email protected]>
no reason to join the names here -- just let the format_inline do it, that way we get the benefit of encoding, too!

a33431a07c2798b7b1c96e13f8d93582eb309f58 authored almost 15 years ago by Andy McCurdy <[email protected]>
Fixed a bug with pipeline execution of AUTH and SELECT commands. These failed after MULTI and EXEC were added, since you can't run MULTI until you've auth'd, and it doesn't make sense to run SELECT within a multi/exec.

Thanks Pat Shields for the bug report

ad388393f7e3967ff1a69001308cdbcf98306127 authored almost 15 years ago by Andy McCurdy <[email protected]>
Flushed out the connection manager object a bit more.

56f0ffb88b716287606e08f8ffd77e5f586a9b44 authored almost 15 years ago by Andy McCurdy <[email protected]>
fixed #15 where zscore previously failed for members of a sorted set that didn't exist.

also made anal cleanup changes removing whitespace before colons!

ab3061a64cc9ec1cc0ff135005ee478038077434 authored almost 15 years ago by Andy McCurdy <[email protected]>
all commands being executed in a pipeline are now executing with a single socket send call. this should increase network throughput

7915ef869392808e7a8828dcf768c2b7256d219d authored almost 15 years ago by Andy McCurdy <[email protected]>
Pipeline objects are now executed atomically via the MULTI and EXEC commands

bd411f99f890d918b192156e882be743e6fbf545 authored almost 15 years ago by Andy McCurdy <[email protected]>
HSET now returns 1 if it added a new field to the hash, otherwise 0.

There was no test for RPUSH, now there is :)

708c458adb8d90a00041977df4880d28a11e2cb9 authored almost 15 years ago by Andy McCurdy <[email protected]>
HSET now always returned True, which also fixed part of the test

263581708f5397804e2d42fc50b4c4b9f717f224 authored almost 15 years ago by Andy McCurdy <[email protected]>
added HGET/HSET commands

removed the KEYS callback -- 1.34 Redis servers now return KEYS with the multi-bulk protocol, whi...

9e3e1aa43456202e86e241955f3ae7f5220f5d58 authored almost 15 years ago by Andy McCurdy <[email protected]>
the Redis class is now a thread local. This means you can safely pass it around between threads and connections will get swapped out correctly.

c83542e58593fd0ce6347f399b65763abfebcccb authored almost 15 years ago by Andy McCurdy <[email protected]>
Merge remote branch 'tabo/master'

800720c7bd07c31511239df27d512e98d757e945 authored almost 15 years ago by Andy McCurdy <[email protected]>
Merge branch 'master' of github.com:andymccurdy/redis-py

084d1d6f3342d4cbeeb1dd2a5f0da462628fb006 authored almost 15 years ago by Andy McCurdy <[email protected]>
complete analness about the :

6243255706026fa0f5ac221bcccb361a48ad03cb authored almost 15 years ago by Andy McCurdy <[email protected]>
adding support for the new lpush/rpush returning the list length

c3b3c1bc93849b4c3fc23dc7105984411b20c4d8 authored almost 15 years ago by Gustavo Picon <[email protected]>
docstring typos

a2bfd2f0f83c1129910348111fe856f677401a08 authored almost 15 years ago by Zak Johnson <[email protected]>
Add Redis.__contains__ to support "'key' in redis"

361cea3444f8661ee0f08074a1dbc5c484eb2326 authored almost 15 years ago by Zak Johnson <[email protected]>
Add ignores for build outputs.

c1e762849f52c2ec1f66bf0a7c1ce4d9a1ee7153 authored almost 15 years ago by Adam Vandenberg <[email protected]>
fixed a comment

735c5de828cdcd0f6c6018bac9b262fd7e2c5a38 authored almost 15 years ago by andymccurdy <[email protected]>
incremented revision

4496486b92f6a0eeceae6980d8083a4436ba2d4c authored almost 15 years ago by andymccurdy <[email protected]>
zrange/zrevrange/zrangebyscore should always return None if the key is insvalid, even if withscores=True is passed

5f59153a94ed77157747feb2214b82515bf4ca04 authored almost 15 years ago by andymccurdy <[email protected]>
should have beest testing lpop, not pop, which is deprecated

88cf4942c78ea1a08bdcffb4f902a682efd7b7f7 authored almost 15 years ago by andymccurdy <[email protected]>
removal of the legacy client

332b29ba78647578c606bb0b6e5c609cf1d70eba authored almost 15 years ago by andymccurdy <[email protected]>
Merge branch 'newapi'

411e41eac54d692893c36304a9f68fe0d10411e9 authored almost 15 years ago by andymccurdy <[email protected]>
key lists passed to blpop and brpop are not unmodified. thanks to Patrick Shields for finding this bug

dc98e7228c3957d4b7e440f0064a5e97aab33347 authored almost 15 years ago by andymccurdy <[email protected]>
package the updated README.md

68bd8479c693eed63a1e220239f9ef02a5815334 authored almost 15 years ago by andymccurdy <[email protected]>
rename to get nice highlighing on github ;)

a1b3c0ef7275c46ae0b6e136b2d4b5e8aa5888f1 authored almost 15 years ago by andymccurdy <[email protected]>
readme sample usage

ec9d72cc20e81f79f2c5922d867bd008d59cdf21 authored almost 15 years ago by andymccurdy <[email protected]>
removing the decode() hook from earlier. it's really more effective to serialize/deserialize the data at a higher level.

18f0e28764b98837d063a5f4acaec184afe123ee authored almost 15 years ago by andymccurdy <[email protected]>
Redis.pop() is deprecated like Redis.push().

Added a number of tests for the SORT command

223acf1fdcdca8bc6551919ca39c2fbeb089bd75 authored almost 15 years ago by andymccurdy <[email protected]>
fixed a pipeline bug where a connection that had timed out and needed to re-auth or re-select the appropriate database would end up adding the auth/select command to the end of the pipeline rather than executing immediately.

5ce4a90fe42d20e180a9c28ddfa41dd09cf77aa4 authored almost 15 years ago by andymccurdy <[email protected]>
added accessors for host/port/db information off the current connection

6d3269b19a5929398c3d1b2faad6a3fb372733a5 authored almost 15 years ago by andymccurdy <[email protected]>
- added ability for subclasses of Redis to provide their own decode logic if desired.

- setup.py needed to specify the package rather than py_module in order for build to work correctly.

62fd846e4a6bf540400447e9be62982c22f412d8 authored almost 15 years ago by andymccurdy <[email protected]>
- connection objects now store authentication credentials so that reconnect works as expected.

- Connection.connect now calls back into the redis instance class to send the auth and select com...

3b05b78c0af9ed92131e797d666f0a1e9d20ff92 authored almost 15 years ago by andymccurdy <[email protected]>
added the License file

175c16108459444332c5937245e2567564970f67 authored almost 15 years ago by andymccurdy <[email protected]>
Changelog updated, version incremented

12570a3dcd6d4f3b335f843c42e58399bfe5959b authored almost 15 years ago by andymccurdy <[email protected]>
TODO note to document changes changes... lots of changes...

62aeb4d598d95a0d1ea12ed264e2acbebebfc061 authored almost 15 years ago by andymccurdy <[email protected]>
TODO: changelog

0b84ecefac7855917077d6c340d6ec09d66565d5 authored almost 15 years ago by andymccurdy <[email protected]>
new client passes all command tests, still need tests for connection pool and pipelining.

61c106e5fe5b9ab0380b29f60e245d4a318a2a06 authored almost 15 years ago by andymccurdy <[email protected]>
added withscores option to zrange

cb6b4f4b9b715f48a7c8cdb8b63b923795396e56 authored almost 15 years ago by andymccurdy <[email protected]>
Merge branch 'master' into newapi

33521a7d6cca8447fd885a61ffd812f634cf222c authored almost 15 years ago by andy <[email protected]>
Added offset/count optional parameters to zrangebyscore. Thanks Adam Charnock!

a9bff80ec2d04f70c1e2bed50b70b0168ef8f8c8 authored almost 15 years ago by andy <[email protected]>
Merge remote branch 'adamcharnock/master'

Conflicts:
redis.py

688ecada1e112bfa59bcdf829c5c23cdbf61c08b authored almost 15 years ago by andy <[email protected]>
added offset & count parameters to zrangebyscore()

30980d331dbf28af4c01c526ed7fd440171dc574 authored almost 15 years ago by Adam Charnock <[email protected]>
helps to actually include the new file

9e7b4e6a0e590e056463919c572840c2c39b111d authored almost 15 years ago by andy <[email protected]>
moved exceptions to their own module

54928a955ed656479fa5c9f71b330d300c756108 authored almost 15 years ago by andy <[email protected]>
- redis is now in it's own module. existing client imported and added to __all__ providing backards compat.

- tests can now be run by running the tests.py file

53b15d2f25e77c8dcc11caa8fde18b8ed2cac1b1 authored almost 15 years ago by andy <[email protected]>
delete now supports multiple keys to delete at once

9b7d86233e7b3cff1d240448a4beb6ce8c35894a authored about 15 years ago by andy <[email protected]>