kennethreitz.org / Software / Tablib

Tablib: Tabular Datasets

Tablib is a format-agnostic tabular dataset library, written in Python. It allows you to import, export, and manipulate tabular data sets.

Features

This was one of my first open source projects. The documentation is extensive and covers all aspects of the library. It was my passion project for a long time.

Installation

You can install Tablib using pip:

$ pip install tablib

Documentation

The official documentation for Tablib can be found here.

Usage

Here's an example of how you can use Tablib to work with tabular datasets in Python:

import tablib

# Create a dataset
data = tablib.Dataset(headers=["Name", "Age", "City"])
for row in [
    ["Alice", 24, "New York"],
    ["Bob", 30, "San Francisco"],
    ["Charlie", 28, "Seattle"],
]:
    data.append(row)