This packeges implements a faster alternative `to_sql()` method for PostgreSQL that support COPY FROM.
Project description
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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bangpg-0.1.1.tar.gz.
File metadata
- Download URL: bangpg-0.1.1.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97f101fe5573e75b348b08b59e3d0d6b465c346af9054293674bf651c85caa44
|
|
| MD5 |
07c1aa3ce1c62caab2f4a62605e2b88f
|
|
| BLAKE2b-256 |
55b1a571d109909b6469cba5cac463261ad0dcb390f18735200e94195bcaf068
|
File details
Details for the file bangpg-0.1.1-py3-none-any.whl.
File metadata
- Download URL: bangpg-0.1.1-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c05f86211f2daa8a81efe1e2b621742c56853f66d40a204835eb288aec434cf8
|
|
| MD5 |
4d27d6ed0e14ee98cb7bdb4a88de4e28
|
|
| BLAKE2b-256 |
ed1a945b360f1ec11c23a81547efa6cef4ea0c41384f5873b9227541ebf1299d
|