Skip to content

Commit 20a6f5b

Browse files
committed
Rename package from recheck to redoctor
- Renamed all imports and references - Renamed CLI entry point to 'redoctor' - Fixed CLI bug with build_attack_string - Display name: ReDoctor - Ready for PyPI publishing
1 parent 10fab3b commit 20a6f5b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+331
-327
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ jobs:
2121
pip install -r requirements.txt
2222
pip install -r requirements.dev.txt
2323
pip install -e .
24-
flake8 scripts/ src/recheck/ --count --select=E9,F63,F7,F82,F821 --show-source --statistics
25-
python scripts/check_py36_compat.py src/recheck/*.py
24+
flake8 scripts/ src/redoctor/ --count --select=E9,F63,F7,F82,F821 --show-source --statistics
25+
python scripts/check_py36_compat.py src/redoctor/*.py
2626
pytest -v -n auto --timeout=60 tests/
2727
2828
# Test on Python 3.10 (middle) and 3.13 (latest)

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ python_functions = ["test_*"]
1111
addopts = "--tb=short"
1212

1313
[tool.coverage.run]
14-
source = ["src/recheck"]
14+
source = ["src/redoctor"]
1515
branch = true
16-
omit = ["src/recheck/cli.py"]
16+
omit = ["src/redoctor/cli.py"]
1717
parallel = true
1818

1919
[tool.coverage.report]
@@ -28,4 +28,4 @@ show_missing = true
2828

2929
[tool.bandit]
3030
exclude_dirs = ["tests"]
31-
targets = ["src/recheck"]
31+
targets = ["src/redoctor"]

ruff.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Ruff configuration for recheck
1+
# Ruff configuration for ReDoctor
22
# Targets Python 3.6 for backwards compatibility
33

44
# Target Python 3.6

setup.cfg

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[metadata]
2-
name = recheck
2+
name = redoctor
33
version = 0.1.0
4-
description = A Python ReDoS (Regular Expression Denial of Service) vulnerability checker
4+
description = ReDoctor - A Python ReDoS (Regular Expression Denial of Service) vulnerability checker
55
long_description = file: README.md
66
long_description_content_type = text/markdown
77
license = BSD-3-Clause AND MIT
88
license_files = LICENSE, LICENSE-MIT
9-
author = recheck-py contributors
10-
url = https://github.com/GetPageSpeed/recheck
9+
author = ReDoctor contributors
10+
url = https://github.com/GetPageSpeed/redoctor
1111
classifiers =
1212
Development Status :: 4 - Beta
1313
Intended Audience :: Developers
@@ -37,7 +37,7 @@ install_requires =
3737

3838
[options.packages.find]
3939
where = src
40-
include = recheck*
40+
include = redoctor*
4141

4242
[options.extras_require]
4343
dev =
@@ -48,4 +48,4 @@ dev =
4848

4949
[options.entry_points]
5050
console_scripts =
51-
recheck = recheck.cli:main
51+
redoctor = redoctor.cli:main

src/recheck/automaton/__init__.py

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/recheck/diagnostics/__init__.py

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/recheck/fuzz/__init__.py

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/recheck/unicode/__init__.py

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/recheck/vm/__init__.py

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
"""
2-
recheck - A Python ReDoS (Regular Expression Denial of Service) vulnerability checker.
2+
ReDoctor - A Python ReDoS (Regular Expression Denial of Service) vulnerability checker.
33
44
This library detects potential ReDoS vulnerabilities in regular expressions using
55
a hybrid approach combining static automata-based analysis with fuzzing.
66
77
Example usage:
8-
>>> from recheck import check
8+
>>> from redoctor import check
99
>>> result = check(r"^(a+)+$")
1010
>>> if result.is_vulnerable:
1111
... print(f"Vulnerable! Attack: {result.attack}")
1212
1313
For more control:
14-
>>> from recheck import check, Config
14+
>>> from redoctor import check, Config
1515
>>> result = check(r"^(a+)+$", config=Config(timeout=5.0))
1616
"""
1717

18-
from recheck.checker import check, check_pattern, is_safe, is_vulnerable, HybridChecker
19-
from recheck.config import Config, CheckerType, AccelerationMode, SeederType
20-
from recheck.diagnostics.complexity import Complexity, ComplexityType
21-
from recheck.diagnostics.diagnostics import Diagnostics, Status
22-
from recheck.diagnostics.attack_pattern import AttackPattern
23-
from recheck.diagnostics.hotspot import Hotspot
24-
from recheck.parser.flags import Flags
25-
from recheck.exceptions import RecheckError, ParseError, TimeoutError
18+
from redoctor.checker import check, check_pattern, is_safe, is_vulnerable, HybridChecker
19+
from redoctor.config import Config, CheckerType, AccelerationMode, SeederType
20+
from redoctor.diagnostics.complexity import Complexity, ComplexityType
21+
from redoctor.diagnostics.diagnostics import Diagnostics, Status
22+
from redoctor.diagnostics.attack_pattern import AttackPattern
23+
from redoctor.diagnostics.hotspot import Hotspot
24+
from redoctor.parser.flags import Flags
25+
from redoctor.exceptions import RedoctorError, ParseError, TimeoutError
2626

2727
__version__ = "0.1.0"
2828

@@ -47,7 +47,7 @@
4747
"AttackPattern",
4848
"Hotspot",
4949
# Exceptions
50-
"RecheckError",
50+
"RedoctorError",
5151
"ParseError",
5252
"TimeoutError",
5353
# Version

0 commit comments

Comments
 (0)