mirror of
https://github.com/kennethreitz/tablib.git
synced 2026-06-05 15:00:19 +00:00
Merge branch 'release/0.0.3'
This commit is contained in:
+3
-3
@@ -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
|
||||
|
||||
+23
-4
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user