open-contracting / ocdskit

A suite of command-line tools for working with OCDS data
https://ocdskit.readthedocs.io
BSD 3-Clause "New" or "Revised" License
17 stars 7 forks source link

Use OCDS Kit as a Python library #88

Closed romifz closed 5 years ago

romifz commented 5 years ago

Is it possible to have a library version of OCDS Kit, so it can be imported in Python code?

jpmckinney commented 5 years ago

You can do that :) Used for example in https://github.com/open-contracting/kingfisher-process/blob/f5b3471d4ac094c7ea61b28ab6acd491de0e6f21/ocdskingfisherprocess/transform/upgrade_1_0_to_1_1.py

Which method do you need to use as a library? Some methods still need to be extracted from CLI commands.

romifz commented 5 years ago

Thank you for the example James.

I'm asking for the commands we are looking to include in the initial version of OCDS Kit Web: package_releases, compile, mapping-sheet and upgrade (which is in the example).

jpmckinney commented 5 years ago

Sounds good. I suggest you start with upgrade, and I can work on #91 to make the others available.