bearhouse
A toolkit for working date-partitioned Parquet data lakes.
Data Organization
Bearhouse expects data organized as date-partitioned Parquet files following this convention:
- File format:
{type}_{YYYYMMDD}.parquet - Auto-added column:
fn_date(type:Date) is automatically derived from the filename and added to every row
Example:
data/
├── events_20240101.parquet
├── events_20240102.parquet
├── metrics_20240101.parquet
└── metrics_20240102.parquet
Usage
Use bearhouse.execute() to run SQL queries directly against your Parquet files. The query's WHERE clause on the date column determines which files are loaded — only the relevant date range is read from disk.
import bearhouse
df = bearhouse.execute(
sql="SELECT * FROM events WHERE date >= '2024-01-01' AND date <= '2024-01-31'",
date_directory="/path/to/data"
)
It supports all standard SQL functionalities. The auto-added fn_date column is useful for joining tables across files from the same date:
SELECT e.id AS event_id, e.event_type, m.value_int, m.value_float, e.fn_date
FROM events e
JOIN metrics m ON e.id = m.id AND e.fn_date = m.fn_date
WHERE e.date BETWEEN '2026-03-01' AND '2026-03-02'
ORDER BY e.id
Supported date filter syntax
| Syntax | Example |
|---|---|
Range (>=, <=) |
WHERE date >= '2024-01-01' AND date <= '2024-03-31' |
Greater/less than (>, <) |
WHERE date > '2024-06-01' |
Exact date (=) |
WHERE date = '2024-12-25' |
BETWEEN |
WHERE date BETWEEN '2024-01-01' AND '2024-12-31' |
When no date bounds are specified, bearhouse defaults to 2000-01-01 through today.
Installation
pip install bearhouse
Requirements
Metadata
Release files for bearhouse 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| bearhouse-0.4.0.tar.gz | 2.6 MB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bearhouse-0.4.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.6 MB
Release files / bearhouse-0.4.0.tar.gz
| Download URL | bearhouse-0.4.0.tar.gz |
|---|---|
| Size | 2.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2c9c49e49076eb00f04fa41d0650c56e720fa3f8db5bb3792576339631eb7d70
|
|
BLAKE2b-256 checksum How to use checksums |
18333c1f0fecce47fdae3713b1d1e33c628fd88bcbbd0cd27d7aa810f73fc1d1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 8, 2026.
Transparency logRelease files / bearhouse-0.4.0-py3-none-any.whl
| Download URL | bearhouse-0.4.0-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0f6e84b35784d01ac9d1e23752c427c6ad42ce53eceba654e6229330dd7dbc96
|
|
BLAKE2b-256 checksum How to use checksums |
9d78ee9bab41ed0254d4a21f18bbaedf2d1185463a92bfccaebc6c7ffd8c45cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 8, 2026.
Transparency logSecurity for bearhouse 0.4.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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for bearhouse-0.4.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 8, 2026.
Transparency logA 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.