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

Note: this is work in progress, but I hope to soon make it available on pip / conda.

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.

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.1.tar.gz (14.2 kB view hashes)

Uploaded Source

Built Distribution

polars_upgrade-0.1.1-py3-none-any.whl (16.3 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