Skip to main content

Eases access to information from the extension registry of the Open Contracting Data Standard

Project description

PyPI version Build Status Dependency Status Coverage Status

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ocdsextensionregistry-0.0.3.tar.gz (7.3 kB view details)

Uploaded Source

File details

Details for the file ocdsextensionregistry-0.0.3.tar.gz.

File metadata

File hashes

Hashes for ocdsextensionregistry-0.0.3.tar.gz
Algorithm Hash digest
SHA256 a8760214e9505d15b3c20dd9e8289e7c944eb4ecd942bf4731ad5fe17572a760
MD5 172314f5e6c8a93f5680674757465e86
BLAKE2b-256 e6c2c665fc1757f81bb31da5cb09e76a26304ec967e223334e2098a9e382e813

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page