Skip to main content

Efficient chunked loader for large CSV and Excel files

Project description

fastload

fastload is a lightweight Python library for loading large CSV and Excel files in chunks, with automatic encoding and delimiter detection, and progress bars.

Features

  • Chunked reading – process huge files without memory overflow.
  • Auto‑detect encoding (via chardet) – handles UTF‑8, CP1251, etc.
  • Auto‑detect delimiter – supports ,, ;, \t, |.
  • Progress bars with tqdm.
  • Excel support for .xlsx and .xlsm (via openpyxl).
  • File‑type auto‑detection with load_file().

Installation

pip install fastload

For development:

pip install -e .

Quick Start

CSV

from fastload import load_csv
for chunk in load_csv('huge_file.csv', chunk_size=10000):
    process(chunk)

Excel

from fastload import load_excel
for chunk in load_excel('data.xlsx', sheet_name='Sheet1'):
    process(chunk)

Auto‑detect

from fastload import load_file
for chunk in load_file('data.csv'):
    process(chunk)

Requirements

  • Python 3.8+
  • Dependencies: openpyxl, tqdm, chardet

License

MIT – see LICENSE

Author

Stepan Bogdanov – GitHub

Contributing

Contributions are welcome – open an issue or submit a pull request.

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

fastload_data-0.1.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

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

fastload_data-0.1.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file fastload_data-0.1.0.tar.gz.

File metadata

  • Download URL: fastload_data-0.1.0.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for fastload_data-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c8d9f2bbf6e118893292be03d316a00c676860ecfd400100f5fa12b12a202a26
MD5 a6f2b45038d4a61b1c99db87e5af2521
BLAKE2b-256 c08eeb0d34b42bf81d112d9a9779aae32702bf4f10dcd759b7b6f00940cef53b

See more details on using hashes here.

File details

Details for the file fastload_data-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: fastload_data-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for fastload_data-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a82bf6b6b710d8d75bf9a35d066291efe6343e5c22a6b8374ae1d48a1854eda7
MD5 fe7328199f41f0ca2fafacfb20758f8a
BLAKE2b-256 0252c35ea785dc2984492f152c65543ccdff95ce8ff51f1452d3d03f84be5a57

See more details on using hashes here.

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