/pyscbwrapper

Python wrapper for SCB's API

Primary LanguageJupyter NotebookMIT LicenseMIT

pyscbwrapper

Version 0.1.1

Python wrapper for Statistics Sweden's API, which can be found at http://www.scb.se/en/api.

News in version 0.1:
Compatible with changes in the API.
Includes a function for generating JSON queries from user-supplied input.
It is now possible to go up and down in the metadata tree more than one step at a time.

News in version 0.1.1:
Bugfixes: Variables with space in their names can now be accessed by removing the spaces.
New functionality: get_variables() returns a dict instead of only writing to the terminal.

Dependencies: requests>=2.21.0

To install:

pip install pyscbwrapper

To import:

from pyscbwrapper import SCB

For info on usage, see the included notebooks. For detailed usage examples, see the subfolder fetch-deso-data-examples.

Mentioned in Awesome Official Statistics