Skip to content

daskol/tskv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub license Twitter

tskv

Tab-Separated Key-Value format

Description

  1. Each line starts from prefix tskv\t.
  2. Values are stored as key-value pairs that is separated with equal sign =.
  3. Prefix and key-value pairs separated with tabs \t.

Installation and Testing

One could install package in common way from PyPI with pip

    pip install tskv

In order to setup the newest version from source codes, one should clone repository first and than run installation script

    git clone git@github.com:daskol/tskv.git
    python tskv/setup.py

Than run tests as follows

    python -m unittest discover tskv/tests/

Examles

In the begging it data representation format is used for running mappers in Hadoop Streaming regine.

See examples/ for working example of utility that converts nginx's logs to tksv-formatted files.