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
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.1.0.tar.gz
(31.0 kB
view hashes)
Built Distributions
Close
Hashes for ruff_api-0.1.0-cp313-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13820aab9fffa0a5de68969c6f113d1fef01bcbacb34d2bbe3e4c13e9897a608 |
|
MD5 | 471974d9fb2cdeb0db53c988f690b558 |
|
BLAKE2b-256 | b7abc3c811d56a2cda950304d014d47b5a94bced3a8e523bf3099e885f718f5f |
Close
Hashes for ruff_api-0.1.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74c6697a9acf6bed3d7212e57c6ae659bd067455b40ed9daf9ce6cee6063e8bc |
|
MD5 | 52f2b751b9f7117317922cefb1914ec6 |
|
BLAKE2b-256 | f02a2311e22dd2f527f8856d44240eaa797716bdca46c447670add9f7b27ca93 |
Close
Hashes for ruff_api-0.1.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 039401116e9db336319d20c20a00efe8a5277d42a1d970ad4cdf5fea528974b7 |
|
MD5 | 7f9d1eb47c826002741b4f8c1692a497 |
|
BLAKE2b-256 | fdb532985000a866378ba55af4522c6408cbd9678ad13510a0d3344e248b0c30 |
Close
Hashes for ruff_api-0.1.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fd6e947c666f847c2df9e998b88f8f215f3a47a60b9d37127f9382c256a1202 |
|
MD5 | 29d69ce6b7c344e7b241e697b647b913 |
|
BLAKE2b-256 | 8aab03ac4b720fab232948e482d30a9602b6c561d8e5a97d4395d444dfcf3083 |
Close
Hashes for ruff_api-0.1.0-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87f69b42f4316600d62f1c3ee4a5001d147509a84c57a86b578bd4846f8ff45d |
|
MD5 | d3d19ef4c0930875b666cc5e8f1505a9 |
|
BLAKE2b-256 | 37ff551be476ee9ee0f64af2b02a2cda68e8b58cfd6c5d1b0cdfde6297d38edc |
Close
Hashes for ruff_api-0.1.0-cp312-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 647456e1d24adf2809b120fb299e2908a59da789462c30eefd917ac8251e7643 |
|
MD5 | a866baa00a210420f557fdb356286e40 |
|
BLAKE2b-256 | 242a22560db538635f98046e0d338ead76d66c5019250060eb8964156c9eef01 |
Close
Hashes for ruff_api-0.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4412c2e9fccefe33ff5f8c99749995e9d56a324d2d107c805c8a1d9e5c9e229a |
|
MD5 | 0acb87d0cc7d426b2c1406f392f2cfd7 |
|
BLAKE2b-256 | 195dfa705a70d1a338751df15a1a7b30efab8ac86e89207b4977ff065ae6c01b |
Close
Hashes for ruff_api-0.1.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a144747e3583cf476f1509f2733969fff3dbf73b08725aa4fdf7a385f3d2238b |
|
MD5 | 6031e2d238fddb6f251a445a54f95fdd |
|
BLAKE2b-256 | 4791e04c66fc6b02a0c2cea519f9d417bbf8feea67f1f438ffc2ce5c99fcb4ea |
Close
Hashes for ruff_api-0.1.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9eeb2183e37d14ef5c24c0413efcc4f8d646c647d42bcde6722a139f5d313ceb |
|
MD5 | 799ab5303020cd403960ce6400b87d55 |
|
BLAKE2b-256 | 61474b3ebbb24bed476136bca34ac51451ed9e5c90d36e96289193f353121ab7 |
Close
Hashes for ruff_api-0.1.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a3826d8b88ccd9e3a307de204303d416549c01600e0d0a6d7e083f06ea7626a |
|
MD5 | 8cc5538e09e5db48dbfa798c11fd2460 |
|
BLAKE2b-256 | bbefdda4aba0c637ea4f108498a4b625fe4dde6e42586be17821bd900c43be44 |
Close
Hashes for ruff_api-0.1.0-cp311-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 091fdd14bb256427b2eb72b719cf3df1dad58446ce08053238da1d3e0a64e8bd |
|
MD5 | 4a28ee29f179fd88db0126df834bed7e |
|
BLAKE2b-256 | eba211dbd2b4757061faaa6472f9ea49b888f89c03931d84527da594fdcff17b |
Close
Hashes for ruff_api-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f22137f4547ee0644b235b4ba9516a1cd549755fc22ce161c10abc516decefa9 |
|
MD5 | 1b64289e04f38db90ea9d0422ef148e2 |
|
BLAKE2b-256 | a5eba545e2c08c65becb8f5f562933208c36998d78dbd403952aca5ddf32829e |
Close
Hashes for ruff_api-0.1.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 647bc419cc56aa4ddc11cd145c9048f9d97527b5dce4e31d06ffef6494a39c65 |
|
MD5 | 57bc4c86ce7d04d5d96d8c2fcb356e33 |
|
BLAKE2b-256 | 17ce53c501b232a946a6d48b655b4e4ceb1aeeb09e5e020252f2d67b35bf327a |
Close
Hashes for ruff_api-0.1.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6d122093ef95d58ebf9ad7ed287c63534eb9c3110f1ea10a1e8bf0cb75824bb |
|
MD5 | 5a7624ca9b18257d7ce1caa1b0014921 |
|
BLAKE2b-256 | 30db53036d387a9040244a270a475125293309b5250cce4dbca6d9634311e811 |
Close
Hashes for ruff_api-0.1.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5a336489eca057bf4c2ef170a6848a4d8f6cbba40c583fad2708f0fc2626af5d |
|
MD5 | 0bd5f5ca5271ad5744744e8d8f4f9a33 |
|
BLAKE2b-256 | 22a0e674c2153ddd6861b11cf54d9be8fb536d0acbcb6324d7376f7a356be80c |
Close
Hashes for ruff_api-0.1.0-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b9e1f00cb46edbdbe6f96e685ac4c0f95e202fae6950066c936e34dbddf2290 |
|
MD5 | 291c452f8c17befda58f4cb5519d11b5 |
|
BLAKE2b-256 | e709e6ef93c3606807b1207318c3f7726cc7905f6253e9abc34cea32c2e90d8b |
Close
Hashes for ruff_api-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29c70028542b4008557e31bcfea9494da1ecf19e99656692b34ebcaae9d98f43 |
|
MD5 | 264142ad47fcf1781fdb72d617603333 |
|
BLAKE2b-256 | bff5258896061aaba8e5f5d2feb03fd5f0f0b73fb369f3a8ab85da5a2ba3302e |
Close
Hashes for ruff_api-0.1.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ec868721932df4fd1e7bcd90c5302e59001234a3e2c03ed4f0eaf938cf5b798 |
|
MD5 | 6b3f437869e34dab909f3f7b469a0488 |
|
BLAKE2b-256 | 8ae59b28d315772034aa7a9058bbcf7f4099182f0a4d3c343c1e74c14e40f1d0 |
Close
Hashes for ruff_api-0.1.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e1ae962e331477e0c4b6c0ce7adc11081d911223ce1c25c48df231741c58699 |
|
MD5 | d500468a1258de588592cfe02c1d2516 |
|
BLAKE2b-256 | 3b768d6795062b15aac71b3df8e31a51ab16f17e6c3b03dfcf95453d8d65d91f |
Close
Hashes for ruff_api-0.1.0-cp310-cp310-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 607541be57a2e430ac9bd5bfbab39a2e33515947f2e40f3f1ca8aff6964d04b5 |
|
MD5 | a315e30825d308ab2e911ca50a6b1088 |
|
BLAKE2b-256 | 461188eccc1b2c400482738d291b37ca6165c50306a49aed65841f497386ec03 |
Close
Hashes for ruff_api-0.1.0-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9c17ce23f995b07977c1b7a7720ccff6c4b8c273009c6cc0ffc6819692e44fb6 |
|
MD5 | 69c75b2bcda1bad78d6f2c2429059d34 |
|
BLAKE2b-256 | e673c93554b33c95e68db61b7ad39d6ea6d10560143a60f2e0154c53074243fc |
Close
Hashes for ruff_api-0.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1ef6a9ade72e83088de8e2c36918c1f8668a53fba521a4617d0f8b1b8531262 |
|
MD5 | bbc1150cbeffef50a9a3766e3974e72d |
|
BLAKE2b-256 | 68aef0c53dd332f359974b9e3a4aa7ebfa2c8dfc2cf9fc8ab750da912bb28863 |
Close
Hashes for ruff_api-0.1.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42ff87c5273ec3a1797353b0f6bc6384dfbc8f67ce2a03a1bc11c6a5d5ea47c9 |
|
MD5 | c4983df098bfcb5ca8e80f1968732853 |
|
BLAKE2b-256 | 0a9e848a044d44d0ae72092854ca338adb322080ed3a1cb2999262147c9da811 |
Close
Hashes for ruff_api-0.1.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | def7d080c65f37233412b4c6188a90d7a91abc1dbcb171f82ebf56290a9349c5 |
|
MD5 | 3b6deaa8de48dc9073b689a95c577e18 |
|
BLAKE2b-256 | ffe3abdba21b9344423b7b56334b54e2a8c3f0191142e9facbd657bfcb375c60 |
Close
Hashes for ruff_api-0.1.0-cp39-cp39-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1d8947933df35503ee15ebee88dabc3d537f5a8bf9cccd9127fa14b4821ecfb |
|
MD5 | 87adfe46287c8c77eb8aa61b6dda95f5 |
|
BLAKE2b-256 | b33195419e6fe45c17e6239c7b5de7d69e55cc0c62e8caee8b6aa43ba8d3ab37 |
Close
Hashes for ruff_api-0.1.0-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6498eba21d85ee1469a45411b5efb1ebc6e051dfaaf8625bbc45b3faca4551eb |
|
MD5 | 2cc3cfce0cdcfbf4f2e1a855719fbebb |
|
BLAKE2b-256 | cf0c105d58270571e8f7cb9b65e264a47f23fa79d6fd9e1c9fe1b8d11b2fe0b6 |
Close
Hashes for ruff_api-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b575aacfce3f3d1d3ec37e19ccd821d5c56b658c6a0493b6950e023c02a1b330 |
|
MD5 | 74cd8d87309220f48537bf5a0f050571 |
|
BLAKE2b-256 | b8c874bbbb5c7ce467220ee645a9f2353932dab21ce7b8a01d7d59d8cd7c15dc |
Close
Hashes for ruff_api-0.1.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb9a6c475617593e7318a3a71ee441d2f850f8b654daa2bfa4291ead678978be |
|
MD5 | 6a0b78bb7358014a7c52badbd70ce972 |
|
BLAKE2b-256 | 1fe762e329b3cddc816f130ac40f1a4a4315d8cdf0c001208b88479f5006bcf0 |
Close
Hashes for ruff_api-0.1.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee62eaf02ece987cdddd59958f19494bebc87a3922b993fd9aa344a660ccac1b |
|
MD5 | 7cc640b41fbe343a669d4cf0b50cd688 |
|
BLAKE2b-256 | 6d02af7369883d4004253742cdede04ec16d8074306e5a7948f4f598284d0e80 |
Close
Hashes for ruff_api-0.1.0-cp38-cp38-macosx_10_12_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2aaa4cdd7201df88c9af7f3f8aed83d381d8c4f781b71442e806d077b3684ed0 |
|
MD5 | a527ed113d9b2e1230475b55b119e319 |
|
BLAKE2b-256 | 7d1f07ddcabb76597438f396f8d7104bc3c06f234b14b230cb4c8bf2257b310f |