Skip to main content

PyKolada

A Python wrapper for the statistical API Kolada.

Overview

This Python package provides a lightweight wrapper for the Kolada API, which allows users to access and interact with key performance indicators (KPIs) for Swedish municipalities and organizational units. The Kolada database, maintained by RKA (Rådet för kommunal analys), offers a rich set of data, and this wrapper simplifies the process of querying and retrieving this information.

Features

  • Access to various endpoints like KPI, KPI groups, municipalities, municipality groups, and organizational units.
  • Support for querying data based on different parameters such as ID, title, description, operating area, year, etc.
  • Handling of pagination to fetch all relevant data.
  • Customizable queries with support for filtering and specifying primary keys.

Installation

This package requires Python 3.8 or higher. You can install it using pip:

pip install pykolada

Usage

Importing the Module

import pykolada

Making Queries

You can make queries to different endpoints. For example, to query KPI data:

kpi_data = pykolada.get_kpi(id='some_id', title='some_title')

Endpoints

  • kpi
  • kpi_groups
  • municipality
  • municipality_groups
  • ou
  • data
  • oudata

Each endpoint supports different parameters for querying. Please refer to the documentation for detailed information.

Documentation and Examples

Planned Features

  • Optional caching of data.
  • Support for outputting data in CSV format (currently only original JSON is supported).
  • Usage of additional custom filters that can be applied after the data has been retrieved.
  • Support for the from_date parameter (limiting results data published after a certain date).

License

MIT License


Metadata

Release files for pykolada 1.0.0

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

Source distribution (sdist)

Source distribution for pykolada 1.0.0
File Size Uploaded Provenance
pykolada-1.0.0.tar.gz 6.7 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 13.2 kB

Release files / pykolada-1.0.0.tar.gz

Download URL pykolada-1.0.0.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
699ebd9236f4a44d8982f100c9f3938b4a1aff41ccc73dff8dc654acc2dfb82d
BLAKE2b-256 checksum
How to use checksums
8b784a59eebc53f1d15ff6743535d858c291000672ee698ecdf0d1db8ebc0205
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Release files / pykolada-1.0.0-py3-none-any.whl

Download URL pykolada-1.0.0-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4018f153039d0cfd96baa85214b02db9e59b2350fc1abeea12f05655ffb9ceb0
BLAKE2b-256 checksum
How to use checksums
7f359d5523354bb4b12e2a583802576264777f13e4841e3e0e4be4b2891014e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.7

Security for pykolada 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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