Skip to main content

A small example package

Project description

csvlineparser

Based on https://secondboyet.com/articles/csvparser.html by Julian M Bucknall, rewritten in Python by raoulsson.

BNF Grammar:

csvFile ::= (csvRecord)* 'EOF'
csvRecord ::= csvStringList ('\n' | 'EOF')
csvStringList ::= rawString [',' csvStringList]
rawString := optionalSpaces [rawField optionalSpaces)]
optionalSpaces ::= whitespace*
whitespace ::= ' ' | '\t'
rawField ::= simpleField | quotedField 
simpleField ::= (any char except \n, EOF, \t, space, comma or double quote)+
quotedField ::= '"' escapedField '"'
escapedField ::= subField ['"' '"' escapedField]
subField ::= (any char except double quote or EOF)+

Intsallation

pip install csvlineparser

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

csvlineparser-0.0.3.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

csvlineparser-0.0.3-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file csvlineparser-0.0.3.tar.gz.

File metadata

  • Download URL: csvlineparser-0.0.3.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for csvlineparser-0.0.3.tar.gz
Algorithm Hash digest
SHA256 ab3df811135195a79cc77dc5b4a53f41606520678490ae2f2b5488fecbf7908b
MD5 0c3b4312df89802687edcd538d0e4b7c
BLAKE2b-256 3f4892ac7dd85ab9826e9ea22980c583b44c834aa1eaf3b80590dd1c911b5468

See more details on using hashes here.

File details

Details for the file csvlineparser-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: csvlineparser-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for csvlineparser-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 673516649b8803d6280db63d05dfc23df6368ac64bbd9a4942ecf20e42d9a1bd
MD5 4fde5d1a28cf699d038f4a7d3fef5c9f
BLAKE2b-256 473f5777852441b35b1b40d3f26f0728a462959d0e0d73790addbc120a60c21c

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