diff options
| author | Kenneth Reitz <me@kennethreitz.com> | 2010-09-25 02:54:43 -0400 |
|---|---|---|
| committer | Kenneth Reitz <me@kennethreitz.com> | 2010-09-25 02:54:43 -0400 |
| commit | 17e90e71e5406fc8621c254e58ae6cf169e38c34 (patch) | |
| tree | f0860302c94cedbf6cad3c2c98e8c8f16fd83a87 | |
| parent | 7364995eaabf49d35652754158151a232af08a22 (diff) | |
| download | tablib-17e90e71e5406fc8621c254e58ae6cf169e38c34.tar.gz | |
test
| -rw-r--r-- | test.py | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- + +import tablib + +data = tablib.Dataset() + +data.headers = ['a', 'b', 'c'] +data.append([1,2,3]) +data.append([1,2,3]) + +print data.dict + +new_data = tablib.formats.json.import_set(str(data.json)) +#print new_data.yaml + + + +# data.headers = ['one', 'two', 'three'] +# print data.dict
\ No newline at end of file |
