A GraphQL interface for Redis Database.
Project description
GredisQL
A GraphQL interface for Redis Database.
Motivation
- I was bored, been sick for a while, had to lie on the bed. So I needed to create something.
- Redis has Web interface ( actually a REST interface), so I urged to build one in GraphQL.
- There are some pretty amazing GraphQL libraries around python echo system, I wanted to try them.
- Last but not least, jump into quick coding session, engage and nurture the human mind. LOL
Design Philosophy
- All the data
mutation
andquery
are not separated here by action and most probably all the actions are performed viaquery
operation. - Technically
all
the requests sent to the GraphQLserver
was inPOST
, so I was initially okay with the implementation. Strawberry-Graphql
is kind of server agnostic so either you can useASGI
orWSGI
counterpart.- Currently limiting the implementation with
WSGI
server, but I've plan to adoptASGI
in the journey, to supportsubscription
. - Not
all
Redis commands are found in the implementation, I'll try to cover it in the process.
Inspiration and Tools I used
redis==5.0.0
is used to communicate with the Redis database.strawberry-graphql
is used to do the heavy lifting. Also, I triedariadne
which is also another cool tool to try with.
Features and Future Plans
- String Commands.
- List Commands.
- Set Commands.
And many more to come in the future iteration.
Quick Starting the GraphQL Server
if __name__ == "__main__":
from gredisql.core import Server
server = Server()
server.run()
You can specify the host
, port
and debug
mode in while instantiating the GraphQL
server.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gredisql-0.0.8.tar.gz
(4.6 kB
view hashes)