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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a2a650dab610edd60a60951969a6bbfb368969d041eaa3df35e295dd7c9a2df |
|
MD5 | e73e0883daca9a9f70da483fffa72620 |
|
BLAKE2b-256 | ab562e2185a2cf9f8bff644f8e16f9916821e5a39b93b7df853f96267c0f8a27 |
Close
Hashes for datapackage_registry-0.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd99df0e91f2d139d81e1f60704dbbef66354d8cfd2ebe06007d7f3363b9672d |
|
MD5 | d72327daa1ca9b40c1df9e3d3bbedafa |
|
BLAKE2b-256 | c68ca94a1ea60d7c5f65cf399662f2d4b5fea956fd860093d98bff18febf8140 |