You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`--config`|`str` (path) | Path to configuration file (`twyn.toml` or `pyproject.toml` by default). |
70
+
|`--dependency-file`|`str` (path) | Dependency file to analyze. Supported: `requirements.txt`, `poetry.lock`, `uv.lock`, etc. |
71
+
|`--dependency`|`str` (multiple allowed) | Dependency to analyze directly. Can be specified multiple times. |
72
+
|`--selector-method`|`all`, `first-letter`, `nearby-letter`| Method for selecting possible typosquats. |
73
+
|`--package-ecosystem`|`pypi`, `npm`| Package ecosystem for analysis. |
74
+
|`-v`| flag | Enable info-level logging. |
75
+
|`-vv`| flag | Enable debug-level logging. |
76
+
|`--no-cache`| flag | Disable use of trusted packages cache. Always fetch from the source. |
77
+
|`--no-track`| flag | Do not show the progress bar while processing packages. |
78
+
|`--json`| flag | Display results in JSON format. Implies `--no-track`. |
79
+
|`-r`, `--recursive`| flag | Scan directories recursively for dependency files. |
64
80
#### Run
65
81
66
-
To run twyn simply type:
82
+
**Usage Example:**
67
83
68
84
```sh
69
85
twyn run <OPTIONS>
70
86
```
71
-
72
-
For a list of all the available options as well as their expected arguments run:
87
+
or get help with
73
88
74
89
```sh
75
90
twyn run --help
76
91
```
77
92
78
-
#### JSON format
93
+
#####JSON format
79
94
If you want your output in JSON format, you can run `Twyn` with the following flag:
80
95
81
96
```python
@@ -90,8 +105,8 @@ If `Twyn` was run by manually giving it dependencies (with `--dependency`), the
90
105
91
106
In any other case (when dependencies are parsed from a file), the source will be the path to the dependencies file. One entry will be created for every source.
92
107
93
-
### Using Twyn as a library
94
108
109
+
### Using Twyn as a library
95
110
96
111
#### Installation
97
112
`Twyn` also supports being used as 3rd party library for you project. To install it, run:
0 commit comments