Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 627 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 627 Bytes

Fields for Python

Fields for Python is a Python binding to Fields, the fast C library for reading CSV and other tabular text formats.

Fields for Python is implemented using Python's ctypes module and depends on Fields' shared library. It serves as the host for Fields' tests and as an example of a language binding to Fields.

Usage

The API is similar to Python's csv module:

>>> import fields
>>> for record in fields.reader('a,b\nc'):
...     print record
...
...
['a', 'b']
['c']

License

Fields for Python is released under the same license as Fields.