summaryrefslogtreecommitdiff
path: root/tablib/core.py
Commit message (Collapse)AuthorAgeFilesLines
* DataBook().load function params errorcls19912017-10-241-1/+1
|
* v0.11.3v0.11.3Kenneth Reitz2016-02-161-2/+2
|
* v0.11.2v0.11.2Kenneth Reitz2016-02-161-2/+2
|
* Fix export only formatsTimo Furrer2016-02-151-2/+3
| | | | | | | | Formats like LaTeX could have never been exported because `setattr(cls, set_%s % fmt.title, fmt.import_set)` always failed for export-only formats and with that the exception was caught in the outer try/except and the format tuple was set to (None, None) with `cls._formats[fmt.title] = (None, None)`
* v0.11.1, fix packaging errorv0.11.1Kenneth Reitz2016-02-071-2/+2
|
* v0.11.0Kenneth Reitz2016-02-071-4/+4
|
* smarter detect_format functionKenneth Reitz2016-02-071-41/+26
|
* fix __unicode__Kenneth Reitz2016-02-071-3/+6
|
* Fix for transpose().transpose() with duplicate keysKenneth Reitz2016-02-071-3/+3
| | | | #199
* cleanupKenneth Reitz2016-02-071-0/+1
|
* Merge branch 'develop' into import_exportKenneth Reitz2016-02-071-11/+87
|\ | | | | | | | | | | | | # Conflicts: # tablib/core.py # tablib/formats/_csv.py # tablib/formats/_xlsx.py
| * /s/unique/remove_duplicatesKenneth Reitz2016-02-071-6/+6
| | | | | | | | #182
| * Merge pull request #182 from cherepski/developKenneth Reitz2016-02-071-0/+7
| |\ | | | | | | Adding ability to unique all rows in a dataset.
| | * Adding ability to unique all rows in a dataset.Kevin Cherepski2015-02-041-0/+7
| | |
| * | Merge branch 'develop' of https://github.com/rabinnankhwa/tablib into developKenneth Reitz2016-02-071-8/+42
| |\ \ | | | | | | | | | | | | | | | | # Conflicts: # AUTHORS
| | * | filter row and column valuesrabinnankhwa2014-08-311-0/+4
| | | |
| | * | adding support for creating subset of a dataset.rabinnankhwa2014-08-301-0/+36
| | | |
| | * | used get method of dictionary instead of exception handlingrabinnankhwa2014-08-301-8/+2
| | | |
| | * | __getslice__ method of Row classcorrectedrabinnankhwa2014-08-301-1/+1
| | | |
| * | | Merge branch 'develop' of https://github.com/papisz/tablib into developKenneth Reitz2016-02-071-0/+2
| |\ \ \
| | * | | CSV custom delimiter supportpapisz2014-04-091-0/+2
| | | | |
| * | | | Merge branch 'latex-export' of https://github.com/mloesch/tablib into developKenneth Reitz2016-02-071-0/+10
| |\ \ \ \
| | * | | | Added LaTeX table export formatMathias Loesch2015-06-041-0/+10
| | | | | |
| * | | | | Small documentation fix in Dataset classDaniel Harms2015-11-101-1/+1
| |/ / / /
| * | | | Fixes Row slicing. Fixes #184.Thomas Roten2015-03-281-1/+1
| | |_|/ | |/| |
| * | | Fix JSON import exampleAlex Marandon2014-10-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The example was triggering this error: JSONError: Expecting property name: line 1 column 3 (char 2) This is because JSON property names should be wrapped in double quotes. While at it, I've fixed the typo in "last_name"
| * | | Cleaning up DBF documentationJames Douglass2014-09-051-4/+5
| | |/ | |/| | | | | | | | | | | | | Fixing indentation issues (off by one space), which caused problems with the sphinx rendering of the DBF docstring and otherwise cleaning up the sphinx docstring.
| * | Adding DBF support.James Douglass2014-08-211-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Squashing two squashes. Adding DBF support Adding the DBFpy python package The DBFpy package provides basic dbf support for python. Still need to write an interface format file for tablib. Adding DBF format and imports in compat.py Adding DBF format to formats.__init__ DBF format had not been committed to formats.__init__, so I’m adding it. Adding a dbf import test Adding at test to check whether a DBF can be created properly and compare it against a regression binary string. Adding an import_set test (and renaming another) Adding an import_set test that conforms with the other import_set tests for other formats. I’m also adding an export_set function. Fixing system site-packages import Importing dbfpy from tab lib.packages instead of system site packages. Fixing a syntaxError in dbfpy/dbfnew.py Fixing an issue with ending field definitions DBFPY, when writing a DBF, terminates the field definitions with a newline character. When importing a DBF from a stream, however, DBFPY was looking only for the \x0D character rather than the newline. Now we consider both cases. Adding a test for dbf format detection Adding DBF filetype detection tests Adding tests for YAML, JSON, TSV, CSV using the DBF detection function. Handling extra exceptions in dbf detection Adding exception handling for struct.error, an exception that DBFPY raises when trying to unpack a TSV table. Since it’s not a DBF file, we know it’s not a DBF and return False. Fixing an issue with the DBF set exporting test The DBF set export test needed a bit enabled (probably the writeable bit?) before the test would match the regression output. Updating dbf interface Updating the int/float class/type checking in the dbf format file. This allows for python2 and python3 compatibility. Tweaking dbfpy to work with python3 Altering a couple of imports. Updating dbf tests for binary data compatibility Making regression strings binary and improving debug messages for dbf assertion errors. Improving file handling for python 2 and 3 Updating DBF file handling for both python 2 and 3 in the _dbf interface. Adding a (seemingly) functional dbfpy for python3 I’ve made dbfpy python3 compatible! Tests appear to pass. A significant change was made to the format detection test whereby I made the input string a binary (bytes) string. If the string is not a bytes string by the time we try to detect the format, we try to decode the string as utf-8 (which admittedly might not be the safest thing to do) and try to decode anyways. Updating imports for tablib dbf interface Now importing python2 or python3 versions as appropriate. Updating dbf package references in compat.py Cleaning up debugging print statements Updating stream handling in dbf interface Factoring the open() call out of the py3 conditional and removing the temp file before returning the stream value. Adding dbfpy3 init.py I had apparently missed the dbfpy3 init file when committing dbfpy3. Adding dbfpy and dbfpy3 to setup.py's package list Switching test order of formats Putting dbf format testing ahead of TSV. In some of my tests with numeric DBF files, I encountered an issue where the ASCII horizontal tab character (0x09) would appear in a numeric DBF. Because of the order of tabular format imports, though, format detection would recognize it as a TSV and not as a DBF. Adding my name to AUTHORS. Adding a DBF property to tab lib core Documentation includes examples on how to explicitly load a DBF straight from a file and how to load a DBF from a binary string. Also, how to write the binary data to a file. Adding DBF format notes to README Adding exclamation point to DBF section title Matching formatting of XLS section Updating setup.py to match current dev state Setup.py had been updated since I forked the tablib repo, so I’m updating setup.py to match its current structure while still maintaining DBF compatibility. Fixed callable collumn test the test was sending a list instead of a function CORE CONTRIBUTORS :cake: @iurisilvio v0.10.0 WHEELS 3.3, 3.4 makefile for WHEELS v0.10.0 history ALL Separate py2 and py3 packages to avoid installation errors. Fix #151 Running travis and tox with python 3.4. Adding DBF support Adding the DBFpy python package The DBFpy package provides basic dbf support for python. Still need to write an interface format file for tablib. Adding DBF format and imports in compat.py Adding DBF format to formats.__init__ DBF format had not been committed to formats.__init__, so I’m adding it. Adding a dbf import test Adding at test to check whether a DBF can be created properly and compare it against a regression binary string. Adding an import_set test (and renaming another) Adding an import_set test that conforms with the other import_set tests for other formats. I’m also adding an export_set function. Fixing system site-packages import Importing dbfpy from tab lib.packages instead of system site packages. Fixing a syntaxError in dbfpy/dbfnew.py Fixing an issue with ending field definitions DBFPY, when writing a DBF, terminates the field definitions with a newline character. When importing a DBF from a stream, however, DBFPY was looking only for the \x0D character rather than the newline. Now we consider both cases. Adding a test for dbf format detection Adding DBF filetype detection tests Adding tests for YAML, JSON, TSV, CSV using the DBF detection function. Handling extra exceptions in dbf detection Adding exception handling for struct.error, an exception that DBFPY raises when trying to unpack a TSV table. Since it’s not a DBF file, we know it’s not a DBF and return False. Fixing an issue with the DBF set exporting test The DBF set export test needed a bit enabled (probably the writeable bit?) before the test would match the regression output. Updating dbf interface Updating the int/float class/type checking in the dbf format file. This allows for python2 and python3 compatibility. Tweaking dbfpy to work with python3 Altering a couple of imports. Updating dbf tests for binary data compatibility Making regression strings binary and improving debug messages for dbf assertion errors. Improving file handling for python 2 and 3 Updating DBF file handling for both python 2 and 3 in the _dbf interface. Adding a (seemingly) functional dbfpy for python3 I’ve made dbfpy python3 compatible! Tests appear to pass. A significant change was made to the format detection test whereby I made the input string a binary (bytes) string. If the string is not a bytes string by the time we try to detect the format, we try to decode the string as utf-8 (which admittedly might not be the safest thing to do) and try to decode anyways. Updating imports for tablib dbf interface Now importing python2 or python3 versions as appropriate. Updating dbf package references in compat.py Cleaning up debugging print statements Updating stream handling in dbf interface Factoring the open() call out of the py3 conditional and removing the temp file before returning the stream value. Adding dbfpy3 init.py I had apparently missed the dbfpy3 init file when committing dbfpy3. Adding dbfpy and dbfpy3 to setup.py's package list Switching test order of formats Putting dbf format testing ahead of TSV. In some of my tests with numeric DBF files, I encountered an issue where the ASCII horizontal tab character (0x09) would appear in a numeric DBF. Because of the order of tabular format imports, though, format detection would recognize it as a TSV and not as a DBF. Adding my name to AUTHORS. Adding a DBF property to tab lib core Documentation includes examples on how to explicitly load a DBF straight from a file and how to load a DBF from a binary string. Also, how to write the binary data to a file. Adding DBF format notes to README Adding exclamation point to DBF section title Matching formatting of XLS section Updating setup.py to match current dev state Setup.py had been updated since I forked the tablib repo, so I’m updating setup.py to match its current structure while still maintaining DBF compatibility. Fixed callable collumn test the test was sending a list instead of a function CORE CONTRIBUTORS :cake: @iurisilvio v0.10.0 WHEELS 3.3, 3.4 makefile for WHEELS v0.10.0 history ALL Separate py2 and py3 packages to avoid installation errors. Fix #151 Running travis and tox with python 3.4.
* | | New import/export interface with dataset and databook `import_` and `export` ↵import_exportIuri de Silvio2015-04-051-14/+78
|/ / | | | | | | | | | | methods and overloaded `import_set` and `import_book` functions.
* | v0.10.0Kenneth Reitz2014-05-271-4/+4
|/
* Maintain dataset title after sort.Iuri de Silvio2014-01-111-2/+2
|
* Merge pull request #76 from djv/developKenneth Reitz2014-01-081-0/+2
|\ | | | | xls and xlsx import support
| * xls and xlsx import supportDaniel Velkov2012-06-011-0/+2
| |
* | Merge pull request #131 from fusionbox/quotesKenneth Reitz2014-01-081-4/+4
|\ \ | | | | | | remove extraneous quote marks
| * | remove extraneous quote marksGavin Wahl2013-11-131-4/+4
| | |
* | | Merge pull request #129 from lexual/dataset_typo_fixKenneth Reitz2014-01-081-2/+2
|\ \ \ | | | | | | | | fix misspelling. hundres -> hundreds.
| * | | fix misspelling. hundres -> hundreds.lexual2013-11-081-2/+2
| |/ /
* | | Add pass to json property.Olle Lundberg2013-11-111-0/+1
|/ / | | | | To conform to the code for the other properties.
* | Merge pull request #68 from msabramo/python3Kenneth Reitz2012-11-151-6/+8
|\ \ | |/ |/| Improve Python 3 compatibility
| * Changes for Python 3 compatibility, including vendorizing xlrd3Marc Abramowitz2012-05-151-6/+8
| |
* | Generic method import_book (similar to import_set) to import data into ↵xando2012-05-161-0/+13
|/ | | | Databook model.
* Databook.add_sheet accepts Dataset subclassesKuba Janoszek2012-03-131-1/+1
|
* ref #48. makes Dataset more like a duck with extend()mellort2012-01-281-0/+8
|
* Render table in Markdown format on unicode(dataset). Closes #41.Alexander Artemenko2011-10-161-0/+17
|
* really need to use testing branches..Kenneth Reitz2011-08-151-1/+1
|
* a column w/ no length could workKenneth Reitz2011-08-111-6/+9
|
* Throwing InvalidDimensions when append_col with header is called but only ↵Mike Waldner2011-08-101-0/+6
| | | | | | headers exists Related #33
* Merge branch 'append_col_docs' of https://github.com/mawaldne/tablib into ↵Kenneth Reitz2011-08-091-24/+28
|\ | | | | | | develop
| * Adding documentation changes for append_colMike Waldner2011-08-091-24/+28
| | | | | | | | Related #21
* | Merge branch 'fix_pickle_bug_2' of https://github.com/cswegger/tablib into ↵Kenneth Reitz2011-07-141-2/+9
|\ \ | | | | | | | | | develop