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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab3df811135195a79cc77dc5b4a53f41606520678490ae2f2b5488fecbf7908b
|
|
| MD5 |
0c3b4312df89802687edcd538d0e4b7c
|
|
| BLAKE2b-256 |
3f4892ac7dd85ab9826e9ea22980c583b44c834aa1eaf3b80590dd1c911b5468
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
673516649b8803d6280db63d05dfc23df6368ac64bbd9a4942ecf20e42d9a1bd
|
|
| MD5 |
4fde5d1a28cf699d038f4a7d3fef5c9f
|
|
| BLAKE2b-256 |
473f5777852441b35b1b40d3f26f0728a462959d0e0d73790addbc120a60c21c
|