Bang PG
As fast as a bullet
This packeges implements a faster alternative to_sql() method for PostgreSQL that support COPY FROM.
There are two ways to use it:
import bangpg
bangpg.to_sql(df, 'table', engine, if_exists='append', index=False)
import bangpg
df.to_sql('table', engine, if_exists='append', index=False, method=bangpg.psql_insert_copy)
references: https://pandas.pydata.org/docs/user_guide/io.html#io-sql-method
Metadata
Release files for bangpg 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| bangpg-0.1.1.tar.gz | 2.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bangpg-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.4 kB
Release files / bangpg-0.1.1.tar.gz
| Download URL | bangpg-0.1.1.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
97f101fe5573e75b348b08b59e3d0d6b465c346af9054293674bf651c85caa44
|
|
BLAKE2b-256 checksum How to use checksums |
55b1a571d109909b6469cba5cac463261ad0dcb390f18735200e94195bcaf068
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.11.4
|
Release files / bangpg-0.1.1-py3-none-any.whl
| Download URL | bangpg-0.1.1-py3-none-any.whl |
|---|---|
| Size | 2.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c05f86211f2daa8a81efe1e2b621742c56853f66d40a204835eb288aec434cf8
|
|
BLAKE2b-256 checksum How to use checksums |
ed1a945b360f1ec11c23a81547efa6cef4ea0c41384f5873b9227541ebf1299d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.11.4
|