Skip to main content

Functions to read from CSV or XLS(X) files interchangeably

Project description

Two functions to aid in reading CSV and XLS/XLSX files interchangeably, while respecting Unicode.

read_csv_or_xls does its best to read its data argument (should be bytes) as an Excel file. If it fails, it tries to decode it as UTF-8. If you hand it a (Unicode) string, it’ll just return it.

utf8_reader gives you a CSV reader (like the csv library’s) which decodes its argument as UTF-8; the generator yields Unicode strings.

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

csvxls-0.2.tar.gz (1.8 kB view details)

Uploaded Source

File details

Details for the file csvxls-0.2.tar.gz.

File metadata

  • Download URL: csvxls-0.2.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for csvxls-0.2.tar.gz
Algorithm Hash digest
SHA256 d94645db8034328689a8032bce208512f243c18aaea848359cff2c0b7096ea46
MD5 4a11ab1be02da30ab8ae6309b7b0bf9a
BLAKE2b-256 1f96093c2e6908715f2e32e8e072d4907c42c8ffc091387fe3ba0697b1604343

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