Skip to main content

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

Project description

carve

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

Installation

pip install carve

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 carve 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.0.tar.gz (26.3 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.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for shardate-0.1.0.tar.gz
Algorithm Hash digest
SHA256 52e0fd9311b5aa9319273a54d8bfb020e34ca424320a047ab3477994aecef49e
MD5 c17136c7fd9f9cd4fc530a765cdc9ec0
BLAKE2b-256 31c52b58b6a6103eb563d2ff646f0d2e3f4eabb5370d1f2aee1d82e43af0bb5a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: shardate-0.1.0-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.12.10

File hashes

Hashes for shardate-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 86a04354979a928467b4f286c83be6354426f783cdb4fa0bd0a08b13a75c91e4
MD5 735f3c0ff7f8ac76e7e46ef46999d1a3
BLAKE2b-256 c50789c198e33b274fef0ec322dbba289e649a209b14e57a0cf3b4797d98ed92

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