OCDS Merge 0.6.4¶
This Python package creates records that conform to the Open Contracting Data Standard. Specifically, it provides classes for merging OCDS releases with the same OCID into either a compiled release or a versioned release (collectively called “merged releases”), as described in the OCDS documentation.
Instead of using this library directly, it is easier to create merged releases using either:
- OCDS Kit’s compile command-line tool
- OCDS Kit’s merge Python function
- OCDS Toucan’s compile releases web application
If you are viewing this on GitHub or PyPi, open the full documentation for additional details.
pip install ocdsmerge
If the data you are working with has bad
id values, use the features for handling bad data.
We provide test cases for other implementations of the merge routine under the tests/fixtures directory. The
1.1 directories contain files like
simple.json, which contain a list of OCDS releases as JSON; the suffixed
simple-versioned.json files contain the expected compiled release and versioned release, respectively. To test your implementation, provide as input a file like
simple.json as well as the appropriate version of the OCDS release schema, and compare your output to files like
To prepare your implementation for future versions and third-party extensions, you can test your implementation using the files under the
schema directory and using the schema in the schema.json file.
Copyright (c) 2015 Open Contracting Partnership, released under the BSD license