summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.rst6
-rw-r--r--tablib/core.py27
2 files changed, 26 insertions, 7 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
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