Skip to main content

Adaptive read-only chunked SQL reader for large replicas

Project description

sql-chunker

Adaptive read-only chunked SQL reader. Drop-in for pd.read_sql.

from sql_chunker import ChunkedReader
_reader = ChunkedReader(get_pg_engine())
df = _reader.read_sql(sql)

Inside: read-only, statement_timeout=15s, adaptive chunk sizing (~8s/chunk), shrink-and-retry on timeout, safe direct fallback.

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

sql_chunker-1.1.0.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sql_chunker-1.1.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file sql_chunker-1.1.0.tar.gz.

File metadata

  • Download URL: sql_chunker-1.1.0.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sql_chunker-1.1.0.tar.gz
Algorithm Hash digest
SHA256 856295f630b012ab81a188ae1fc44b06191e06d86e2ba3c20248caeb5bdc5783
MD5 892c545865ca12d6173ec5575f8ee642
BLAKE2b-256 64c6f4eecd2f29c52459fcd47969d1fed502a6ac3d5c27b747d453b3237d88cc

See more details on using hashes here.

Provenance

The following attestation bundles were made for sql_chunker-1.1.0.tar.gz:

Publisher: publish.yml on makarsuperstar/sql-chunker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sql_chunker-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: sql_chunker-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sql_chunker-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e4ea33f9860ecccae0aee98ddf18355bc0dd37f29dd5f8bed0a870709cdd4f22
MD5 7a334d862483fcbee76d2302eaad2713
BLAKE2b-256 160231861dbd9125f50c4f8a1c123978a821410b944740e242372557d3b93a03

See more details on using hashes here.

Provenance

The following attestation bundles were made for sql_chunker-1.1.0-py3-none-any.whl:

Publisher: publish.yml on makarsuperstar/sql-chunker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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