Pxwebapi2 arrow
Project description
Pxwebapi arrow
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
243cf897246c8da32b313205380b11cc441d06bd962fd343e5f8a19e3885d8fe
|
|
| MD5 |
4e2bc06cd244937994ac2aade1f882d8
|
|
| BLAKE2b-256 |
5ba60975d8ca959d70700c31eb713d7aae60e79f01f56c222e4b9ca26cbf2457
|
Provenance
The following attestation bundles were made for ssb_pxapi2_arrow-0.0.1.tar.gz:
Publisher:
release.yml on statisticsnorway/ssb-pxapi2-arrow
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ssb_pxapi2_arrow-0.0.1.tar.gz -
Subject digest:
243cf897246c8da32b313205380b11cc441d06bd962fd343e5f8a19e3885d8fe - Sigstore transparency entry: 2225763483
- Sigstore integration time:
-
Permalink:
statisticsnorway/ssb-pxapi2-arrow@2f9e5411cc49c57c45929330127e3454ef091392 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/statisticsnorway
-
Access:
internal
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2f9e5411cc49c57c45929330127e3454ef091392 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ssb_pxapi2_arrow-0.0.1-py3-none-any.whl.
File metadata
- Download URL: ssb_pxapi2_arrow-0.0.1-py3-none-any.whl
- Upload date:
- Size: 20.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2918dea4db7eb41e319b34a4e0634f06cc2cccd1212accac29f0f0ae1ce98afc
|
|
| MD5 |
427739e961899a14658d2e51ab68d177
|
|
| BLAKE2b-256 |
b1282f2042cb77ab6d11f5062b87b47b808f4112d86d43871d6500dc73a05900
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ssb_pxapi2_arrow-0.0.1-py3-none-any.whl -
Subject digest:
2918dea4db7eb41e319b34a4e0634f06cc2cccd1212accac29f0f0ae1ce98afc - Sigstore transparency entry: 2225763817
- Sigstore integration time:
-
Permalink:
statisticsnorway/ssb-pxapi2-arrow@2f9e5411cc49c57c45929330127e3454ef091392 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/statisticsnorway
-
Access:
internal
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2f9e5411cc49c57c45929330127e3454ef091392 -
Trigger Event:
push
-
Statement type: