Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/guyskk/curethinkdb
Curio + RethinkDB: Async RethinkDB driver
https://github.com/guyskk/curethinkdb
async curio python rethinkdb rethinkdb-driver
Last synced: 29 days ago
JSON representation
Curio + RethinkDB: Async RethinkDB driver
- Host: GitHub
- URL: https://github.com/guyskk/curethinkdb
- Owner: guyskk
- License: mit
- Created: 2017-12-25T14:04:21.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-26T20:35:32.000Z (almost 2 years ago)
- Last Synced: 2024-09-30T09:15:48.654Z (about 1 month ago)
- Topics: async, curio, python, rethinkdb, rethinkdb-driver
- Language: Python
- Size: 9.77 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Curio + RethinkDB: Async RethinkDB driver
> Work In Progress, Not Production Ready!
## Overview
```python
from curio import run
from curethinkdb import r, set_loop_type_curioasync def main():
conn = await r.connect('127.0.0.1', 28015)
ret = await r.db("test").table_list().run(conn)
print(ret)set_loop_type_curio()
run(main)
```## Install
```
pip install curethinkdb
```## Document
### connect, run
Just call them as coroutine `await xxx()`.
### reql
Not Support.
### ConnectionPool
```python
from curio import run
from curethinkdb import ConnectionPool, r, set_loop_type_curioasync def main():
pool = ConnectionPool(host='127.0.0.1', port=28015)
conn = await pool.get()
ret = await r.db("test").table_list().run(conn)
print(ret)
await pool.put(conn)set_loop_type_curio()
run(main)
```## Need Help? Contributing?
- Open issues for any Questions/Bugs/Features
- Pull Requests are welcome