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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file polars_upgrade-0.1.3.tar.gz.

File metadata

  • Download URL: polars_upgrade-0.1.3.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for polars_upgrade-0.1.3.tar.gz
Algorithm Hash digest
SHA256 cef1147a2a19a7f14d13fbaed9d4cf2e93d4aef1cd0cd6003132ef3e25b364fc
MD5 a4de55acc462aea0733955ba03a419e3
BLAKE2b-256 93edc63acdf007dfd11c0cfdbac149f103cc9ba4d5d77d965600b47714d641d0

See more details on using hashes here.

Provenance

File details

Details for the file polars_upgrade-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for polars_upgrade-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 df53739cd54420670c436ccfb3f39fe08914decc7dfbce7d4eab3b0987e9c6c9
MD5 491bbbb706d47ca5875c419d8b0c87fe
BLAKE2b-256 4c2fddb09adce7ca192c16045a8fd1b7f478d03ef875409b37cfaa6265270074

See more details on using hashes here.

Provenance

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