Skip to main content

Labeled Tab-separated Values parser

Project description

Parser implementation in Python

Labeled Tab-separated Values


pip install ltsv



csv like interface:

>>> import sys
>>> if sys.version_info[0] == 3:
...     from io import StringIO
... else:
...     from cStringIO import StringIO
>>> import ltsv
>>> reader = ltsv.reader(StringIO("ip:\thost:localhost"))
>>> next(reader)
[['ip', ''], ['host', 'localhost']]


dic = {u'ip': u'', u'host': u'localhost'}
string = ltsv.writer(dic)
# ip:    host:localhost

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

ltsv-0.0.5.tar.gz (2.1 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page