Experimental API for Ruff
Project description
ruff-api
Experimental Python API for Ruff
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
734a16bf9010cacbdff7da8ec434ffcedd5d78d62e55a73624977d5a69a2adb9
|
|
| MD5 |
34c90a389f2c70a1e2738eb771b2d2a8
|
|
| BLAKE2b-256 |
ef5f7d08679778cd1e6b12b5226db70e3531eb2171e1c7773c9a85da4f3f0093
|
Provenance
The following attestation bundles were made for ruff_api-0.2.1.tar.gz:
Publisher:
ci.yml on amyreese/ruff-api
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ruff_api-0.2.1.tar.gz -
Subject digest:
734a16bf9010cacbdff7da8ec434ffcedd5d78d62e55a73624977d5a69a2adb9 - Sigstore transparency entry: 763100314
- Sigstore integration time:
-
Permalink:
amyreese/ruff-api@4e2afc1d76947d2ce74c1559c6bc521ae04f7847 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/amyreese
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@4e2afc1d76947d2ce74c1559c6bc521ae04f7847 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ee043384ef45d8d4c98b8f1f6884af1fa481ff66879aa1a5a035d21cf431774
|
|
| MD5 |
5d457cfa146313bff95e770dd0c8fbbb
|
|
| BLAKE2b-256 |
5b8a450308f8956788175b8444b8f27e1814edc9d19323e98a10b28f934bab32
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ruff_api-0.2.1-cp314-cp314t-win_amd64.whl -
Subject digest:
4ee043384ef45d8d4c98b8f1f6884af1fa481ff66879aa1a5a035d21cf431774 - Sigstore transparency entry: 763100316
- Sigstore integration time:
-
Permalink:
amyreese/ruff-api@4e2afc1d76947d2ce74c1559c6bc521ae04f7847 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/amyreese
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@4e2afc1d76947d2ce74c1559c6bc521ae04f7847 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ruff_api-0.2.1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: ruff_api-0.2.1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 6.1 MB
- Tags: CPython 3.14t, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d90d361bc564e7b90f777dde0d6c94e94ed82e55799bbcb99a9067c4c3dcb7d
|
|
| MD5 |
03ecdbf83536031d192b897ed42edee0
|
|
| BLAKE2b-256 |
ead6adf6768a936687ff6be0abcb27e0daed6bb712ad6de02236ba604c459f41
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ruff_api-0.2.1-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
4d90d361bc564e7b90f777dde0d6c94e94ed82e55799bbcb99a9067c4c3dcb7d - Sigstore transparency entry: 763100317
- Sigstore integration time:
-
Permalink:
amyreese/ruff-api@4e2afc1d76947d2ce74c1559c6bc521ae04f7847 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/amyreese
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@4e2afc1d76947d2ce74c1559c6bc521ae04f7847 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ruff_api-0.2.1-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: ruff_api-0.2.1-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 6.0 MB
- Tags: CPython 3.14t, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd71af887e44fa32255b7a60ab67b948c7e18d44e86b89f4f475e3b87876a995
|
|
| MD5 |
dae1509a62e917e0850d5cee1b230ede
|
|
| BLAKE2b-256 |
78db15a59a0069dc944edfe03a6efc22de8551954a639662b4d7139e090a0bb3
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ruff_api-0.2.1-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl -
Subject digest:
fd71af887e44fa32255b7a60ab67b948c7e18d44e86b89f4f475e3b87876a995 - Sigstore transparency entry: 763100323
- Sigstore integration time:
-
Permalink:
amyreese/ruff-api@4e2afc1d76947d2ce74c1559c6bc521ae04f7847 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/amyreese
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@4e2afc1d76947d2ce74c1559c6bc521ae04f7847 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ruff_api-0.2.1-cp314-cp314t-macosx_11_0_arm64.whl.
File metadata
- Download URL: ruff_api-0.2.1-cp314-cp314t-macosx_11_0_arm64.whl
- Upload date:
- Size: 5.6 MB
- Tags: CPython 3.14t, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f8571a87873162ea9ea322158b55cec014f0628d99866c8f14812dba874c092
|
|
| MD5 |
8aaadb3b929a508a185bcfd25a8bb84a
|
|
| BLAKE2b-256 |
70a08394f89b220784730d08a8f149cd38c82a62c813a7b48a1bcafd228eb2e8
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ruff_api-0.2.1-cp314-cp314t-macosx_11_0_arm64.whl -
Subject digest:
2f8571a87873162ea9ea322158b55cec014f0628d99866c8f14812dba874c092 - Sigstore transparency entry: 763100324
- Sigstore integration time:
-
Permalink:
amyreese/ruff-api@4e2afc1d76947d2ce74c1559c6bc521ae04f7847 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/amyreese
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@4e2afc1d76947d2ce74c1559c6bc521ae04f7847 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ruff_api-0.2.1-cp314-cp314t-macosx_10_12_x86_64.whl.
File metadata
- Download URL: ruff_api-0.2.1-cp314-cp314t-macosx_10_12_x86_64.whl
- Upload date:
- Size: 5.7 MB
- Tags: CPython 3.14t, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71205bd58484a18bdf199e44f6ceeed25d9dfcb3db5b74813479196eb6be11c4
|
|
| MD5 |
56773352d3fc58e057bf30bf7c1d0c12
|
|
| BLAKE2b-256 |
ddcde7fd751acb5bf8e39f285ba3dc23666c2cca8f924a9f44b5959fe84a92e4
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ruff_api-0.2.1-cp314-cp314t-macosx_10_12_x86_64.whl -
Subject digest:
71205bd58484a18bdf199e44f6ceeed25d9dfcb3db5b74813479196eb6be11c4 - Sigstore transparency entry: 763100319
- Sigstore integration time:
-
Permalink:
amyreese/ruff-api@4e2afc1d76947d2ce74c1559c6bc521ae04f7847 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/amyreese
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@4e2afc1d76947d2ce74c1559c6bc521ae04f7847 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2dd6b2ec1ecee6bbe375ce22d2051e9799b62bffb4f1d32bfe7b6c71c9ad522
|
|
| MD5 |
9fb254fedf350a6f1c1e63d753ec1a4b
|
|
| BLAKE2b-256 |
985c6eb1ee012c5f5380ff5706db6a99c0f5c896f690026c92dfb1fd1f2eef8a
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ruff_api-0.2.1-cp39-abi3-win_amd64.whl -
Subject digest:
a2dd6b2ec1ecee6bbe375ce22d2051e9799b62bffb4f1d32bfe7b6c71c9ad522 - Sigstore transparency entry: 763100322
- Sigstore integration time:
-
Permalink:
amyreese/ruff-api@4e2afc1d76947d2ce74c1559c6bc521ae04f7847 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/amyreese
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@4e2afc1d76947d2ce74c1559c6bc521ae04f7847 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ruff_api-0.2.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: ruff_api-0.2.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 6.1 MB
- Tags: CPython 3.9+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4fc4eeed0f4e6bdcab9c55e0ccd5fb059f2c2f09a1df26a7a4bbdb53fdbb9905
|
|
| MD5 |
4f61c0f65b050b4ab2bbb0448d96f3bf
|
|
| BLAKE2b-256 |
11d72f545a58215720b6947e565552465df9d136f5686ae0f7c6355186c12baf
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ruff_api-0.2.1-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
4fc4eeed0f4e6bdcab9c55e0ccd5fb059f2c2f09a1df26a7a4bbdb53fdbb9905 - Sigstore transparency entry: 763100325
- Sigstore integration time:
-
Permalink:
amyreese/ruff-api@4e2afc1d76947d2ce74c1559c6bc521ae04f7847 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/amyreese
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@4e2afc1d76947d2ce74c1559c6bc521ae04f7847 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ruff_api-0.2.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: ruff_api-0.2.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 6.0 MB
- Tags: CPython 3.9+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c895f58e85789373850ca04a3e99f07674d0289512507ba9da663650c3d27e1
|
|
| MD5 |
d9e389d40cd8039723d057a51eb06090
|
|
| BLAKE2b-256 |
2b51571f5f03c95de7ea8cc82a10982c00e86240721bc35509333828ae635e0e
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ruff_api-0.2.1-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl -
Subject digest:
0c895f58e85789373850ca04a3e99f07674d0289512507ba9da663650c3d27e1 - Sigstore transparency entry: 763100315
- Sigstore integration time:
-
Permalink:
amyreese/ruff-api@4e2afc1d76947d2ce74c1559c6bc521ae04f7847 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/amyreese
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@4e2afc1d76947d2ce74c1559c6bc521ae04f7847 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ruff_api-0.2.1-cp39-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: ruff_api-0.2.1-cp39-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 5.6 MB
- Tags: CPython 3.9+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a55bec61edbb2ee79bd1296f3ff45ecca6b81badf3f9feae80b1e4f1eb56d16
|
|
| MD5 |
6d662baa914c91a2fc1615eec5540878
|
|
| BLAKE2b-256 |
661819524decd0512114b6772ea60348d16e8f63a775fea617579b9ed345c275
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ruff_api-0.2.1-cp39-abi3-macosx_11_0_arm64.whl -
Subject digest:
0a55bec61edbb2ee79bd1296f3ff45ecca6b81badf3f9feae80b1e4f1eb56d16 - Sigstore transparency entry: 763100318
- Sigstore integration time:
-
Permalink:
amyreese/ruff-api@4e2afc1d76947d2ce74c1559c6bc521ae04f7847 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/amyreese
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@4e2afc1d76947d2ce74c1559c6bc521ae04f7847 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ruff_api-0.2.1-cp39-abi3-macosx_10_12_x86_64.whl.
File metadata
- Download URL: ruff_api-0.2.1-cp39-abi3-macosx_10_12_x86_64.whl
- Upload date:
- Size: 5.7 MB
- Tags: CPython 3.9+, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57d456a7c1078fb7de9c128f36fd1c5012521e080d322c747c07f5879c3e7216
|
|
| MD5 |
84ec1d67d9951d9774fd988f84ed2e1b
|
|
| BLAKE2b-256 |
7291dec8c4b2fb7d72e8c517a973e2b52bf586dd26100e462caef023c2e407eb
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ruff_api-0.2.1-cp39-abi3-macosx_10_12_x86_64.whl -
Subject digest:
57d456a7c1078fb7de9c128f36fd1c5012521e080d322c747c07f5879c3e7216 - Sigstore transparency entry: 763100320
- Sigstore integration time:
-
Permalink:
amyreese/ruff-api@4e2afc1d76947d2ce74c1559c6bc521ae04f7847 -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/amyreese
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@4e2afc1d76947d2ce74c1559c6bc521ae04f7847 -
Trigger Event:
push
-
Statement type: