biston 0.2.0__py3-none-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
Binary file
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: biston
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Classifier: Development Status :: 3 - Alpha
|
|
5
|
+
Classifier: Intended Audience :: Developers
|
|
6
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
7
|
+
Classifier: Programming Language :: Rust
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
13
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
14
|
+
Requires-Dist: pytest>=6.0 ; extra == 'dev'
|
|
15
|
+
Requires-Dist: pytest-asyncio ; extra == 'dev'
|
|
16
|
+
Requires-Dist: black ; extra == 'dev'
|
|
17
|
+
Requires-Dist: isort ; extra == 'dev'
|
|
18
|
+
Requires-Dist: mypy ; extra == 'dev'
|
|
19
|
+
Provides-Extra: dev
|
|
20
|
+
Summary: A tool for analyzing Python code
|
|
21
|
+
Keywords: python,analysis,rust
|
|
22
|
+
Author-email: mojzis <mojzisek@gmail.com>
|
|
23
|
+
License: MIT
|
|
24
|
+
Requires-Python: >=3.10
|
|
25
|
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
26
|
+
Project-URL: documentation, https://github.com/mojzis/biston#readme
|
|
27
|
+
Project-URL: homepage, https://github.com/mojzis/biston
|
|
28
|
+
Project-URL: repository, https://github.com/mojzis/biston
|
|
29
|
+
|
|
30
|
+
# biston
|
|
31
|
+
|
|
32
|
+
A structural clone detector for Python code. Written in Rust.
|
|
33
|
+
|
|
34
|
+
It parses Python files with [tree-sitter](https://tree-sitter.github.io/tree-sitter/), normalizes the AST, and finds functions that are structurally similar to each other.
|
|
35
|
+
|
|
36
|
+
## Install
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
pip install biston
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Or build from source:
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
cargo build --release
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## Usage
|
|
49
|
+
|
|
50
|
+
```
|
|
51
|
+
biston scan [path]
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Options:
|
|
55
|
+
|
|
56
|
+
- `--threshold <0.0-1.0>` — similarity threshold (higher = stricter)
|
|
57
|
+
- `--min-lines <n>` — minimum function length to consider
|
|
58
|
+
- `--format <text|json|sarif>` — output format
|
|
59
|
+
- `--suggest` — show abstraction suggestions for similar pairs
|
|
60
|
+
- `--config <dir>` — directory containing `biston.toml` or `pyproject.toml`
|
|
61
|
+
|
|
62
|
+
## Configuration
|
|
63
|
+
|
|
64
|
+
Settings can go in `biston.toml` or under `[tool.biston]` in `pyproject.toml`.
|
|
65
|
+
|
|
66
|
+
## License
|
|
67
|
+
|
|
68
|
+
MIT
|
|
69
|
+
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
biston-0.2.0.data/scripts/biston.exe,sha256=2fY38k_Ci--FE5pHebQV-9flmaF-9zLBfWKpVhBbqyI,3387904
|
|
2
|
+
biston-0.2.0.dist-info/METADATA,sha256=jb2gNvQpIJ9H-SMszCmej07nsF2uAFd8FH6cEHBX3l4,2048
|
|
3
|
+
biston-0.2.0.dist-info/WHEEL,sha256=0cg7uMdVM1SNK0ih4zFWnV0wsxqvcArlTmRGOaRhEnw,94
|
|
4
|
+
biston-0.2.0.dist-info/sboms/biston.cyclonedx.json,sha256=6aXPYFLSTyAXBNRhWD5fs2sysy1rB4m0nA1yZZlnQZ0,91954
|
|
5
|
+
biston-0.2.0.dist-info/RECORD,,
|