Skip to main content

Experimental API for Ruff

Project description

ruff-api

Experimental Python API for Ruff

version license

NOTE: This is project is highly experimental and the API is likely to change. Pin your dependencies accordingly.

Install

$ pip install ruff-api

Usage

import ruff_api

Format the contents of a file in memory:

code = ruff_api.format_string(filename, code)

Sort imports in memory:

code = ruff_api.isort_string(filename, code)

License

ruff-api is copyright Amethyst Reese, and licensed under the MIT 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

ruff_api-0.2.1.tar.gz (35.7 kB view details)

Uploaded Source

Built Distributions

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

ruff_api-0.2.1-cp314-cp314t-win_amd64.whl (5.5 MB view details)

Uploaded CPython 3.14tWindows x86-64

ruff_api-0.2.1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.1 MB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.17+ x86-64

ruff_api-0.2.1-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (6.0 MB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.17+ ARM64

ruff_api-0.2.1-cp314-cp314t-macosx_11_0_arm64.whl (5.6 MB view details)

Uploaded CPython 3.14tmacOS 11.0+ ARM64

ruff_api-0.2.1-cp314-cp314t-macosx_10_12_x86_64.whl (5.7 MB view details)

Uploaded CPython 3.14tmacOS 10.12+ x86-64

ruff_api-0.2.1-cp39-abi3-win_amd64.whl (5.5 MB view details)

Uploaded CPython 3.9+Windows x86-64

ruff_api-0.2.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.1 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ x86-64

ruff_api-0.2.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (6.0 MB view details)

Uploaded CPython 3.9+manylinux: glibc 2.17+ ARM64

ruff_api-0.2.1-cp39-abi3-macosx_11_0_arm64.whl (5.6 MB view details)

Uploaded CPython 3.9+macOS 11.0+ ARM64

ruff_api-0.2.1-cp39-abi3-macosx_10_12_x86_64.whl (5.7 MB view details)

Uploaded CPython 3.9+macOS 10.12+ x86-64

File details

Details for the file ruff_api-0.2.1.tar.gz.

File metadata

  • Download URL: ruff_api-0.2.1.tar.gz
  • Upload date:
  • Size: 35.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ruff_api-0.2.1.tar.gz
Algorithm Hash digest
SHA256 734a16bf9010cacbdff7da8ec434ffcedd5d78d62e55a73624977d5a69a2adb9
MD5 34c90a389f2c70a1e2738eb771b2d2a8
BLAKE2b-256 ef5f7d08679778cd1e6b12b5226db70e3531eb2171e1c7773c9a85da4f3f0093

See more details on using hashes here.

Provenance

The following attestation bundles were made for ruff_api-0.2.1.tar.gz:

Publisher: ci.yml on amyreese/ruff-api

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

File details

Details for the file ruff_api-0.2.1-cp314-cp314t-win_amd64.whl.

File metadata

  • Download URL: ruff_api-0.2.1-cp314-cp314t-win_amd64.whl
  • Upload date:
  • Size: 5.5 MB
  • Tags: CPython 3.14t, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ruff_api-0.2.1-cp314-cp314t-win_amd64.whl
Algorithm Hash digest
SHA256 4ee043384ef45d8d4c98b8f1f6884af1fa481ff66879aa1a5a035d21cf431774
MD5 5d457cfa146313bff95e770dd0c8fbbb
BLAKE2b-256 5b8a450308f8956788175b8444b8f27e1814edc9d19323e98a10b28f934bab32

See more details on using hashes here.

Provenance

The following attestation bundles were made for ruff_api-0.2.1-cp314-cp314t-win_amd64.whl:

Publisher: ci.yml on amyreese/ruff-api

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

File details

Details for the file ruff_api-0.2.1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ruff_api-0.2.1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4d90d361bc564e7b90f777dde0d6c94e94ed82e55799bbcb99a9067c4c3dcb7d
MD5 03ecdbf83536031d192b897ed42edee0
BLAKE2b-256 ead6adf6768a936687ff6be0abcb27e0daed6bb712ad6de02236ba604c459f41

See more details on using hashes here.

Provenance

The following attestation bundles were made for ruff_api-0.2.1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: ci.yml on amyreese/ruff-api

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

File details

Details for the file ruff_api-0.2.1-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for ruff_api-0.2.1-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 fd71af887e44fa32255b7a60ab67b948c7e18d44e86b89f4f475e3b87876a995
MD5 dae1509a62e917e0850d5cee1b230ede
BLAKE2b-256 78db15a59a0069dc944edfe03a6efc22de8551954a639662b4d7139e090a0bb3

See more details on using hashes here.

Provenance

The following attestation bundles were made for ruff_api-0.2.1-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: ci.yml on amyreese/ruff-api

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

File details

Details for the file ruff_api-0.2.1-cp314-cp314t-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ruff_api-0.2.1-cp314-cp314t-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2f8571a87873162ea9ea322158b55cec014f0628d99866c8f14812dba874c092
MD5 8aaadb3b929a508a185bcfd25a8bb84a
BLAKE2b-256 70a08394f89b220784730d08a8f149cd38c82a62c813a7b48a1bcafd228eb2e8

See more details on using hashes here.

Provenance

The following attestation bundles were made for ruff_api-0.2.1-cp314-cp314t-macosx_11_0_arm64.whl:

Publisher: ci.yml on amyreese/ruff-api

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

File details

Details for the file ruff_api-0.2.1-cp314-cp314t-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for ruff_api-0.2.1-cp314-cp314t-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 71205bd58484a18bdf199e44f6ceeed25d9dfcb3db5b74813479196eb6be11c4
MD5 56773352d3fc58e057bf30bf7c1d0c12
BLAKE2b-256 ddcde7fd751acb5bf8e39f285ba3dc23666c2cca8f924a9f44b5959fe84a92e4

See more details on using hashes here.

Provenance

The following attestation bundles were made for ruff_api-0.2.1-cp314-cp314t-macosx_10_12_x86_64.whl:

Publisher: ci.yml on amyreese/ruff-api

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

File details

Details for the file ruff_api-0.2.1-cp39-abi3-win_amd64.whl.

File metadata

  • Download URL: ruff_api-0.2.1-cp39-abi3-win_amd64.whl
  • Upload date:
  • Size: 5.5 MB
  • Tags: CPython 3.9+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ruff_api-0.2.1-cp39-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 a2dd6b2ec1ecee6bbe375ce22d2051e9799b62bffb4f1d32bfe7b6c71c9ad522
MD5 9fb254fedf350a6f1c1e63d753ec1a4b
BLAKE2b-256 985c6eb1ee012c5f5380ff5706db6a99c0f5c896f690026c92dfb1fd1f2eef8a

See more details on using hashes here.

Provenance

The following attestation bundles were made for ruff_api-0.2.1-cp39-abi3-win_amd64.whl:

Publisher: ci.yml on amyreese/ruff-api

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

File details

Details for the file ruff_api-0.2.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for ruff_api-0.2.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4fc4eeed0f4e6bdcab9c55e0ccd5fb059f2c2f09a1df26a7a4bbdb53fdbb9905
MD5 4f61c0f65b050b4ab2bbb0448d96f3bf
BLAKE2b-256 11d72f545a58215720b6947e565552465df9d136f5686ae0f7c6355186c12baf

See more details on using hashes here.

Provenance

The following attestation bundles were made for ruff_api-0.2.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: ci.yml on amyreese/ruff-api

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

File details

Details for the file ruff_api-0.2.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for ruff_api-0.2.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 0c895f58e85789373850ca04a3e99f07674d0289512507ba9da663650c3d27e1
MD5 d9e389d40cd8039723d057a51eb06090
BLAKE2b-256 2b51571f5f03c95de7ea8cc82a10982c00e86240721bc35509333828ae635e0e

See more details on using hashes here.

Provenance

The following attestation bundles were made for ruff_api-0.2.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: ci.yml on amyreese/ruff-api

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

File details

Details for the file ruff_api-0.2.1-cp39-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ruff_api-0.2.1-cp39-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0a55bec61edbb2ee79bd1296f3ff45ecca6b81badf3f9feae80b1e4f1eb56d16
MD5 6d662baa914c91a2fc1615eec5540878
BLAKE2b-256 661819524decd0512114b6772ea60348d16e8f63a775fea617579b9ed345c275

See more details on using hashes here.

Provenance

The following attestation bundles were made for ruff_api-0.2.1-cp39-abi3-macosx_11_0_arm64.whl:

Publisher: ci.yml on amyreese/ruff-api

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

File details

Details for the file ruff_api-0.2.1-cp39-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for ruff_api-0.2.1-cp39-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 57d456a7c1078fb7de9c128f36fd1c5012521e080d322c747c07f5879c3e7216
MD5 84ec1d67d9951d9774fd988f84ed2e1b
BLAKE2b-256 7291dec8c4b2fb7d72e8c517a973e2b52bf586dd26100e462caef023c2e407eb

See more details on using hashes here.

Provenance

The following attestation bundles were made for ruff_api-0.2.1-cp39-abi3-macosx_10_12_x86_64.whl:

Publisher: ci.yml on amyreese/ruff-api

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