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-0.1.1.tar.gz (27.0 kB view details)

Uploaded Source

Built Distribution

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

shardate-0.1.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for shardate-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c999c2fbb98cc79ab47c4c002d6989ad7f8efb3790d7f8d985a41de0254b5477
MD5 09a289c12de9ec08535f6475957c0a5c
BLAKE2b-256 b1e0017e2210df7ad523ec67f5abb69deeca101eb7912218c85e4a2ea15461d4

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for shardate-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 38b3412073a0c1dbb61489b9fdee83cc32c5d5ac9399b856d79279c321917fec
MD5 6092a6db814785c86882679ae7958e34
BLAKE2b-256 e09c540bdba65f58f2ef0eda7df93f2f53561ffa0963f8f12e3455536589cd60

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