Skip to main content

refine

Polishing and improving codebases automatically

refine leverages the capabilities of libCST (Library for Concrete Syntax Trees), a Python library designed for parsing, manipulating, and generating Python code in a syntax-preserving way. It builds upon libCST's codemod module, which provides utilities for transforming code programmatically.

Key Differentiators

Chained Codemod Execution

refine enables running multiple codemod's in a single CLI execution, streamlining workflows compared to libCST's one-codemod-per-execution approach.

Priority Management

Codemods are applied in a predefined order based on priorities defined by the modules. This ensures automatic logical sequencing of transformations.

Streamlined Features

Single-Pass Efficiency

Chained execution minimizes redundant parsing and tree-building processes, improving efficiency for large-scale projects.

Focus on Developer Productivity

By reducing the need for multiple executions, refine enhances developer workflows, especially in CI/CD pipelines or batch processing.

Metadata

Release files for refine 0.15.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for refine 0.15.0
File Size Uploaded Provenance Actions
refine-0.15.0.tar.gz 4.5 MB With provenance Details for refine-0.15.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for refine 0.15.0
File Interpreter ABI Platform Actions
refine-0.15.0-py3-none-any.whl Python 3 none any Details for refine-0.15.0-py3-none-any.whl

Total release size: 4.5 MB

Release files / refine-0.15.0.tar.gz

Download URL refine-0.15.0.tar.gz
Size 4.5 MB
Tags Source
SHA-256 checksum
How to use checksums
c72bdff7669ab6980572447116aa3e98bbffb48f7a8baafb4eb2f2eecd31fe20
BLAKE2b-256 checksum
How to use checksums
4efc743a0842ef6c3cfdd56f284bebc887bc9e34ed60e7eb4259696c1008fce3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Release files / refine-0.15.0-py3-none-any.whl

Download URL refine-0.15.0-py3-none-any.whl
Size 37.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f40d54102edbe90de1de85e49b74aa0412c30735c99d3d1deaea578694f1ac8
BLAKE2b-256 checksum
How to use checksums
174c3dd7c1ab6a27cc045d9ad78bfe5ec5a8b9c11a197386a31e489944f562a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Security for refine 0.15.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for refine-0.15.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page