Skip to main content

PyPI CI

pandas-datapackage-reader

Easy loading of tabular data from Data Packages into Pandas DataFrames.

Installation

pip install pandas-datapackage-reader

Usage

from pandas_datapackage_reader import read_datapackage

# From GitHub repository
country_codes = read_datapackage("https://github.com/datasets/country-codes")

# From local directory
country_codes = read_datapackage("country-codes")

# Data Package with GeoJSON
geo_countries = read_datapackage("https://github.com/datasets/geo-countries")

Resource metadata from the Data Package is returned as a dictionary in the _metadata attribute.

country_codes._metadata

contains

{'format': 'csv',
  'name': 'country-codes',
  'path': 'data/country-codes.csv',
  'schema': {'fields': [{'description': 'Country or Area official Arabic short name from UN Statistics Divsion',
        'name': 'official_name_ar',
        'title': 'official name Arabic',
        'type': 'string'},
      {'description': 'Country or Area official Chinese short name from UN Statistics Divsion',
        'name': 'official_name_cn',
        'title': 'official name Chinese',
        'type': 'string'},
# ...

License

BSD-2-Clause, see LICENSE

Metadata

Release files for pandas-datapackage-reader 0.18.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 pandas-datapackage-reader 0.18.0
File Size Uploaded Provenance Actions
pandas-datapackage-reader-0.18.0.tar.gz 22.6 kB Without provenance Details for pandas-datapackage-reader-0.18.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pandas-datapackage-reader 0.18.0
File Interpreter ABI Platform Actions
pandas_datapackage_reader-0.18.0-py2.py3-none-any.whl Python 3, Python 2 none any Details for pandas_datapackage_reader-0.18.0-py2.py3-none-any.whl

Total release size: 28.2 kB

Release files / pandas-datapackage-reader-0.18.0.tar.gz

Download URL pandas-datapackage-reader-0.18.0.tar.gz
Size 22.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ced0bb44a9a703a67a956e3b0314238d48726b09ed9ae3ce140344561f900902
BLAKE2b-256 checksum
How to use checksums
84f30437587d461e64090dc1244c1b9c318353725249d292e9636ea5e1e9ca61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.3.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.5

Release files / pandas_datapackage_reader-0.18.0-py2.py3-none-any.whl

Download URL pandas_datapackage_reader-0.18.0-py2.py3-none-any.whl
Size 5.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
a4660b06f533ccc35eb2f9f7cefe52b9abb7da82f7e66ad5dc52ae1c85d13b1f
BLAKE2b-256 checksum
How to use checksums
b8decfe7ef4af7badf889f95026634abd0b4c858dca61a6ecd9f7c281b55edb1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.3.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.5

Security for pandas-datapackage-reader 0.18.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.

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