Skip to main content

Python wrapper for Latvian official statistics portal API: https://stat.gov.lv/en/api-and-code-list-registry.

Project description

pycspwrapper

Version 0.1.1

Python wrapper for Latvian official statistics portal API: https://stat.gov.lv/en/api-and-code-list-registry

Forked from https://github.com/kirajcg/pyscbwrapper/, replacing the Sweden API endpoints with the Latvian Central Statistics Bureau ones.

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 pycspwrapper

To import:

from pycspwrapper import LVStat

For info on usage, see the included notebooks. TODO: Update the notebooks for the Latvian stats.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pycspwrapper-0.1.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file pycspwrapper-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pycspwrapper-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for pycspwrapper-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 894bf95dbe239279d0ad2fed1d5538665ae1e0859af8ce3943defb47481e15d8
MD5 ac1897c54dcd7a8ec598406a9387cdae
BLAKE2b-256 64f11b3e7bc2a2e644e5ecffe74bd2c77cd9a861b61bac09bab91d0ca2de5de5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page