A Python library for working with a Data Package Registry.
Project description
# datapackage-registry-py
A Python library for working with a Data Package Registry.
Currently, the default registry backend is currently located at:
https://rawgit.com/dataprotocols/registry/master/registry.csv
## Usage
```python
import datapackage_registry
# get the default registry objects
registry = datapackage_registry.get()
# or pass in a config object to define a non-default backend endpoint
custom_config = {
'backend': 'https://mycustomconfig.com/registry.csv',
}
custom_registry = datapackage_registry.get(custom_config)
# registry now has an array of dicts, e.g.:
[{'id': 'base',
'schema': 'https://rawgit.com/dataprotocols/schemas/master/data-package.json',
'specification': 'http://dataprotocols.org/data-packages',
'title': 'Data Package'},
{'id': 'tabular',
'schema': 'https://rawgit.com/dataprotocols/schemas/master/tabular-data-package.json',
'specification': 'http://dataprotocols.org/tabular-data-package/',
'title': 'Tabular Data Package'}]
```
A Python library for working with a Data Package Registry.
Currently, the default registry backend is currently located at:
https://rawgit.com/dataprotocols/registry/master/registry.csv
## Usage
```python
import datapackage_registry
# get the default registry objects
registry = datapackage_registry.get()
# or pass in a config object to define a non-default backend endpoint
custom_config = {
'backend': 'https://mycustomconfig.com/registry.csv',
}
custom_registry = datapackage_registry.get(custom_config)
# registry now has an array of dicts, e.g.:
[{'id': 'base',
'schema': 'https://rawgit.com/dataprotocols/schemas/master/data-package.json',
'specification': 'http://dataprotocols.org/data-packages',
'title': 'Data Package'},
{'id': 'tabular',
'schema': 'https://rawgit.com/dataprotocols/schemas/master/tabular-data-package.json',
'specification': 'http://dataprotocols.org/tabular-data-package/',
'title': 'Tabular Data Package'}]
```
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
Built Distribution
Close
Hashes for datapackage-registry-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3159cbfdb0144a832530d6fc50fd6d9228384e0cd3e0cf4bb2f24032ec5e719 |
|
MD5 | ccea3a32f8d35b7565e0bb7cdc29e1dc |
|
BLAKE2b-256 | f763e8e921b0b9248e880218051a40970477ad5aabde50ed97d65fc1e6868c93 |
Close
Hashes for datapackage_registry-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 19304245fe9b31bb079bedaca57ff60b7db66d30925457579209e6f567f74d12 |
|
MD5 | 7f9b3caca8e5fac3d455f10842a55e85 |
|
BLAKE2b-256 | 988c8599659fadd1967af5c60ddb8b8437f118d40545b2e613fe1519a0c990d3 |