Skip to main content

Core typed relational planning layer for Python DataFrames.

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

planframe

Core package for PlanFrame (typed planning layer). Import as planframe.

What you get

  • planframe.Frame: immutable, schema-aware transformation plan (always lazy)
  • planframe.expr: typed expression IR (col, lit, arithmetic/compare/boolean ops, coalesce, if_else, etc.)
  • planframe.schema: schema reflection (dataclass + Pydantic) and materialization

Note on backends

planframe is backend-agnostic. It does not execute anything until collect() (even for eager backends). To execute plans you need an adapter package (e.g. planframe-polars).

Typing

PlanFrame includes py.typed plus generated stubs (notably planframe/frame.pyi) to improve static typing in editors and Pyright.

If you modify the Frame API, regenerate stubs from the repo root:

python scripts/generate_typing_stubs.py
python scripts/generate_typing_stubs.py --check

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

planframe-0.2.0.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

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

planframe-0.2.0-py3-none-any.whl (23.8 kB view details)

Uploaded Python 3

File details

Details for the file planframe-0.2.0.tar.gz.

File metadata

  • Download URL: planframe-0.2.0.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.18

File hashes

Hashes for planframe-0.2.0.tar.gz
Algorithm Hash digest
SHA256 29721113c86bce93b07aacd3ac1332aaeeef80736f4ec8930daa4cbdd37a7146
MD5 073d75985c0876954c0bf642dee1b6bc
BLAKE2b-256 83ab55a002bf6067f40925cc6c2c91f1fe0515074b03ac2081ed14ffae3f6999

See more details on using hashes here.

File details

Details for the file planframe-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: planframe-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 23.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.18

File hashes

Hashes for planframe-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4c80d46a43ee1a626b907e25a4b157a787a11a962aa9a7901e79a1b9b694adbd
MD5 abe20ac414442f75a82d49f5f8d1520e
BLAKE2b-256 41da134052aba11f95add16840671063695953935caf3184d9b42bd941a2288e

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