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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file polars_upgrade-0.1.1.tar.gz.
File metadata
- Download URL: polars_upgrade-0.1.1.tar.gz
- Upload date:
- Size: 14.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a845a6c6559682ade5df77b5ed63b292461ea0b42ebbb9ad61d6aa036da49fe
|
|
| MD5 |
de1cf74f91d649dd2a7c1316dc35318d
|
|
| BLAKE2b-256 |
e8a11b4ac7cd990b699d53b0c8712792588a80fe3bfeb335d1569f662290c419
|
File details
Details for the file polars_upgrade-0.1.1-py3-none-any.whl.
File metadata
- Download URL: polars_upgrade-0.1.1-py3-none-any.whl
- Upload date:
- Size: 16.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
868977738a74fbb62b4532c4697c87f445e68938afdc0fb46009faac7aa2dcc4
|
|
| MD5 |
f3deb9f6d9aac134eb1d7fc1becf3cd7
|
|
| BLAKE2b-256 |
aa5f4d97f50e1d05d5fc4096b8f7b6a09b389b8ac8cc4b571a1c140acb498cf2
|