Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bangpg-0.1.1.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

bangpg-0.1.1-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

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

Hashes for bangpg-0.1.1.tar.gz
Algorithm Hash digest
SHA256 97f101fe5573e75b348b08b59e3d0d6b465c346af9054293674bf651c85caa44
MD5 07c1aa3ce1c62caab2f4a62605e2b88f
BLAKE2b-256 55b1a571d109909b6469cba5cac463261ad0dcb390f18735200e94195bcaf068

See more details on using hashes here.

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

Hashes for bangpg-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c05f86211f2daa8a81efe1e2b621742c56853f66d40a204835eb288aec434cf8
MD5 4d27d6ed0e14ee98cb7bdb4a88de4e28
BLAKE2b-256 ed1a945b360f1ec11c23a81547efa6cef4ea0c41384f5873b9227541ebf1299d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page