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/lv/api-un-kodu-vardnicas/api

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

Dependencies: requests>=2.21.0

To install:

pip install pycspwrapper

To import:

from pycspwrapper import LVStat

For info on usage, see the included notebooks.

Changelog

News in version 0.2.0: Changed the behavior of .get_variables() to return the text/code values by default.

News in version 0.1.4: Caching info data while in the same location. Updated examples in Latvian and English.

News in version 0.1.3: Updated query generation code to use variable and value codes instead of text values.

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

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: 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.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycspwrapper-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 4.1 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.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c790c83f28e1d72532e16b6e77c928a89aed3916bfb554bc33900bbc248bd8cb
MD5 384eb28ff0febacc4db3966fad8579a0
BLAKE2b-256 1bb46846581967ebd7b762910a1974553a3081dbae771aabebd455ade0f5a7a8

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