Asynchronous Postgres to Pandas
Project description
Asynchronously read data from Postgres, returned as a Pandas dataframe.
Example
from apgp import Query
q = Query("""SELECT * FROM github.repository""")
q.execute()
# id name full_name description fork \
# 122866357 test_repo2 secretagentjamesbond/test_repo2 None False
# 122866319 test_repo secretagentjamesbond/test_repo None False
# homepage language default_branch created_at owner_id private
# None None master 2018-02-25 19:02:37 36823666 False
# None None master 2018-02-25 19:02:15 36823666 False
q.close()
Performance
Graphic pulled from Asyncpg github page.
Setup
In order to bypass manually connecting you will need a config.yaml in your project root. You can see an an example in the config.yaml.example file.
database: 'dbname'
host: 'host'
port: 5439
user: 'username'
password: 'password'
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
apgp-0.1.tar.gz
(4.4 kB
view details)
Built Distribution
apgp-0.1-py3-none-any.whl
(5.7 kB
view details)
File details
Details for the file apgp-0.1.tar.gz
.
File metadata
- Download URL: apgp-0.1.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f54e7e13388e53a7fdb93b5366d60ce8bd915f709b198f022cbc2c3a7886aac |
|
MD5 | 05230adb607c04637ddaa9538b73c6db |
|
BLAKE2b-256 | d4e638cb2ab254348f44b4c0ef171ea0ca9602d30d783cd4918cbacd71f0e001 |
File details
Details for the file apgp-0.1-py3-none-any.whl
.
File metadata
- Download URL: apgp-0.1-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b08374e48055823d97cfb61ac41f72027e3ad7d87b12f5cc8972fc91437d4c44 |
|
MD5 | 8a50cd173a9ce6af1b5981c18afa1370 |
|
BLAKE2b-256 | fb4d04034e2234497be7682e512cb36632c845a6ca27ba2067bd196b40279a3d |