diff options
| author | Iuri de Silvio <iurisilvio@gmail.com> | 2016-01-20 10:48:06 -0200 |
|---|---|---|
| committer | Iuri de Silvio <iurisilvio@gmail.com> | 2016-01-20 10:48:06 -0200 |
| commit | c02a21ccd2cbe66920beb5dbaa49a8cd7ddac8d9 (patch) | |
| tree | b8b30a7e8f160ecbc718ad4df1acd2fc93b00df7 | |
| parent | a785d77901f307ef499621753b078743e2fabb81 (diff) | |
| parent | fa045ca1146bdd4d5b00f85b99be177bd9bffb5c (diff) | |
| download | tablib-c02a21ccd2cbe66920beb5dbaa49a8cd7ddac8d9.tar.gz | |
Merge pull request #213 from go8ose/develop
Add section on importing to tutorial.
| -rw-r--r-- | docs/tutorial.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/tutorial.rst b/docs/tutorial.rst index bd2dbc0..551b191 100644 --- a/docs/tutorial.rst +++ b/docs/tutorial.rst @@ -39,6 +39,7 @@ You can now start filling this :class:`Dataset <tablib.Dataset>` object with dat + ----------- Adding Rows ----------- @@ -98,6 +99,15 @@ It's that easy. -------------- +Importing Data +-------------- +Creating a :class:`tablib.Dataset` object by importing a pre-existing file is simple. :: + + imported_data = tablib.import_set(open('data.csv').read()) + +This detects what sort of data is being passed in, and uses an appropriate formatter to do the import. So you can import from a variety of different file types. + +-------------- Exporting Data -------------- |
