summaryrefslogtreecommitdiff
path: root/docs/index.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/index.rst')
-rw-r--r--docs/index.rst16
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
------------