Skip to main content

Pxwebapi2 arrow

Project description

Pxwebapi arrow

PyPI Status Python Version License

Documentation Tests Coverage Quality Gate Status

pre-commit Black Ruff Poetry

Features

  • Fetch metadata for a table from any Pxweb 2 API, like Statistics Norways "Statistikkbanken" or Statistics Swedens "Statistikdatabasen"
  • Fetch data from a table, from a API with Parquet support.

Installation

You can install Pxwebapi arrow from PyPI. We recomend using a package manager like uv, poetry or pdm.

uv add ssb-pxapi2-arrow

Usage

Fetch metadata about a table

from pxwebapi import PxAPI, STATBANK_CONFIG

statbank = PxAPI(STATBANK_CONFIG)
meta = statbank.get_table_metadata(14216)
print(f"Table last updated: {meta.updated}")

Get data from the table

df = statbank.get_table(
    14216, value_codes={"ContentsCode": "Bosatte", "TettSted": "*", "Region": "*", "Tid": "*"}
)

Please see the Reference Guide for details.

Contributing

Contributions are very welcome. To learn more, see the Contributor Guide.

License

Distributed under the terms of the MIT license, Pxwebapi arrow is free and open source software.

Issues

If you encounter any problems, please file an issue along with a detailed description.

Credits

This project was generated from Statistics Norway's SSB PyPI Template.

Project details


Download files

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

Source Distribution

ssb_pxapi2_arrow-0.0.1.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

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

ssb_pxapi2_arrow-0.0.1-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

Details for the file ssb_pxapi2_arrow-0.0.1.tar.gz.

File metadata

  • Download URL: ssb_pxapi2_arrow-0.0.1.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for ssb_pxapi2_arrow-0.0.1.tar.gz
Algorithm Hash digest
SHA256 243cf897246c8da32b313205380b11cc441d06bd962fd343e5f8a19e3885d8fe
MD5 4e2bc06cd244937994ac2aade1f882d8
BLAKE2b-256 5ba60975d8ca959d70700c31eb713d7aae60e79f01f56c222e4b9ca26cbf2457

See more details on using hashes here.

Provenance

The following attestation bundles were made for ssb_pxapi2_arrow-0.0.1.tar.gz:

Publisher: release.yml on statisticsnorway/ssb-pxapi2-arrow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ssb_pxapi2_arrow-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ssb_pxapi2_arrow-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2918dea4db7eb41e319b34a4e0634f06cc2cccd1212accac29f0f0ae1ce98afc
MD5 427739e961899a14658d2e51ab68d177
BLAKE2b-256 b1282f2042cb77ab6d11f5062b87b47b808f4112d86d43871d6500dc73a05900

See more details on using hashes here.

Provenance

The following attestation bundles were made for ssb_pxapi2_arrow-0.0.1-py3-none-any.whl:

Publisher: release.yml on statisticsnorway/ssb-pxapi2-arrow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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