file-io

3 posts tagged “file-io”.

  1. 2025
  2. Efficiently copying a file

    TLDR: Use I'm writing a Datasette plugin that handles an uploaded file, borrowing the Starlette mechanism for handling file uploads, documented here.

    1 min read
  3. 2024
  4. Handling CSV files with wide columns in Python

    Users were reporting the following error using to import some CSV files: csv.Error: field larger than field limit (131072) It turns out the Python standard library CSV module enforces a default field…

    1 min read
  5. 2023
  6. Explicit file encodings using click.File

    I wanted to add a option to which could be used to change the file encoding used to read the incoming CSV or TSV file - see sqlite-utils 182.

    1 min read