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)+

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.2.tar.gz (7.5 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.2-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: csvlineparser-0.0.2.tar.gz
  • Upload date:
  • Size: 7.5 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.2.tar.gz
Algorithm Hash digest
SHA256 46df1586fa5f88592ccdd7235985237200f8bf03b1ddf83b182f376afd1a3bb4
MD5 56c4ab39507311de05e0028211eba746
BLAKE2b-256 5f4c77cb1fdbceae5a74f11d07695a47e62dd0a39703f547a7e7ea816627dc09

See more details on using hashes here.

File details

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

File metadata

  • Download URL: csvlineparser-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 11.9 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0705d1fc7c6367f4b0db2c4afce3f108eab2b7089ee0c34ffb8d1d22c015a3d8
MD5 fb145dae7db29b382d00962af7d44477
BLAKE2b-256 f616406208e7593786fd75cee26d48fff1f0402d9e1453576ae93412e2e50ab2

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