Skip to main content

Safety-first refactoring CLI for Python and TypeScript (Python wrapper around the npm package)

Project description

refactron (Python wrapper)

This is a thin Python wrapper around the npm refactron package. It exists so users with a Python-first toolchain can pip install refactron and get the CLI on their PATH without manually installing Node.

Install

pip install refactron

Requires Node.js 18+ on your PATH. If refactron isn't already installed via npm, this wrapper will run npm install -g refactron on first use.

Usage

Identical to the npm package:

refactron analyze .
refactron run --apply
refactron document --apply

Full docs: https://docs.refactron.dev

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

refactron-0.2.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

refactron-0.2.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file refactron-0.2.0.tar.gz.

File metadata

  • Download URL: refactron-0.2.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for refactron-0.2.0.tar.gz
Algorithm Hash digest
SHA256 0ca36c8b70131808aedb8a364f55733a1d6a522f6c4529138250f211b010d35b
MD5 408f93ac830aeba28e9f2149d5a42ecd
BLAKE2b-256 064bb1480163eba67f9f9557b1046237e2577f317f42e810f1bddc4e0c5fe5f8

See more details on using hashes here.

Provenance

The following attestation bundles were made for refactron-0.2.0.tar.gz:

Publisher: release.yml on Refactron-ai/Refactron_Lib_TS

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file refactron-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: refactron-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for refactron-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b0aaf4ba90cceb0f285331406f42cb6415214e6d4407c4674390ac3985c8dbc7
MD5 cfe059b846af03ef69c0251ceba2cacd
BLAKE2b-256 1440ee95b5a3a1245a985ed6d68f13fbb40a5666a9fe47b1b0603aa3ec53241a

See more details on using hashes here.

Provenance

The following attestation bundles were made for refactron-0.2.0-py3-none-any.whl:

Publisher: release.yml on Refactron-ai/Refactron_Lib_TS

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page