Eases access to information from the extension registry of the Open Contracting Data Standard
Project description
This Python package eases access to information about extensions in the Open Contracting Data Standard’s extension registry.
Examples
from ocdsextensionregistry import ExtensionRegistry
extensions_url = 'https://raw.githubusercontent.com/open-contracting/extension_registry/master/extensions.csv'
extension_versions_url = 'https://raw.githubusercontent.com/open-contracting/extension_registry/master/extension_versions.csv'
registry = ExtensionRegistry(extension_versions_url, extensions_url)
for version in registry.filter(core=True, version='v1.1.3', category='tender'):
print('The {0.metadata[name][en]} extension ("{0.id}") is maintained at {0.repository_html_page}'.format(version))
print('Run `git clone {0.repository_url}` to make a local copy in a {0.repository_name} directory'.format(version))
print('Get its patch at {0.base_url}release-schema.json\n'.format(version))
# The Enquiries extension ("enquiries") is maintained at https://github.com/open-contracting/ocds_enquiry_extension
# Run `git clone git@github.com:open-contracting/ocds_enquiry_extension.git` to make a local copy in a ocds_enquiry_extension directory
# Get its patch at https://raw.githubusercontent.com/open-contracting/ocds_enquiry_extension/v1.1.3/release-schema.json
Contributing
Methods in this library should either apply to all possible extensions, or be useful to at least two use cases. Methods that don’t yet meet these criteria are documented as experimental.
Copyright (c) 2018 Open Contracting Partnership, released under the BSD license
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file ocdsextensionregistry-0.0.1.tar.gz
.
File metadata
- Download URL: ocdsextensionregistry-0.0.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a9d434ea0fca958c116041f8236c7587f37458b08caf61cc8b52a9a6d2fccb1 |
|
MD5 | c66220bb2e98627490fe222b1e792233 |
|
BLAKE2b-256 | c9a5c6d8db12f3dc401f06d7eecfa6852a72bd71585c69f52661527f80b527a1 |