From c0fb5cade92ee993371890f31afd78bfeb26230d Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 29 Aug 2010 17:35:51 -0400 Subject: [PATCH 1/3] readme updates --- README.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index c321a7d..77d7dcb 100644 --- a/README.rst +++ b/README.rst @@ -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 From b869f83d8740de55a1ae66592d082ac98bb7b0b9 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 29 Aug 2010 17:36:52 -0400 Subject: [PATCH 2/3] Version bump --- tablib/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tablib/core.py b/tablib/core.py index aa97ebc..4c9b22e 100644 --- a/tablib/core.py +++ b/tablib/core.py @@ -6,8 +6,8 @@ # / /_ / /_/ / _ /_/ /_ /_/ // __// /_/ / # \__/ \__,_/ /_.___/ /_.___/ \___/ \__,_/ -__version__ = '0.0.2' -__build__ = '0x000002' +__version__ = '0.0.3' +__build__ = '0x000003' __author__ = 'Kenneth Reitz' __license__ = 'MIT' __copyright__ = 'Copyright 2010 Kenneth Reitz' From 9fe0f954e67fdd5dbc2f854b3feec0b7cfca94af Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sun, 29 Aug 2010 17:37:30 -0400 Subject: [PATCH 3/3] model started --- tablib/core.py | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/tablib/core.py b/tablib/core.py index 4c9b22e..0a1cc33 100644 --- a/tablib/core.py +++ b/tablib/core.py @@ -13,7 +13,26 @@ __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