Unofficial Python driver library for the RethinkDB database server with Pandas
Project description
rethinkdb-pandas
RethinkDB Python Driver with Pandas
🛠️ Install
- from pip
pip install rethinkdb-pandas
- from git
pip install git+https://github.com/somehitDev/rethinkdb-pandas.git
📄 Usage
- import same as
rethinkdb python driver
from rethinkdb_pandas import r
- connect to server same as
rethink python driver
r.connect("{host}", {port}, **kwargs)
- use same as
rethinkdb python driver
- but, sql result return as
pd.DataFrame
- and pass
pd.DataFrame
intoinsert
function
- but, sql result return as
r.table("posts").insert(
pd.read_json("https://jsonplaceholder.typicode.com/posts")
).run(con)
df_posts = r.table("posts").run(con)
print(df_posts.head())
""" print like below
userId id title body
0 1 1 sunt aut facere repellat provident occaecati e... quia et suscipit\nsuscipit recusandae consequu...
1 1 2 qui est esse est rerum tempore vitae\nsequi sint nihil repr...
2 1 3 ea molestias quasi exercitationem repellat qui... et iusto sed quo iure\nvoluptatem occaecati om...
3 1 4 eum et est occaecati ullam et saepe reiciendis voluptatem adipisci\...
4 1 5 nesciunt quas odio repudiandae veniam quaerat sunt sed\nalias aut...
"""
⚠️ for detail information, see rethinkdb python driver
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
Built Distribution
File details
Details for the file rethinkdb_pandas-0.0.1.tar.gz
.
File metadata
- Download URL: rethinkdb_pandas-0.0.1.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb87bf4137ae4ab40a1506f789118448835cf146e8ef4244e7647d9b94c58128 |
|
MD5 | fb10bae627dcfe6d65b94aee683e8d9e |
|
BLAKE2b-256 | 0c55cb174fa3207df5dc490c8d697493881f3dd72d435cb2c94db183bdb18f62 |
File details
Details for the file rethinkdb_pandas-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: rethinkdb_pandas-0.0.1-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a763f0388fbc915ce80db50903a2d502b050b2f4d484c834cf2804be3d26ac1 |
|
MD5 | 69227f06d4c81ee869dfd9e98c2bd94c |
|
BLAKE2b-256 | fe48131a960fa69ac4d38970efd44300714e41c9d76069ae366a57204a66081b |