Skip to main content

A lightweight Python library for efficiently reading year-month-day partitioned Parquet datasets.

Project description

shardate

A lightweight Python library for efficiently reading year-month-day partitioned Parquet datasets with PySpark.

Installation

pip install shardate

Features

  • Read Parquet data partitioned by year/month/day structure
  • Efficient date-based filtering
  • Built on PySpark for scalable data processing
  • Simple and intuitive API

Quick Start

from datetime import date
from shardate import read_by_date, read_between, read_by_dates

# Read data for a specific date
df = read_by_date("/path/to/data", date(2025, 1, 15))

# Read data between two dates
df = read_between("/path/to/data", date(2025, 1, 1), date(2025, 1, 31))

# Read data for specific dates
dates = [date(2025, 1, 1), date(2025, 1, 15), date(2025, 1, 31)]
df = read_by_dates("/path/to/data", dates)

Requirements

  • Python 3.12+
  • PySpark 4.0+

License

MIT

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

shardate-2025.9.8.1.tar.gz (28.2 kB view details)

Uploaded Source

Built Distribution

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

shardate-2025.9.8.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file shardate-2025.9.8.1.tar.gz.

File metadata

  • Download URL: shardate-2025.9.8.1.tar.gz
  • Upload date:
  • Size: 28.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for shardate-2025.9.8.1.tar.gz
Algorithm Hash digest
SHA256 cd958a341b55f1a33c0fa40a1567d13ee482393065e04c6c72d6715eb414d766
MD5 fce6be5a1fe0b1a50ca50f60fa71fc12
BLAKE2b-256 26b50da6e69d0934a17c7966fb0e9d4771f2e619129d4d4cfc1c74a3f3c550c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for shardate-2025.9.8.1.tar.gz:

Publisher: release.yml on yoichiojima-2/shardate

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

File details

Details for the file shardate-2025.9.8.1-py3-none-any.whl.

File metadata

  • Download URL: shardate-2025.9.8.1-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for shardate-2025.9.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dd6894ecf4597747c558156783897b13c9a04bb9d71026a9a016bdf0f9f6327c
MD5 d4c3807643b3ec7e072f2fc0adf51e95
BLAKE2b-256 b948a3023a13ef93b3979bddafd1b8e9c0a301cd5cbe3cebed60702d7cbc86f8

See more details on using hashes here.

Provenance

The following attestation bundles were made for shardate-2025.9.8.1-py3-none-any.whl:

Publisher: release.yml on yoichiojima-2/shardate

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