_____ ______ ___________ ______
__ /_______ ____ /_ ___ /___(_)___ /_
_ __/_ __ `/__ __ \__ / __ / __ __ \
/ /_ / /_/ / _ /_/ /_ / _ / _ /_/ /
\__/ \__,_/ /_.___/ /_/ /_/ /_.___/
Tablib is a format-agnostic tabular dataset library, written in Python.
Output formats supported:
Note that tablib purposefully excludes XML support. It always will. (Note: This is a joke. Pull requests are welcome.)
Tablib documentation is graciously hosted on https://tablib.readthedocs.io
It is also available in the docs
directory of the source distribution.
Make sure to check out Tablib on PyPI!
Please see the contributing guide.
safe_xlsx_sheet_title
(#510).skip_lines
keyword
argument for their import_set()
method to be able to skip the nth first
lines of a read file (#497).csv.Sniffer()
in _csv.detect()
(#503).Row.lpush/rpush
logic was reversed. lpush
was appending while rpush
and append
were prepending. This was fixed (reversed behavior). If you
counted on the broken behavior, please update your code (#453).Row.lpush/rpush
logic is reversed.
lpush
is appending while rpush
and append
are prepending. The broken behavior
will remain in Tablib 1.x and will be fixed (reversed) in Tablib 2.0.0 (#453). If you
count on the broken behavior, please update your code when you upgrade to Tablib 2.x.tablib
as before with all
possible supported formats, run pip install tablib[all]
tablib.formats.registry.refister
API (#256).detect_format
, import_set
,
Dataset.load
, Databook.load
) now accepts file-like objects in addition
to raw strings and bytestrings (#440).DataBook().load
parameter ordering (first stream, then format).xls
format)ujson
(#311)Dataset.export(<format>)
over Dataset.<format>
syntax in docsyaml.safe_load
for importing yaml.json
package if availableDataset.latex
).Dataset.dbf
).Dataset.export()
, Dataset.load()
).Dataset.export('csv', delimiter='$')
).Dataset.remove_duplicates()
).datetime.datetime
issues when serializing data.detect_format()
function (mostly for internal use).None
handling.detect()
function removed.Dataset.transpose().transpose()
.stack_rows
=> stack
, stack_columns
=> stack_cols
append_col
, insert_col
)pop()
rpush
, lpush
, rpop
, lpop
, rpush_col
, and lpush_col
seperators
renamed to separators
Version | Tag | Published |
---|---|---|
3.2.1 | 3mos ago | |
3.2.0 | 5mos ago | |
3.1.0 | 8mos ago | |
3.0.0 | 2yrs ago |