Skip to main content

Tools for working with delimited files.

Project description

#CSVTools

Tools for working with delimited files.

1. DialectDetector
When passed delimited file path will sniff file for dialect and header information using specified detection settings for DialectDetector instance.
1. sniff_for_dialect:
Sniff delimited file and return csv.Dialect.
2. sniff_for_headers:
Sniff delimited file and return first row if the file has headers else list of numbered columns as headers in the form of 'Column' + column #.
3. sniff_for_encoding:
Sniff file to try and determine and return encoding else returns latin-1.

2. SchemaEngine
Engine for data-typing delimited file into field_names, their data type, and max length (if applicable).
1. build_schema_string:
Process delimited file and return schema string for file passed.

3. integrity_check
Take filepath and report on the number of columns detected per line, extra quotechars, etc. Helps to detect problems in source files which may cause issues when creating schema files and indicator for whether file will need preprocessor.

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

csv_tools-0.3.tar.gz (8.5 kB view details)

Uploaded Source

File details

Details for the file csv_tools-0.3.tar.gz.

File metadata

  • Download URL: csv_tools-0.3.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for csv_tools-0.3.tar.gz
Algorithm Hash digest
SHA256 89a915874980d3160d32e66bbfdc6ddb1473e20b1bb07f01a92987d25b0cabff
MD5 ebcfb82c9c88b42fe8bcace9d7d87d8b
BLAKE2b-256 15b8bf4a4f81080007e5fb38b1428d927cd5c341c02a8bf9d2dce6c819a87d2a

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