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. TODO: Update the notebooks for the Latvian stats.

Changelog

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pycspwrapper-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 4.0 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6c94eda73d0f65bf92dff15eadf2ae4c3f05862fe7e588cfca430b694ffd5df7
MD5 7a8573cf411554d66d2739d0520880da
BLAKE2b-256 a3192eb18b6af40f546ebe209644befcd6e276e3c39695e2e5fede1d0c4e7aa0

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