summaryrefslogtreecommitdiff
path: root/tablib/core.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixes #274 - Fix Databook.load() params orderingClaude Paroz2019-10-041-1/+1
|
* Refs #322 - Open dbf file in binary mode in docsClaude Paroz2019-10-031-1/+1
|
* Made blank lines PEP-8 compatibleClaude Paroz2019-10-031-50/+4
|
* Avoid DeprecationWarning due to invalid escape in docstringRan Benita2019-10-031-5/+5
| | | | Will become a SyntaxError in Python 3.8: https://bugs.python.org/issue32912
* release: 0.13.0v0.13.0Timo Furrer2019-03-081-1/+1
|
* Merge pull request #351 from jdufresne/isinstanceTimo Furrer2019-03-031-3/+3
|\ | | | | Merge multiple isinstance() calls to one
| * Merge multiple isinstance() calls to oneJon Dufresne2019-03-021-3/+3
| |
* | Trim trailing white space throughout the projectJon Dufresne2019-03-021-2/+2
|/ | | | | | Many editors clean up trailing white space on save. By removing it all in one go, it helps keep future diffs cleaner by avoiding spurious white space changes on unrelated lines.
* Merge branch 'master' into bugfix/invalid-ascii-csvBruno Alla2019-03-021-7/+38
|\ | | | | | | | | | | | | # Conflicts: # setup.py # tablib/compat.py # test_tablib.py
| * Merge pull request #333 from hudgeon/masterTimo Furrer2019-03-021-2/+14
| |\ | | | | | | Updated xlsx format to remove reference to openpyxl's deprecated get_active_worksheet
| | * Add instructions for handling csv line endings in Windows in Python 3DougHudgeon2018-06-261-2/+14
| | |
| * | Merge pull request #348 from mloesch/jiraTimo Furrer2019-03-021-1/+7
| |\ \ | | | | | | | | Add Jira table export
| | * | Add Jira table exportMathias Loesch2019-01-231-1/+7
| | |/
| * | Remove vendored ordereddict packageJon Dufresne2019-01-011-1/+2
| |/ | | | | | | | | Now that Python 2.6 support has been dropped, can remove the vendored ordereddict package. Use the stdlib collections.OrderedDict instead.
| * next versionv0.12.1Kenneth Reitz2017-09-011-2/+2
| |
| * drop 2.6Kenneth Reitz2017-08-271-2/+2
| |
| * Adding initial DataFrames SupportJason Myers2017-08-261-0/+12
| | | | | | | | Signed-off-by: Jason Myers <jason@jasonamyers.com>
| * v0.11.5Kenneth Reitz2017-06-131-2/+2
| |
* | Fix unicode encode errors on Python 2 -- Fixes #215Bruno Alla2017-05-021-1/+1
|/ | | | | | | | | | | | | | Switch csv library to backports.csv as the implementation is closer to the python 3 one. Add a test case covering the problem. Run tests with unicode_literals from future Fix unicode encode errors with unicode characters - Use `backports.csv` instead of `unicodecsv` - Use StringIO instead of cStringIO - Clean-up some Python 2 specific code
* Version bump: 0.11.4v0.11.4Iuri de Silvio2017-01-231-2/+2
|
* Put Dataset.title in the documentationErwin Junge2016-05-201-0/+1
|
* Fixed __unicode__/__str__ for dataset with no headersTom Christie2016-02-251-2/+4
|
* 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.