[](https://circleci.com/gh/SamuraiT/pandas-rs)
# pandas-rs
pandas-rs is oirginally designed for RedShift but
also works for PostgreSQL. Inspired by [pandas-td](https://github.com/treasure-data/pandas-td)
I may should have made the package name as pandas-pg, since It also works for
PostgreSQL.
# requirement
To connect PostgreSQL and RedShift, you have to have the PostgreSQL client.
### Mac
~~~
brew update
brew install postgresql
~~~
# installation
~~~
pip install pandas-rs
~~~
# Usage
As I mentioned, above pandas-rs works for PostgreSQL as well.
First export password via shell(recommended)
~~~shell
export REDSHIFT_OR_POSTGRESQL_PASSWORD='password'
~~~
~~~py
import pandas_rs as rs
import os # use only if you will access password through environment variables
rs.create_engine(
dbname='dev',
user='test',
password=os.environ['REDSHIFT_OR_POSTGRESQL_PASSWORD'],
host='foobar.redshift.exmple',
port='5439'
)
print(rs.read_sql("""select 'hello PostgreSQL or redshift' greeting"""))
~~~
result
~~~py
greeting
0 hello PostgreSQL or redshift
~~~
# pandas-rs
pandas-rs is oirginally designed for RedShift but
also works for PostgreSQL. Inspired by [pandas-td](https://github.com/treasure-data/pandas-td)
I may should have made the package name as pandas-pg, since It also works for
PostgreSQL.
# requirement
To connect PostgreSQL and RedShift, you have to have the PostgreSQL client.
### Mac
~~~
brew update
brew install postgresql
~~~
# installation
~~~
pip install pandas-rs
~~~
# Usage
As I mentioned, above pandas-rs works for PostgreSQL as well.
First export password via shell(recommended)
~~~shell
export REDSHIFT_OR_POSTGRESQL_PASSWORD='password'
~~~
~~~py
import pandas_rs as rs
import os # use only if you will access password through environment variables
rs.create_engine(
dbname='dev',
user='test',
password=os.environ['REDSHIFT_OR_POSTGRESQL_PASSWORD'],
host='foobar.redshift.exmple',
port='5439'
)
print(rs.read_sql("""select 'hello PostgreSQL or redshift' greeting"""))
~~~
result
~~~py
greeting
0 hello PostgreSQL or redshift
~~~
Metadata
Release files for pandas-rs 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pandas-rs-0.1.6.tar.gz | 2.8 kB | Without provenance | Details |
Release files / pandas-rs-0.1.6.tar.gz
| Download URL | pandas-rs-0.1.6.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1a7a451a364180d742909221fa91ae6f321f1226b2ddda43b9e3dfcaef380155
|
|
BLAKE2b-256 checksum How to use checksums |
235b4dd40415bafe3c786457e8c56f70ea2bf7f5dc466fb0cfcfecee19f0c3af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pandas-rs 0.1.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.