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 Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page