skillplus 0.1.1__tar.gz → 0.1.2__tar.gz
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.
- {skillplus-0.1.1 → skillplus-0.1.2}/PKG-INFO +17 -16
- {skillplus-0.1.1 → skillplus-0.1.2}/README.md +16 -15
- {skillplus-0.1.1 → skillplus-0.1.2}/pyproject.toml +1 -1
- {skillplus-0.1.1 → skillplus-0.1.2}/src/skillplus/client.py +1 -1
- {skillplus-0.1.1 → skillplus-0.1.2}/.gitignore +0 -0
- {skillplus-0.1.1 → skillplus-0.1.2}/LICENSE +0 -0
- {skillplus-0.1.1 → skillplus-0.1.2}/src/skillplus/__init__.py +0 -0
- {skillplus-0.1.1 → skillplus-0.1.2}/src/skillplus/errors.py +0 -0
- {skillplus-0.1.1 → skillplus-0.1.2}/src/skillplus/py.typed +0 -0
- {skillplus-0.1.1 → skillplus-0.1.2}/src/skillplus/types.py +0 -0
- {skillplus-0.1.1 → skillplus-0.1.2}/tests/test_client.py +0 -0
- {skillplus-0.1.1 → skillplus-0.1.2}/tests/test_v3_features.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: skillplus
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: Official Python SDK for SkillPlus
|
|
5
5
|
Project-URL: Homepage, https://skillplus.xyz
|
|
6
6
|
Project-URL: Documentation, https://docs.skillplus.xyz
|
|
@@ -30,37 +30,38 @@ pip install skillplus
|
|
|
30
30
|
|
|
31
31
|
Requires Python 3.10+.
|
|
32
32
|
|
|
33
|
-
##
|
|
33
|
+
## Quick start
|
|
34
|
+
|
|
35
|
+
One call that always ends with a completed report — scanning first if the
|
|
36
|
+
skill has never been seen:
|
|
34
37
|
|
|
35
38
|
```python
|
|
36
39
|
from skillplus import SkillPlus
|
|
37
40
|
|
|
38
41
|
client = SkillPlus(api_key="skp_...")
|
|
39
42
|
|
|
40
|
-
|
|
43
|
+
report = client.wait_for_report("https://www.skills.sh/vercel-labs/skills/find-skills")
|
|
41
44
|
# GitHub repositories work the same way: "https://github.com/owner/repo"
|
|
42
45
|
|
|
43
|
-
|
|
44
|
-
|
|
46
|
+
print(report.verdict) # "safe" | "medium" | "high" | "unknown" — UI labels: Safe / Caution / High Risk / Unrated
|
|
47
|
+
print(report.summary.total_issues)
|
|
48
|
+
if report.supply_chain:
|
|
49
|
+
print(report.supply_chain.blacklist_hits) # poisoned-dependency hits
|
|
45
50
|
```
|
|
46
51
|
|
|
47
52
|
Prefer `verdict` over the legacy `rating` field — it folds historical values
|
|
48
|
-
onto the current three-tier scale
|
|
49
|
-
high→High Risk, unknown→Unrated).
|
|
53
|
+
onto the current three-tier scale.
|
|
50
54
|
|
|
51
|
-
##
|
|
55
|
+
## Lower-level: check without waiting
|
|
52
56
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
completed report:
|
|
57
|
+
`query` returns immediately with the current state (`found` / `queued` /
|
|
58
|
+
`running` / `not_found` / `failed`) and never blocks:
|
|
56
59
|
|
|
57
60
|
```python
|
|
58
|
-
|
|
61
|
+
result = client.query("https://www.skills.sh/vercel-labs/skills/find-skills")
|
|
59
62
|
|
|
60
|
-
|
|
61
|
-
print(report.
|
|
62
|
-
if report.supply_chain:
|
|
63
|
-
print(report.supply_chain.blacklist_hits) # poisoned-dependency hits
|
|
63
|
+
if result.status == "found" and result.report:
|
|
64
|
+
print(result.report.verdict)
|
|
64
65
|
```
|
|
65
66
|
|
|
66
67
|
## Advanced options
|
|
@@ -12,37 +12,38 @@ pip install skillplus
|
|
|
12
12
|
|
|
13
13
|
Requires Python 3.10+.
|
|
14
14
|
|
|
15
|
-
##
|
|
15
|
+
## Quick start
|
|
16
|
+
|
|
17
|
+
One call that always ends with a completed report — scanning first if the
|
|
18
|
+
skill has never been seen:
|
|
16
19
|
|
|
17
20
|
```python
|
|
18
21
|
from skillplus import SkillPlus
|
|
19
22
|
|
|
20
23
|
client = SkillPlus(api_key="skp_...")
|
|
21
24
|
|
|
22
|
-
|
|
25
|
+
report = client.wait_for_report("https://www.skills.sh/vercel-labs/skills/find-skills")
|
|
23
26
|
# GitHub repositories work the same way: "https://github.com/owner/repo"
|
|
24
27
|
|
|
25
|
-
|
|
26
|
-
|
|
28
|
+
print(report.verdict) # "safe" | "medium" | "high" | "unknown" — UI labels: Safe / Caution / High Risk / Unrated
|
|
29
|
+
print(report.summary.total_issues)
|
|
30
|
+
if report.supply_chain:
|
|
31
|
+
print(report.supply_chain.blacklist_hits) # poisoned-dependency hits
|
|
27
32
|
```
|
|
28
33
|
|
|
29
34
|
Prefer `verdict` over the legacy `rating` field — it folds historical values
|
|
30
|
-
onto the current three-tier scale
|
|
31
|
-
high→High Risk, unknown→Unrated).
|
|
35
|
+
onto the current three-tier scale.
|
|
32
36
|
|
|
33
|
-
##
|
|
37
|
+
## Lower-level: check without waiting
|
|
34
38
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
completed report:
|
|
39
|
+
`query` returns immediately with the current state (`found` / `queued` /
|
|
40
|
+
`running` / `not_found` / `failed`) and never blocks:
|
|
38
41
|
|
|
39
42
|
```python
|
|
40
|
-
|
|
43
|
+
result = client.query("https://www.skills.sh/vercel-labs/skills/find-skills")
|
|
41
44
|
|
|
42
|
-
|
|
43
|
-
print(report.
|
|
44
|
-
if report.supply_chain:
|
|
45
|
-
print(report.supply_chain.blacklist_hits) # poisoned-dependency hits
|
|
45
|
+
if result.status == "found" and result.report:
|
|
46
|
+
print(result.report.verdict)
|
|
46
47
|
```
|
|
47
48
|
|
|
48
49
|
## Advanced options
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|