diff options
| author | Kenneth Reitz <me@kennethreitz.com> | 2011-05-16 02:18:03 -0400 |
|---|---|---|
| committer | Kenneth Reitz <me@kennethreitz.com> | 2011-05-16 02:18:03 -0400 |
| commit | a4a211b5a6b96e751f79743e1fd44f08ee2dd5b5 (patch) | |
| tree | 7a139b871d4ad3b4bdaddd09b2f00a9f104fd505 /docs/index.rst | |
| parent | c9766a48b07daa8e72d5109d644c05e115a55318 (diff) | |
| download | tablib-a4a211b5a6b96e751f79743e1fd44f08ee2dd5b5.tar.gz | |
theme update
Diffstat (limited to 'docs/index.rst')
| -rw-r--r-- | docs/index.rst | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/index.rst b/docs/index.rst index bb530bf..bdf24dc 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -24,8 +24,24 @@ Release v\ |version|. Tablib is an :ref:`MIT Licensed <mit>` format-agnostic tabular dataset library, written in Python. It allows you to import, export, and manipulate tabular data sets. Advanced features include, segregation, dynamic columns, tags & filtering, and seamless format import & export. +:: + + >>> data = tablib.Dataset(headers=['First Name', 'Last Name', 'Age']) + >>> map(data.append, [('Kenneth', 'Reitz', 22), ('Bessie', 'Monke', 21)]) + + >>> data.json + [{"Last Name": "Reitz", "First Name": "Kenneth", "Age": 22}, {"Last Name": "Monke", "First Name": "Bessie", "Age": 21}] + + >>> data.yaml + - {Age: 22, First Name: Kenneth, Last Name: Reitz} + - {Age: 21, First Name: Bessie, Last Name: Monke} + + >>> data.xlsx + <censored binary data> + I recommend you start with :ref:`Installation <install>`. + Testimonials ------------ |
