Skip to content

Implement/test LOLWUT command #1448

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 60 commits into from
Closed

Implement/test LOLWUT command #1448

wants to merge 60 commits into from

Conversation

brainix
Copy link
Contributor

@brainix brainix commented Jan 27, 2021

Pull Request check-list

  • Does $ tox pass with this change (including linting)?
  • Does travis tests pass with this change (enable it first in your forked repo and wait for the travis build to finish)?
  • Is the new or changed code fully tested?
  • Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?

Description of change

Implement/test LOLWUT command

This is a lot of fun to play with:

>>> from redis import Redis
>>> redis = Redis()
>>> print(redis.lolwut(5, 6, 7, 8).decode('utf-8'))
⣴⣶⣶⣶⣶⡆
⣿⣿⣿⣿⣿⡇
⠹⡿⠟⣿⡿⠃
⠀⠀⠀⠀⠀⠀
Georg Nees - schotter, plotter on paper, 1968. Redis ver. 6.0.10

>>> print(redis.lolwut(5, 6, 7, 8).decode('utf-8'))
⢰⣶⣶⣶⣶⡆
⢿⣿⣿⣿⣿⠁
⠸⡿⢿⠿⡿⠃
⠀⠀⠀⠀⠀⠀
Georg Nees - schotter, plotter on paper, 1968. Redis ver. 6.0.10

>>> print(redis.lolwut(5, 6, 7, 8).decode('utf-8'))
⢰⣶⣶⣶⣶⡆
⣸⣿⣿⣻⣿⡅
⠿⡿⠻⠿⠿⠁
⠀⠀⠀⠀⠀⠀
Georg Nees - schotter, plotter on paper, 1968. Redis ver. 6.0.10

>>>

@brainix brainix marked this pull request as draft January 27, 2021 09:43
https://redis.io/commands/lolwut

This is a lot of fun to play with:

```python
>>> from redis import Redis
>>> redis = Redis()
>>> print(redis.lolwut(5, 6, 7, 8).decode('utf-8'))
⣴⣶⣶⣶⣶⡆
⣿⣿⣿⣿⣿⡇
⠹⡿⠟⣿⡿⠃
⠀⠀⠀⠀⠀⠀
Georg Nees - schotter, plotter on paper, 1968. Redis ver. 6.0.10

>>> print(redis.lolwut(5, 6, 7, 8).decode('utf-8'))
⢰⣶⣶⣶⣶⡆
⢿⣿⣿⣿⣿⠁
⠸⡿⢿⠿⡿⠃
⠀⠀⠀⠀⠀⠀
Georg Nees - schotter, plotter on paper, 1968. Redis ver. 6.0.10

>>> print(redis.lolwut(5, 6, 7, 8).decode('utf-8'))
⢰⣶⣶⣶⣶⡆
⣸⣿⣿⣻⣿⡅
⠿⡿⠻⠿⠿⠁
⠀⠀⠀⠀⠀⠀
Georg Nees - schotter, plotter on paper, 1968. Redis ver. 6.0.10

>>>
```
@jiekun
Copy link
Contributor

jiekun commented Jan 28, 2021

LOL, this one is interesting. Might be not useful in real project tho.
Thanks :P

@brainix brainix marked this pull request as ready for review February 2, 2021 00:57
@brainix
Copy link
Contributor Author

brainix commented Feb 2, 2021

@andymccurdy - I'm not sure if a documentation update is warranted for this change. What do you think?

If you'd like for this to be documented, where should I document it? Any tips?

Thanks!

alxasfuck and others added 24 commits May 12, 2021 15:15
command is always a list. If index 3 is not a list, assume Redis Enterprise and return index 4 instead
Co-authored-by: Andy McCurdy <andy@andymccurdy.com>
* getex

* flake8 fix

* comments
* hrandfield

* use mapping in hset

* skip if version not fit

* remove empty line

* flake8 comments

* new line for each comment
Co-authored-by: malinaa96 <52569986+malinaa96@users.noreply.github.com>
Co-authored-by: Avital Fine <79420960+AvitalFineRedis@users.noreply.github.com>
* zinter

* change options in _zaggregate

* skip for previous versions

* flake8

* validate the aggregate value

* invalid aggregation

* invalid aggregation

* change options to get

Co-authored-by: Chayim <chayim@users.noreply.github.com>
* exclusive gt and lt in zadd

* docs update
tirkarthi and others added 20 commits August 29, 2021 11:19
* Merged new sentinel commands from redis#835

Thanks you @otherpirate for the contribution!

* Added an execute wrapper and tests.

The tests ensure that the function is called. Nothing more since we do not currently have enough testing support for sentinel
* redis#1434 Added zmscore command support

* redis#1434 Fixed typo and doc

* redis#1434 Set [] as default value for members arg in zmscore func

* redis#1434 Set None as default value for members arg in zmscore func

* redis#1434 Removed default value for members arg in zmscore func

* Fixed flake8 formatting

Co-authored-by: jiekun.zhu <jiekun.zhu@shopee.com>
* add support to STRALDO command

* add tests

* skip if version ..

* new line

* lower case

* fix comments

* callback

* change to get
* Return slowlog complexity info if available

based on redis#622

* Add tests
Copied from redis#622

* address flake E306

* Trigger Build
* GEOSEARCH and GEOSEARCHSTORE

* negative test

* change georadius_generic to geosearch_generic

* add documentations to the functions

* add docstring to the parser

* farest
* CLIENT LIST fix to allow multiple client_ids

Support for CLIENT KILL with the USER filter

Part of redis#1546

* test fix
@brainix
Copy link
Contributor Author

brainix commented Sep 2, 2021

@chayim - Is there any way that I could get this PR merged? Thanks!

@chayim
Copy link
Contributor

chayim commented Sep 2, 2021

Can you merge master in and resolve conflicts. Once it passes all tests, I'd be happy to.

https://redis.io/commands/lolwut

This is a lot of fun to play with:

```python
>>> from redis import Redis
>>> redis = Redis()
>>> print(redis.lolwut(5, 6, 7, 8).decode('utf-8'))
⣴⣶⣶⣶⣶⡆
⣿⣿⣿⣿⣿⡇
⠹⡿⠟⣿⡿⠃
⠀⠀⠀⠀⠀⠀
Georg Nees - schotter, plotter on paper, 1968. Redis ver. 6.0.10

>>> print(redis.lolwut(5, 6, 7, 8).decode('utf-8'))
⢰⣶⣶⣶⣶⡆
⢿⣿⣿⣿⣿⠁
⠸⡿⢿⠿⡿⠃
⠀⠀⠀⠀⠀⠀
Georg Nees - schotter, plotter on paper, 1968. Redis ver. 6.0.10

>>> print(redis.lolwut(5, 6, 7, 8).decode('utf-8'))
⢰⣶⣶⣶⣶⡆
⣸⣿⣿⣻⣿⡅
⠿⡿⠻⠿⠿⠁
⠀⠀⠀⠀⠀⠀
Georg Nees - schotter, plotter on paper, 1968. Redis ver. 6.0.10

>>>
```
@brainix
Copy link
Contributor Author

brainix commented Sep 2, 2021

I made a mess out of this branch. Recreating...

@brainix brainix closed this Sep 2, 2021
@brainix brainix deleted the lolwut branch September 2, 2021 06:24
@brainix brainix mentioned this pull request Sep 2, 2021
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.