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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for planframe-0.1.0.tar.gz
Algorithm Hash digest
SHA256 55fb8f178c2fa97fcc16cec75f6510b2224a277b502db418b0e0bdf15dedf872
MD5 19dd1b22811501357805c7d73d150bbb
BLAKE2b-256 89a2cb6a9a5b61dcfeed014cae82b3b0ec4f91bf50e33ca04bfb3709d1a91950

See more details on using hashes here.

File details

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

File metadata

  • Download URL: planframe-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 22.0 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5d2e1bff461b828c4575dc07bc13bc4d4a974b4e3536090f785b953ff3c7f11d
MD5 0727ef1ed71ba6fd0fbc52d4d843d4a1
BLAKE2b-256 c50cd52cd955590604cb58d3420eb0386841f57217d79696a3de23ba2771b640

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