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.

News in version 0.1.2: Fixed the module name to avoid conflicts with the original version.

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.2-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycspwrapper-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.3 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e909b7a429eae36c01880c0632b7dcc1e9018409a4683a40f9c21c4cb9893579
MD5 5e1997f9a2a8223553b993a428fea1b5
BLAKE2b-256 e4d7bdfb33ec29879f11e13f9b039ada1160d86975b458fce5e9d159ae9e3767

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