Skip to main content

polars-to-ibis

pypi docs

Convert Polars LazyFrames to Ibis unbound tables.

Polars and Ibis have similar APIs, but while Polars supports computation in-memory and on Polars Cloud, Ibis by itself does not handle computation: Instead it translates the dataframe expression into idiomatic SQL for a particular database.

Contributions

There are several ways to contribute. First, if you find polars_to_ibis useful, please let us know and we'll spend more time on this project. If polars_to_ibis doesn't work for you, we also want to know that! Please file an issue.

PRs that expand feature coverage are welcome. Please add a new scenarios to exercise new features, and run tests locally before submitting your PR.

If you have an idea that goes beyond just expanding coverage, please file an issue before beginning work, so we can make sure that your idea aligns with our roadmap.

Development

Getting Started

Install Rust and Cargo for the native plugin test, and make sure cargo is on your PATH.

$ git clone https://github.com/opendp/polars-to-ibis.git
$ cd polars-to-ibis
$ pip install uv
$ uv sync --group polars-1.36.1
$ uv run pre-commit install

Testing

In-memory databases are handled by python and pip, but other databases covered by the tests will require installation and startup. (If you don't want to install extra database engines right now, they can be skipped during test runs: uv run pytest -k 'not extra_install')

On MacOS we recommend:

$ uv run scripts/setup.sh

At this point, tests should pass for any supported dependency version, and code coverage should be complete (except blocks we explicitly ignore):

$ uv run --group polars-1.36.1 scripts/ci.sh
$ uv run --group polars-1.37.0 scripts/ci.sh

The debug.sh script may also be helpful: It runs tests step-wise with debug logging. Both debug.sh and ci.sh pass extra parameters through to pytest.

Documentation

To build the docs locally:

pdoc -o docs/ src/polars_to_ibis

The Github Pages docs site is updated automatically on pushes to main, so it may be ahead of the latest release.

Release

  • Make one last feature branch with the new version number in the name:
    • Run uv run scripts/changelog.py to update the CHANGELOG.md.
    • Review the updates and pull a couple highlights to the top.
    • uv version --bump minor, and add the new number at the top of the CHANGELOG.md.
    • Commit your changes, make a PR, and merge this branch to main.
  • Update main with the latest changes: git checkout main; git pull
  • Build: uv build
  • With ~/.pypirc in place, run uvx uv-publish.

Conventions

Branch names should be of the form NNNN-short-description, where NNNN is the issue number being addressed.

Metadata

Release files for polars_to_ibis 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for polars_to_ibis 0.4.0
File Size Uploaded Provenance Actions
polars_to_ibis-0.4.0.tar.gz 15.9 kB Without provenance Details for polars_to_ibis-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for polars_to_ibis 0.4.0
File Interpreter ABI Platform Actions
polars_to_ibis-0.4.0-py3-none-any.whl Python 3 none any Details for polars_to_ibis-0.4.0-py3-none-any.whl

Total release size: 34.8 kB

Release files / polars_to_ibis-0.4.0.tar.gz

Download URL polars_to_ibis-0.4.0.tar.gz
Size 15.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4b77848c3790f248b970dc128d38d452f220e8cd10551a4bf571f68d7d4d3751
BLAKE2b-256 checksum
How to use checksums
82259851a6667a6180d809db7863d6425fcb3ea1753291f70ecd3d867a06cff7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / polars_to_ibis-0.4.0-py3-none-any.whl

Download URL polars_to_ibis-0.4.0-py3-none-any.whl
Size 18.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ea0cf4ed57e60134df67f08c553fa6f9e8c9ff250e873e007aad67b417bc07c5
BLAKE2b-256 checksum
How to use checksums
5082383fd9703a6e843de4572ab5370afbc2a3648fd2e5b502d07d8e89d185af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for polars_to_ibis 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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page