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
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.2.tar.gz
(14.5 kB
view hashes)
Built Distribution
Close
Hashes for polars_upgrade-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ea30b2d0f51afc44aa6fa4dd8b7bb54ab0827dfd1a8f1a489e8abc3bf95ed89 |
|
MD5 | dda81f6afa7c296d7050a138b76e69b3 |
|
BLAKE2b-256 | dfae102bcbe32fe2cbfd9c9cf5bf1d125e4e823285d61692c8682868c62f0430 |