openknowledge-archive / datapackage-registry-py

DEPRECATED: This project was superseded by https://github.com/datapackages/datapackage-py
https://github.com/datapackages/datapackage-py
MIT License
1 stars 1 forks source link

First class support for the official registry #12

Closed pwalsh closed 8 years ago

pwalsh commented 8 years ago

We have the first two options here, I'd like to introduce the 3rd, which is a simple flag to choose between the local cache and the official, live, remote registry over http.

# use the local cache of the official registry
registry = datapackage_registry.Registry()

# get any old registry
registry = datapackage_registry.Registry('http://someplace.com/my-registry.csv')

# work in front of the official registry instead of the local cache
registry = datapackage_registry.Registry(local=False)
vitorbaptista commented 8 years ago

Moved issue to https://github.com/datapackages/datapackage-py/issues/48