diff options
| author | Kenneth Reitz <me@kennethreitz.com> | 2010-08-30 03:47:19 -0400 |
|---|---|---|
| committer | Kenneth Reitz <me@kennethreitz.com> | 2010-08-30 03:47:19 -0400 |
| commit | bfc8d813b67490f8d83a8d5b238c06d02c3e12ee (patch) | |
| tree | f54a6a55e4f4ad9204d3723074ddfb70896014b5 | |
| parent | 3cd03cd8a968f77220bcc528101ff93b6203b6ba (diff) | |
| parent | 9fe0f954e67fdd5dbc2f854b3feec0b7cfca94af (diff) | |
| download | tablib-0.0.3.tar.gz | |
Merge branch 'release/0.0.3'v0.0.3
| -rw-r--r-- | README.rst | 6 | ||||
| -rw-r--r-- | tablib/core.py | 27 |
2 files changed, 26 insertions, 7 deletions
@@ -32,7 +32,7 @@ Features Convert datafile formats via API: :: - tabbed.import(filename='data.csv').export('data.json') + tablib.import(filename='data.csv').export('data.json') Convert datafile formats via CLI: :: @@ -54,7 +54,7 @@ Populate fresh data files: :: ('Henry', 'Ford', 2.3) ] - data = tabbed.Data(*data, headers=headers) + data = tablib.Data(*data, headers=headers) # Establish file location and save data.save('test.xls') @@ -62,7 +62,7 @@ Populate fresh data files: :: Intelligently add new rows: :: - data.addRow('Bob', 'Dylan') + data.add_row('Bob', 'Dylan') # >>> Warning: Existing column count is 3 print data.headers diff --git a/tablib/core.py b/tablib/core.py index aa97ebc..0a1cc33 100644 --- a/tablib/core.py +++ b/tablib/core.py @@ -6,14 +6,33 @@ # / /_ / /_/ / _ /_/ /_ /_/ // __// /_/ / # \__/ \__,_/ /_.___/ /_.___/ \___/ \__,_/ -__version__ = '0.0.2' -__build__ = '0x000002' +__version__ = '0.0.3' +__build__ = '0x000003' __author__ = 'Kenneth Reitz' __license__ = 'MIT' __copyright__ = 'Copyright 2010 Kenneth Reitz' -def cheese(): +def importer(): """docstring for import""" - pass + + + +class Data(object): + """test""" + def __init__(self): + pass + self.headers = None + + + + + def add_row(self, index=None): + pass + + def del_row(self): + pass + + def save(self): + pass |
