PyUp Safety actively tracks 295,363 Python packages for vulnerabilities and notifies you when to upgrade.
- use-titles: Use $ref'erring title if available https://github.com/OpenDataServices/flatten-tool/pull/368 - create-template --no-deprecated-fields: Did not work if deprecated element at same level as a $ref https://github.com/OpenDataServices/flatten-tool/issues/185#issuecomment-719587348
Fixed - Don't fail if compiled translation files (.mo) don't exist, and Django isn't installed - Fix some incorrect assumptions about types - Allow XML IDs to be attributes
Fixed - Don't fail if compiled translation files (.mo) don't exist
Added - Add Spanish translation for all strings that could appear in the CoVE web UI https://github.com/OpenDataServices/flatten-tool/pull/362
Fixed - Fix use of titles for sheet names, to avoid KeyError when a field is missing from the schema Changed - Include sheet name with duplicate heading warnings.
Changed - When `--use-titles` is specified, also use the titles for sheet names (ie. Excel tabs and CSV filenames)
Added - Add support for `"format": "date"` in a JSON schema Changed - All code has had black and isort applied. These have been added to Travis. Fixed - Remove extra lines in CSVs under Windows https://github.com/OpenDataServices/flatten-tool/pull/350
Added - Add .ods (OpenDocument Spreadsheet) file format support https://github.com/OpenDataServices/flatten-tool/pull/326
Changed - Drop Python 2 support https://github.com/OpenDataServices/flatten-tool/issues/299 - Documentation on Change Logs, Versioning and PyPi updated to match current practice. Fixed - Add BadXLSXZipFile exception type for BadZipFile exception when handling broken XLSX files related to cove issue https://github.com/OpenDataServices/cove/issues/514
Added - Add an XML declaration to outputted XML files https://github.com/OpenDataServices/cove/issues/1206
Added - --preserve-fields option to the cli so the user can specify which fields to keep when flattening, instead of defaulting to all of them Fixed - Correct cell source map when hashcomments is used. Changed - Using --rollup with `flatten` accepts fields to roll up as input directly and via a file, as well as via a schema. - Fixed pytest version at <5 because of breaking changes to the tests.
Fixed - Ignore NoneType in json instead of giving a TypeError.
Added - A -v verbose option to the cli to generate more verbose output. - A --truncation-length option to create-template and flatten - A --no-deprecated-fields option to create-template. Changed - Output on the command line is by default less verbose - openpyxl of at least 2.6 is required https://github.com/OpenDataServices/flatten-tool/issues/287 - For Python 3, 3.5 or later is required - (XML only) Ensure the same path isn't split across multiple sheets - https://github.com/OpenDataServices/flatten-tool/pull/293
Added - While trying to decode JSON, if there is a UTF8 error raise the new exception class BadlyFormedJSONErrorUTF8. (This extends the old BadlyFormedJSONError exception, so existing code that checks sensibly should be fine.)
Added - Add --disable-local-refs to flatten, unflatten and create-template. - Add --remove-empty-schema-columns flag to flatten https://github.com/OpenDataServices/cove/issues/1019 - Add --xml-comment to unflatten. Changed - Commands from command line overridden individually by commands in the metatab. Previously all commands taken from metatab and the rest ignored if only one was added. Fixed - In setup.py, set author and author_email to general values. Fixed - create-template: If --output-format is xlsx, the default --output-name is template.xlsx instead of template. - flatten: If --output-format is xlsx, the default --output-name is flattened.xlsx instead of flattened.
Added - Add a spreadsheet configuration variable for id_name (called IDName). - Add --root-is-list to flatten and unflatten. - Add --sheet-prefix to flatten. - Add --filter-field and --filter-value to flatten. - Added new BODS page to docs. Fixed - Ignore elements that don't exist in the schema, whilst sorting XML. Previously an exception was raised. https://github.com/OpenDataServices/flatten-tool/pull/218 - Fix: unflatten would crash if given a csv with an empty first row https://github.com/OpenDataServices/flatten-tool/pull/229 - Clarified meaning of headerrows in docs. https://github.com/OpenDataServices/flatten-tool/issues/230 - Tool can work with schemas that have refs to local files (part of https://github.com/OpenDataServices/flatten-tool/issues/225 ) - Schema loader can work with schemas that have 'oneOf' (part of https://github.com/OpenDataServices/flatten-tool/issues/225 )
Added - Sort XML according to provided schema(s) https://github.com/OpenDataServices/flatten-tool/pull/196 Changed - Remove Python 3.3 support https://github.com/OpenDataServices/flatten-tool/commit/636cf988ff7e5247a089b22061f0fe7767ea81b4 Fixed - Avoid some openpyxl warnings https://github.com/OpenDataServices/flatten-tool/pull/211 - Fix XML unflattening with stdlib etree https://github.com/OpenDataServices/flatten-tool/pull/212
(As there are new features, this should have been a minor release. Just noting so we pick this up for future releases.) (This release was documented after the release and some things may have been missed.) Added - Support user-defined XML root node https://github.com/OpenDataServices/flatten-tool/pull/201 - Require lxml https://github.com/OpenDataServices/flatten-tool/pull/207 Fixed - Add missing comma to CSV fixture https://github.com/OpenDataServices/flatten-tool/pull/203 - Do not hard code iati-activities for top level for all XML https://github.com/OpenDataServices/flatten-tool/issues/150 - Don't split text value of XML array https://github.com/OpenDataServices/flatten-tool/pull/208