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.5.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: polars_upgrade-0.1.5.tar.gz
  • Upload date:
  • Size: 14.8 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.5.tar.gz
Algorithm Hash digest
SHA256 80bb1906325ad45ab0d3095894dc3b93952dd7e47e9a8784cc46688f6c6b65f0
MD5 7eb3fabab0f113992992de29196dd314
BLAKE2b-256 cc6fa0333289ef4420737762331f04a513ba329441de8f29d8110ab960d064da

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for polars_upgrade-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 2e5816652a1d9e8dee8ec8315c173fc6796be2a7e29502edad3f1bb2d076b144
MD5 40a31f5b7b9228f452f0b7f92cad3a4a
BLAKE2b-256 734c4776856a09beb61de7f1a4544c24c502e19a5e0576ad4179ad3fe31a733d

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