Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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.

Files for csvxls, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size csvxls-0.2.tar.gz (1.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page