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.

Filename, size & hash SHA256 hash help File type Python version Upload date
ltsv-0.0.5.tar.gz (2.1 kB) Copy SHA256 hash SHA256 Source None Mar 2, 2013

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page