Skip to main content

AutoCorrect for Python

The Python version of AutoCorrect.

Installation

$ pip install autocorrect-py

Usage

import autocorrect_py as autocorrect

autocorrect.format("Hello你好.")
# => "Hello 你好。"

autocorrect.format_for("let title = 'Hello你好。'", "js")
# => "let title = 'Hello 你好。'"

result = autocorrect.lint_for("<h1>这是 Heading标题</h1>", "html")
print(result)
# => LintResult(filepath='html', lines=[LineResult { line: 1, col: 5, new: "这是 Heading 标题", old: "这是 Heading标题", severity: Error }], enable=true)

# Load config
autocorrect.load_config('{ textRules: { "你好hello": 0 } }')
autocorrect.format("Hello你好.")
# => "Hello 你好。"
autocorrect.format("你好hello.")
# => "你好hello."

# Ignorer, if /path/to/workdir contains .autocorrectignore or .gitignore
ignorer = autocorrect.Ignorer('/path/to/workdir');
ignorer.is_ignored('README.md');

Metadata

Release files for autocorrect-py 2.14.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 autocorrect-py 2.14.0
File Size Uploaded
autocorrect_py-2.14.0.tar.gz 110.0 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for autocorrect-py 2.14.0
File
autocorrect_py-2.14.0-cp37-abi3-win_amd64.whl CPython 3.7 abi3 Windows x86-64 Details
autocorrect_py-2.14.0-cp37-abi3-win32.whl CPython 3.7 abi3 Windows x86-32 Details
autocorrect_py-2.14.0-cp37-abi3-musllinux_1_2_x86_64.whl CPython 3.7 abi3 Linux musl 1.2+ x86-64 Details
autocorrect_py-2.14.0-cp37-abi3-musllinux_1_2_i686.whl CPython 3.7 abi3 Linux musl 1.2+ x86-32 Details
autocorrect_py-2.14.0-cp37-abi3-musllinux_1_2_armv7l.whl CPython 3.7 abi3 Linux musl 1.2+ ARMv7l Details
autocorrect_py-2.14.0-cp37-abi3-musllinux_1_2_aarch64.whl CPython 3.7 abi3 Linux musl 1.2+ ARM64 Details
autocorrect_py-2.14.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.7 abi3 Linux glibc 2.17+ x86-64 Details
autocorrect_py-2.14.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl CPython 3.7 abi3 Linux glibc 2.17+ IBM System/390x Details
autocorrect_py-2.14.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl CPython 3.7 abi3 Linux glibc 2.17+ PowerPC 64-le Details
autocorrect_py-2.14.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl CPython 3.7 abi3 Linux glibc 2.17+ ARMv7l Details
autocorrect_py-2.14.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.7 abi3 Linux glibc 2.17+ ARM64 Details
autocorrect_py-2.14.0-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl CPython 3.7 abi3 Linux glibc 2.5+ x86-32 Details
autocorrect_py-2.14.0-cp37-abi3-macosx_11_0_arm64.whl CPython 3.7 abi3 macOS 11.0+ ARM64 Details
autocorrect_py-2.14.0-cp37-abi3-macosx_10_7_x86_64.whl CPython 3.7 abi3 macOS 10.7+ x86-64 Details

Total release size: 25.5 MB

Release files / autocorrect_py-2.14.0.tar.gz

Download URL autocorrect_py-2.14.0.tar.gz
Size 110.0 kB
Tags Source
SHA-256 checksum
How to use checksums
05f2ceaf9daca7cdbcc1648c20561e98123b540ba80688bb33e67fbe0ed942e4
BLAKE2b-256 checksum
How to use checksums
39d9ee3442377fdc687fb4a5212c242240bbeb34311ccc41de45badc813b5b01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.17

Release files / autocorrect_py-2.14.0-cp37-abi3-win_amd64.whl

Download URL autocorrect_py-2.14.0-cp37-abi3-win_amd64.whl
Size 1.6 MB
Tags CPython 3.7 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
bbcad5a7343ae15a5a307ccf810213dee019cdcebb10150a2f6c22cdaa61c751
BLAKE2b-256 checksum
How to use checksums
4bdedef0e8cfac068891c988c9bc7fed1e768a15c15abb28a44636de3d3278f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.17

Release files / autocorrect_py-2.14.0-cp37-abi3-win32.whl

Download URL autocorrect_py-2.14.0-cp37-abi3-win32.whl
Size 1.4 MB
Tags CPython 3.7 Windows x86-32 abi3
SHA-256 checksum
How to use checksums
9b42e2e436c252ef7095ba51c23687dcf0fd7522bb528d996d789950a51647ea
BLAKE2b-256 checksum
How to use checksums
42addae4d8b1d405efe2f9b84796ad6c1005ffe181f6a01c323299d50a9c8888
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.17

Release files / autocorrect_py-2.14.0-cp37-abi3-musllinux_1_2_x86_64.whl

Download URL autocorrect_py-2.14.0-cp37-abi3-musllinux_1_2_x86_64.whl
Size 2.0 MB
Tags CPython 3.7 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
e30f36fb0d8c60f06ae5615d87ee3da79174dc42955a9e8c6a6f60cf92b43d2d
BLAKE2b-256 checksum
How to use checksums
3af53245f461713a33e09b5be339ab34e515e73a87f860289b72a4d70a80d481
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.17

Release files / autocorrect_py-2.14.0-cp37-abi3-musllinux_1_2_i686.whl

Download URL autocorrect_py-2.14.0-cp37-abi3-musllinux_1_2_i686.whl
Size 2.0 MB
Tags CPython 3.7 Linux musl 1.2+ x86-32 abi3
SHA-256 checksum
How to use checksums
86c43b2ce86afe522fa883b3d3c3a981cfefb4833705deed0453d4ec5869bbbb
BLAKE2b-256 checksum
How to use checksums
6d8a4f3a69f4da816f8f8f874beabf062c5097f19d52e794cf1b957181cc931c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.17

Release files / autocorrect_py-2.14.0-cp37-abi3-musllinux_1_2_armv7l.whl

Download URL autocorrect_py-2.14.0-cp37-abi3-musllinux_1_2_armv7l.whl
Size 2.0 MB
Tags CPython 3.7 Linux musl 1.2+ ARMv7l abi3
SHA-256 checksum
How to use checksums
9d2113e29ced9615b9e1ab5931e7314c91199e606d161cb075e014e495f6329e
BLAKE2b-256 checksum
How to use checksums
36778a40e6353a17fa397f7664d6fc1a46ab63475d4cbf0722e519d3a1060143
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.17

Release files / autocorrect_py-2.14.0-cp37-abi3-musllinux_1_2_aarch64.whl

Download URL autocorrect_py-2.14.0-cp37-abi3-musllinux_1_2_aarch64.whl
Size 1.9 MB
Tags CPython 3.7 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
560e939ca1aec81832fe970f1d80723d4d13f3e1385320170c187edb88e4857c
BLAKE2b-256 checksum
How to use checksums
6514e76ba3f2709a81f8ab50cae8a3142ea3b2beaee8b737a0f443e11ef565a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.17

Release files / autocorrect_py-2.14.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL autocorrect_py-2.14.0-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.9 MB
Tags CPython 3.7 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
44756d59f7c5fb6c3d14897de15e6c775bb68093804b7fab37f5973dc07bedd4
BLAKE2b-256 checksum
How to use checksums
686a0d1e4cf1e14b70fec5a2df0e409462df693d71c0e3a1f776e1d9c2cd145d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.17

Release files / autocorrect_py-2.14.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl

Download URL autocorrect_py-2.14.0-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Size 2.1 MB
Tags CPython 3.7 Linux glibc 2.17+ IBM System/390x abi3
SHA-256 checksum
How to use checksums
c1abe772a2340d34d3f47b82f22a056f44ac99d368e3382864d747955a4ccf90
BLAKE2b-256 checksum
How to use checksums
4c73e08761cdde740ef0e347a65c621e8270687bf6dbd0a8824f91879d895964
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.17

Release files / autocorrect_py-2.14.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl

Download URL autocorrect_py-2.14.0-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Size 1.9 MB
Tags CPython 3.7 Linux glibc 2.17+ PowerPC 64-le abi3
SHA-256 checksum
How to use checksums
ea1dc22d1d25780324b730b71360e9537c596a84a1bf7ce0cec7166956fe3822
BLAKE2b-256 checksum
How to use checksums
11adf9916fb4626eb7f182fcc5d788e78e3d83f7c6875dd4feb0e14b3305557b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.17

Release files / autocorrect_py-2.14.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl

Download URL autocorrect_py-2.14.0-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Size 1.7 MB
Tags CPython 3.7 Linux glibc 2.17+ ARMv7l abi3
SHA-256 checksum
How to use checksums
8b83b24363ab6be049e7ed509a85a2ad47d83dcd7df6a3f4b01a77f4eb3c46ba
BLAKE2b-256 checksum
How to use checksums
aa0b231db13940b8c714256f7971382a71bd878bc172325a73d005708551fc50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.17

Release files / autocorrect_py-2.14.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL autocorrect_py-2.14.0-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 1.8 MB
Tags CPython 3.7 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
b574653590d9acf6bf8c77b1fcbd459d08e7849bfb9fae21a7bef32648ca42b1
BLAKE2b-256 checksum
How to use checksums
89132fa26c4910f0b559a6a4d8616d81f18fd03646207b70822fabc55be85b53
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.17

Release files / autocorrect_py-2.14.0-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl

Download URL autocorrect_py-2.14.0-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Size 1.8 MB
Tags CPython 3.7 Linux glibc 2.5+ x86-32 abi3
SHA-256 checksum
How to use checksums
4dc87f684784d02180e1eb2abcbb2ca8967c46aac406f6e9b37b77d0196c1c23
BLAKE2b-256 checksum
How to use checksums
aaf3f54e8fedb38398029ec2be3885cd4b95505764971fbd78fe6a52b0035263
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.17

Release files / autocorrect_py-2.14.0-cp37-abi3-macosx_11_0_arm64.whl

Download URL autocorrect_py-2.14.0-cp37-abi3-macosx_11_0_arm64.whl
Size 1.6 MB
Tags CPython 3.7 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
da433ed2b6b7fede2f72c6fa5bb9021ddd6dbc207b7f77a33ee2df816b82eab9
BLAKE2b-256 checksum
How to use checksums
3ba6a7d7c4eb2eaa2a47e222abf617aaa4e1c9f6e3b7b36405ab9d92439bc042
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.17

Release files / autocorrect_py-2.14.0-cp37-abi3-macosx_10_7_x86_64.whl

Download URL autocorrect_py-2.14.0-cp37-abi3-macosx_10_7_x86_64.whl
Size 1.7 MB
Tags CPython 3.7 abi3 macOS 10.7+ x86-64
SHA-256 checksum
How to use checksums
fc7aa8b20e6c14bf0832e007efc9cba5e3c8b0d29adf77358caef67dbdc68570
BLAKE2b-256 checksum
How to use checksums
de4b0a6f6f483a199d8ece027418474d65b2620722d30ae9fec443a1442176f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.17

Release history Release notifications | RSS feed

This release

2.14.0 This release

15 release files

2.6.1

15 release files

2.6.0

15 release files

2.5.8

15 release files

2.5.5

15 release files

2.5.4

15 release files

2.5.3

15 release files

2.5.2

15 release files

2.5.1

15 release files

2.5.0

15 release files

2.4.1

15 release files

2.4.0

15 release files

2.3.2

15 release files

2.3.1

15 release files

2.3.0

15 release files

2.2.0

15 release files

2.1.1

15 release files

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