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.tar.gz (28.1 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-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: shardate-2025.9.8.tar.gz
  • Upload date:
  • Size: 28.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.6

File hashes

Hashes for shardate-2025.9.8.tar.gz
Algorithm Hash digest
SHA256 532885f9cb374781adefa5db027ab56d59ed073e5bd67eac26da09cd41b1ecd3
MD5 10f35e2503b768357021658a168b6711
BLAKE2b-256 646aff6156aec1030f247663ba7b28b4e1a7a1855c9ba887a51a261513cd2ad8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: shardate-2025.9.8-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.6

File hashes

Hashes for shardate-2025.9.8-py3-none-any.whl
Algorithm Hash digest
SHA256 866e47db064b9f2c7603fe99d5cf0ccfb29e5e486e2b5864485dfd6b8fda9110
MD5 9713ffb0dff297e2db92831084a52daa
BLAKE2b-256 eef90077df0668882d1efeb2b0fc4b90bd276e61d4ee3e71d4b9f51d11d0a47c

See more details on using hashes here.

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