Dojson

Latest version: v1.4.0

Safety actively analyzes 629639 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 3

1.1.1

------------------------------------

Bug fixes
~~~~~~~~~

- Adds missing schemas for fields bd388, bd370, bd348, bd884.

1.1.0

------------------------------------

Incompatible changes
~~~~~~~~~~~~~~~~~~~~

- Moves `--load` and `--dump` options to global group.

New features
~~~~~~~~~~~~

- Adds `schema` command to enhance JSON with '$schema' field. (73)
- Adds rules and schemas for MARC 21 Format for Authority Data. (7)
- Adds rules and schemas for MARC 21 Format for Holdings Data. (21)
- Adds support for parsing `<leader/>` tag in MARCXML.
- Adds new parameter `exception_handlers` to dojson.Overdo.do and
dojson.contrib.to_marc21.model.Underdo.do. It can be given to the
translation process to deal with non-standard fields in a custom way
(26).
- Adds new utility `map_order` function to ease renaming of
subfields.

Improved features
~~~~~~~~~~~~~~~~~

- Adds more detailed usage examples. (117)
- Refactors CLI to allow commands chaining.
- Adds support preserving the order of subfields.

Bug fixes
~~~~~~~~~

- Fixes support for Python 3.5.1.

1.0.0

------------------------------------

Incompatible changes
~~~~~~~~~~~~~~~~~~~~

- Removes support for single key matching multiple rules. Please make
your rules mutually exclusive!
- controlfields 00x are expected to be the element or a list of
multiple elements.

New features
~~~~~~~~~~~~

- Adds new keyword argument `ignore_missing` to `Overdo.do` method to
specify if method should raise `MissingRule` exception when there is
no matching rule for a key.
- Adds new CLI option `--strict` to the `do` command that sets the
`ignore_missing` argument to `False`. (51)
- MARC XML serialization from to_marc21.

Improved features
~~~~~~~~~~~~~~~~~

- Adds support for Python 3+.
- Uses an OrderedDict to let the external tools working on `dict`
(like json) behave correctly.
- All results from rules using `for_each_value` decorator are being
automatically extended. This is useful for repeatable MARC21 fields
with different indicators. (53)
- Record are stored in an immutable sorted structure which enables to
keep the intended order while offering easy ways to access, index
and manipulate.
- Adds two records to be tested.
- Reorders some of the assertion: `expected == actual`.

0.4.0

------------------------------------

New features
~~~~~~~~~~~~

- Improves dojson.contrib.marc2.utils.load() to read the input by
iterating of the open stream, rather than loading it all in memory
in one go. (45) (46)
- Renames OverUndo to Underdo following same name convention as for
Overdo.

Bug fixes
~~~~~~~~~

- Fixes indicator extraction from value in `Underdo` model.

0.3.0

------------------------------------

New features
~~~~~~~~~~~~

- Adds **experimental** rules for converting human readable JSON into
a JSON representation of the MARC21 Format.
- Adds `do` and `missing` commands for `dojson` command line interface
(see `dojson --help` for more information).

Improved features
~~~~~~~~~~~~~~~~~

- Adds missing mapping for the first indicator of field 856.

0.2.0

------------------------------------

New features
~~~~~~~~~~~~

- Adds the posibility to use base DoJSON model so the rules are
"inherited" from them.
- Adds new decorator `ignore_value` that remove the key in the
resulting json for None value.

Improved features
~~~~~~~~~~~~~~~~~

- Uses entry points instead of plain imports to load the creator
rules.

Bug fixes
~~~~~~~~~

- Removes calls to PluginManager consider_setuptools_entrypoints()
removed in PyTest 2.8.0.

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.