Datapkg API

How to use datapkg from code (python).

datapkg.load_package(spec_str)

Load Package specified by package spec spec_str.

Parameter:spec_str – a package spec.
Returns:Package.
datapkg.load_index(spec_str, all_index=False)

Load a datapkg.index.Index specified by datapkg.spec.Spec spec_str.

Parameters:
  • spec_str – a package spec.
  • all_index – hack param to state that spec is all about index (no package name).

Previous topic

Datapkg Manual

Next topic

Package ‘Specs’ (Specifications)

This Page