Skip to main content

Automatically upgrade Polars code to the latest version.

Project description

polars-upgrade

Automatically upgrade your Polars code so it's compatible with future versions.

Installation

pip install -U polars-upgrade

Usage

Suppose you have a codebase which works with, say, Polars 0.18.4. You'd like to upgrade it to the latest syntax, so that you're no longer using deprecated method names.

All you need to do is:

polars-upgrade file.py --current-version=0.18.4

and polars-upgrade will automatically upgrade file.py to use the newer Polars syntax.

You can also pass a directory, e.g.

polars-upgrade src --current-version=0.18.4

Notes

This work is derivative of pyupgrade - many parts have been lifted verbatim. As required, I've included pyupgrade's license.

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

polars_upgrade-0.1.3.tar.gz (14.5 kB view hashes)

Uploaded Source

Built Distribution

polars_upgrade-0.1.3-py3-none-any.whl (16.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page