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
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
opendataschema-0.1.0.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for opendataschema-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8b364640b9ecaba5bb9a1b054c2c7b7bba3ff6a2b25023bf00b2db2d044c1f8 |
|
MD5 | 37552bdc4bcf03a260a13970472282ee |
|
BLAKE2b-256 | 02b42fc9817d8e37a71b3fd63cbda2a4b7839cb47b5a74bb7531de1236a869f7 |