Skip to main content

Open Data Schema Python client

Project description

Open Data Schema Python client

Install

pip install opendataschema

Usage

Note: the schema.json file can be given as a file path or an URL.

opendataschema schema.json list
opendataschema schema.json show
opendataschema schema.json show --name <schema_name>
opendataschema schema.json show --versions

Python API

TODO Example:

tsc = SchemaCatalog("https://opendataschema.frama.io/catalog/schema-catalog.json")
for tsr in tsc.get_schema_references():
    if tsr.has_git_nature():
        version_list =
        for ver in tsr.get_git_versions():
            url = tsr.get_schema_url(version)
            ts = TableSchema(url)
            print(ts.get_properties())
    else:
        url = tsr.get_schema_url()
        ts = TableSchema(url)
        print(ts.get_properties())

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

opendataschema-0.2.0.tar.gz (4.6 kB view hashes)

Uploaded Source

Built Distribution

opendataschema-0.2.0-py3-none-any.whl (6.9 kB view hashes)

Uploaded Python 3

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