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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for polars_upgrade-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df53739cd54420670c436ccfb3f39fe08914decc7dfbce7d4eab3b0987e9c6c9 |
|
MD5 | 491bbbb706d47ca5875c419d8b0c87fe |
|
BLAKE2b-256 | 4c2fddb09adce7ca192c16045a8fd1b7f478d03ef875409b37cfaa6265270074 |