Skip to main content

pyscbwrapper

Version 0.1.1

Python wrapper for Statistics Sweden's API, which can be found at https://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.

News in version 0.1.2: Security fix: Updated API URL from HTTP to HTTPS to ensure secure communication with Statistics Sweden's API. This resolves issues with empty or invalid responses caused by using the insecure HTTP connection.

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

Release files for pyscbwrapper 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyscbwrapper 0.1.2
File Size Uploaded
pyscbwrapper-0.1.2.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyscbwrapper 0.1.2
File Interpreter ABI Platform
pyscbwrapper-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 7.8 kB

Release files / pyscbwrapper-0.1.2.tar.gz

Download URL pyscbwrapper-0.1.2.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
fed57b65fe9a4a76feea42089f2836dd0fc8ace45e90292d5f833a00d4446c07
BLAKE2b-256 checksum
How to use checksums
8a45ac2aa922515b178d0d4f1ccc6a85aa1269c4bba65f6d416accc619a384bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.13.2

Release files / pyscbwrapper-0.1.2-py3-none-any.whl

Download URL pyscbwrapper-0.1.2-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b9a92bccabce277d0da822c60207f0af0c310b96adf0655eb8cb81694b9c7d84
BLAKE2b-256 checksum
How to use checksums
5c8a70c911be0b926290adf6b77b46e117e12508d1be294ce05ea420e3ec15f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.13.2

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1

2 release files

0.0.3

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page