Skip to main content

(DEPRECATED) A Python library for working with a Data Package Registry.

Project description

**This project is **DEPRECATED**. You should use
<> instead. This repository is
just for historical purposes.**


A Python library for working with a Data Package Registry.

It comes with a cached version of the registry and schemas from


import datapackage_registry

# get the default registry objects
registry = datapackage_registry.Registry()

# see the available profiles in the registry
# {
# 'base': {
# 'id': 'base',
# 'schema': '',
# 'specification': '',
# 'title': 'Data Package'
# },
# 'tabular': {
# 'id': 'tabular',
# 'schema': '',
# 'specification': '',
# 'title': 'Tabular Data Package'
# }
# }

# get a profile by its id
base_profile = registry.get('base')

If you’d like to use a custom registry, you can pass its URL or local
path to the `Registry()` constructor, as in:

import datapackage_registry

registry = datapackage_registry.Registry('')

If you’d like to get a schema that's not in the registry, you can pass its URL
or local path to `Registry().get_external()` method, as in:

import datapackage_registry
registry = datapackage_registry.Registry()

schema = registry.get_external('')
except datapackage_registry.exceptions.DataPackageRegistryException:
pass # handle error

Developer notes

These notes are intended to help people that want to contribute to this
package itself. If you just want to use it, you can safely ignore this.

### Updating the local schemas cache

We cache the schemas from <>
using git-subtree. To update it, use:

git subtree pull --prefix datapackage_registry/schemas master --squash

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for datapackage-registry, version 0.5.0
Filename, size File type Python version Upload date Hashes
Filename, size datapackage-registry-0.5.0.tar.gz (9.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page