licenseal 0.1.0__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.
Files changed (83) hide show
  1. licenseal-0.1.0/LICENSE +202 -0
  2. licenseal-0.1.0/NOTICE +8 -0
  3. licenseal-0.1.0/PKG-INFO +357 -0
  4. licenseal-0.1.0/README.md +316 -0
  5. licenseal-0.1.0/pyproject.toml +174 -0
  6. licenseal-0.1.0/src/licenseal/__init__.py +7 -0
  7. licenseal-0.1.0/src/licenseal/_concurrency.py +57 -0
  8. licenseal-0.1.0/src/licenseal/_graph.py +35 -0
  9. licenseal-0.1.0/src/licenseal/analysis/__init__.py +0 -0
  10. licenseal-0.1.0/src/licenseal/analysis/compatibility.py +286 -0
  11. licenseal-0.1.0/src/licenseal/analysis/risk.py +373 -0
  12. licenseal-0.1.0/src/licenseal/analysis/spdx.py +1287 -0
  13. licenseal-0.1.0/src/licenseal/cli.py +1308 -0
  14. licenseal-0.1.0/src/licenseal/data/__init__.py +5 -0
  15. licenseal-0.1.0/src/licenseal/data/claude_skill.md +277 -0
  16. licenseal-0.1.0/src/licenseal/data/spdx-license-ids.json +697 -0
  17. licenseal-0.1.0/src/licenseal/discovery/__init__.py +417 -0
  18. licenseal-0.1.0/src/licenseal/discovery/_read.py +287 -0
  19. licenseal-0.1.0/src/licenseal/discovery/_walk.py +216 -0
  20. licenseal-0.1.0/src/licenseal/discovery/dotnet/__init__.py +78 -0
  21. licenseal-0.1.0/src/licenseal/discovery/dotnet/csproj.py +442 -0
  22. licenseal-0.1.0/src/licenseal/discovery/dotnet/directory_build_props.py +278 -0
  23. licenseal-0.1.0/src/licenseal/discovery/dotnet/directory_packages_props.py +201 -0
  24. licenseal-0.1.0/src/licenseal/discovery/dotnet/lockfiles.py +341 -0
  25. licenseal-0.1.0/src/licenseal/discovery/dotnet/packages_config.py +140 -0
  26. licenseal-0.1.0/src/licenseal/discovery/dotnet/paket.py +291 -0
  27. licenseal-0.1.0/src/licenseal/discovery/go/__init__.py +3 -0
  28. licenseal-0.1.0/src/licenseal/discovery/go/go_mod.py +374 -0
  29. licenseal-0.1.0/src/licenseal/discovery/go/lockfile.py +59 -0
  30. licenseal-0.1.0/src/licenseal/discovery/hex/__init__.py +45 -0
  31. licenseal-0.1.0/src/licenseal/discovery/hex/erlang_mk.py +190 -0
  32. licenseal-0.1.0/src/licenseal/discovery/hex/mix_exs.py +258 -0
  33. licenseal-0.1.0/src/licenseal/discovery/hex/mix_lock.py +318 -0
  34. licenseal-0.1.0/src/licenseal/discovery/hex/rebar_config.py +162 -0
  35. licenseal-0.1.0/src/licenseal/discovery/hex/rebar_lock.py +138 -0
  36. licenseal-0.1.0/src/licenseal/discovery/java/__init__.py +50 -0
  37. licenseal-0.1.0/src/licenseal/discovery/java/build_gradle.py +315 -0
  38. licenseal-0.1.0/src/licenseal/discovery/java/gradle_lockfile.py +151 -0
  39. licenseal-0.1.0/src/licenseal/discovery/java/pom_xml.py +631 -0
  40. licenseal-0.1.0/src/licenseal/discovery/npm/__init__.py +0 -0
  41. licenseal-0.1.0/src/licenseal/discovery/npm/lockfiles.py +858 -0
  42. licenseal-0.1.0/src/licenseal/discovery/npm/package_json.py +178 -0
  43. licenseal-0.1.0/src/licenseal/discovery/php/__init__.py +21 -0
  44. licenseal-0.1.0/src/licenseal/discovery/php/composer_json.py +147 -0
  45. licenseal-0.1.0/src/licenseal/discovery/php/lockfiles.py +240 -0
  46. licenseal-0.1.0/src/licenseal/discovery/python/__init__.py +50 -0
  47. licenseal-0.1.0/src/licenseal/discovery/python/lockfiles.py +370 -0
  48. licenseal-0.1.0/src/licenseal/discovery/python/pipfile.py +86 -0
  49. licenseal-0.1.0/src/licenseal/discovery/python/pyproject.py +289 -0
  50. licenseal-0.1.0/src/licenseal/discovery/python/requirements.py +100 -0
  51. licenseal-0.1.0/src/licenseal/discovery/python/setup_cfg.py +105 -0
  52. licenseal-0.1.0/src/licenseal/discovery/python/setup_py.py +338 -0
  53. licenseal-0.1.0/src/licenseal/discovery/r/__init__.py +26 -0
  54. licenseal-0.1.0/src/licenseal/discovery/r/_dcf.py +65 -0
  55. licenseal-0.1.0/src/licenseal/discovery/r/_lock.py +140 -0
  56. licenseal-0.1.0/src/licenseal/discovery/r/description.py +208 -0
  57. licenseal-0.1.0/src/licenseal/discovery/r/packrat.py +71 -0
  58. licenseal-0.1.0/src/licenseal/discovery/r/renv_lock.py +94 -0
  59. licenseal-0.1.0/src/licenseal/discovery/ruby/__init__.py +23 -0
  60. licenseal-0.1.0/src/licenseal/discovery/ruby/gemfile.py +294 -0
  61. licenseal-0.1.0/src/licenseal/discovery/ruby/gemspec.py +229 -0
  62. licenseal-0.1.0/src/licenseal/discovery/ruby/lockfiles.py +346 -0
  63. licenseal-0.1.0/src/licenseal/discovery/rust/__init__.py +3 -0
  64. licenseal-0.1.0/src/licenseal/discovery/rust/cargo_toml.py +179 -0
  65. licenseal-0.1.0/src/licenseal/discovery/rust/lockfiles.py +182 -0
  66. licenseal-0.1.0/src/licenseal/models.py +241 -0
  67. licenseal-0.1.0/src/licenseal/py.typed +0 -0
  68. licenseal-0.1.0/src/licenseal/report.py +756 -0
  69. licenseal-0.1.0/src/licenseal/resolvers/__init__.py +0 -0
  70. licenseal-0.1.0/src/licenseal/resolvers/cran.py +142 -0
  71. licenseal-0.1.0/src/licenseal/resolvers/crates_io.py +175 -0
  72. licenseal-0.1.0/src/licenseal/resolvers/deps_dev.py +816 -0
  73. licenseal-0.1.0/src/licenseal/resolvers/hex.py +215 -0
  74. licenseal-0.1.0/src/licenseal/resolvers/http.py +1015 -0
  75. licenseal-0.1.0/src/licenseal/resolvers/maven_central.py +476 -0
  76. licenseal-0.1.0/src/licenseal/resolvers/npm_registry.py +288 -0
  77. licenseal-0.1.0/src/licenseal/resolvers/nuget.py +460 -0
  78. licenseal-0.1.0/src/licenseal/resolvers/packagist.py +314 -0
  79. licenseal-0.1.0/src/licenseal/resolvers/pypi.py +518 -0
  80. licenseal-0.1.0/src/licenseal/resolvers/rubygems.py +240 -0
  81. licenseal-0.1.0/src/licenseal/resolvers/version_selection.py +151 -0
  82. licenseal-0.1.0/src/licenseal/review.py +360 -0
  83. licenseal-0.1.0/src/licenseal/transitive.py +2106 -0
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2026 Sergii Shcherbak
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
licenseal-0.1.0/NOTICE ADDED
@@ -0,0 +1,8 @@
1
+ licenseal
2
+ Copyright 2026 Sergii Shcherbak
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
5
+ this software except in compliance with the License. A copy of the License is
6
+ provided in the LICENSE file in this repository and is also available at:
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
@@ -0,0 +1,357 @@
1
+ Metadata-Version: 2.4
2
+ Name: licenseal
3
+ Version: 0.1.0
4
+ Summary: License compatibility checker for Python, JS/TS, Rust, Go, Java/JVM, .NET, PHP, Ruby, Elixir/Erlang, and R dependencies
5
+ Keywords: license,compliance,spdx,dependencies,python,pypi,javascript,typescript,npm,rust,crates,go,java,jvm,maven,gradle,dotnet,nuget,php,composer,packagist,ruby,rubygems,elixir,erlang,hex,r,cran
6
+ Author: SergiiShcherbak
7
+ Author-email: SergiiShcherbak <sergii@shcherbak.ai>
8
+ License-Expression: Apache-2.0
9
+ License-File: LICENSE
10
+ License-File: NOTICE
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: Apache Software License
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.10
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
19
+ Classifier: Programming Language :: Python :: 3.14
20
+ Classifier: Operating System :: POSIX :: Linux
21
+ Classifier: Operating System :: MacOS
22
+ Classifier: Operating System :: Microsoft :: Windows
23
+ Classifier: Topic :: Software Development :: Libraries
24
+ Classifier: Topic :: Software Development :: Quality Assurance
25
+ Classifier: Environment :: Console
26
+ Classifier: Typing :: Typed
27
+ Requires-Dist: click>=8.1
28
+ Requires-Dist: rich>=13.0
29
+ Requires-Dist: httpx>=0.27
30
+ Requires-Dist: packaging>=24.0
31
+ Requires-Dist: semantic-version>=2.10
32
+ Requires-Dist: tomli>=2.0 ; python_full_version < '3.11'
33
+ Requires-Dist: tethered>=0.5.1
34
+ Requires-Dist: pyyaml>=6.0.3
35
+ Requires-Dist: defusedxml>=0.7.1
36
+ Requires-Python: >=3.10
37
+ Project-URL: Homepage, https://github.com/shcherbak-ai/licenseal
38
+ Project-URL: Issues, https://github.com/shcherbak-ai/licenseal/issues
39
+ Project-URL: Repository, https://github.com/shcherbak-ai/licenseal
40
+ Description-Content-Type: text/markdown
41
+
42
+ <h1 align="center">
43
+ <img src="https://raw.githubusercontent.com/shcherbak-ai/licenseal/main/assets/licenseal.png" alt="licenseal mascot" width="220"><br>
44
+ licenseal
45
+ </h1>
46
+
47
+ <p align="center">
48
+ Fast cross-ecosystem license compatibility checker for CI, audits, and enterprise adoption.
49
+ </p>
50
+ <br>
51
+
52
+ <!-- markdownlint-disable MD033 -->
53
+ <table align="center">
54
+ <tr>
55
+ <td align="center"><strong>Prevent release blockers</strong><br>Catch dependency-license problems before release, approval, or audit.</td>
56
+ <td align="center"><strong>10 ecosystems</strong><br>Scan Python, JS/TS, Rust, Go, Java/JVM, .NET, PHP, Ruby, Elixir/Erlang, and R.</td>
57
+ <td align="center"><strong>Document reviews</strong><br>Use the Claude Code skill to investigate findings and record decisions.</td>
58
+ </tr>
59
+ </table>
60
+ <br>
61
+
62
+ <table align="center">
63
+ <tr>
64
+ <td align="right"><strong>Package</strong></td>
65
+ <td>
66
+ <a href="https://pypi.org/project/licenseal/"><img src="https://img.shields.io/pypi/v/licenseal?v=1" alt="PyPI"></a>
67
+ <a href="https://pypi.org/project/licenseal/"><img src="https://img.shields.io/pypi/pyversions/licenseal?v=1" alt="Python"></a>
68
+ <a href="https://github.com/shcherbak-ai/licenseal/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-blue.svg" alt="License: Apache-2.0"></a>
69
+ </td>
70
+ </tr>
71
+ <tr>
72
+ <td align="right"><strong>Quality</strong></td>
73
+ <td>
74
+ <a href="https://github.com/shcherbak-ai/licenseal/actions/workflows/ci.yml"><img src="https://github.com/shcherbak-ai/licenseal/actions/workflows/ci.yml/badge.svg?branch=main" alt="CI"></a>
75
+ <a href="https://github.com/shcherbak-ai/licenseal/actions/workflows/ci.yml"><img src="https://img.shields.io/endpoint?url=https://gist.githubusercontent.com/SergiiShcherbak/17230af3dfe294ebd8a8fd9c4cd775a8/raw/licenseal-coverage.json" alt="coverage"></a>
76
+ <a href="https://github.com/shcherbak-ai/licenseal/actions/workflows/licenseal.yml"><img src="https://github.com/shcherbak-ai/licenseal/actions/workflows/licenseal.yml/badge.svg?branch=main" alt="License compatibility"></a>
77
+ <a href="https://github.com/shcherbak-ai/licenseal/actions/workflows/codeql.yml"><img src="https://github.com/shcherbak-ai/licenseal/actions/workflows/codeql.yml/badge.svg?branch=main" alt="CodeQL"></a>
78
+ <a href="https://github.com/PyCQA/bandit"><img src="https://img.shields.io/badge/security-bandit-yellow.svg" alt="security: bandit"></a>
79
+ </td>
80
+ </tr>
81
+ <tr>
82
+ <td align="right"><strong>Tooling</strong></td>
83
+ <td>
84
+ <a href="https://github.com/astral-sh/ruff"><img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json" alt="Ruff"></a>
85
+ <a href="https://github.com/astral-sh/uv"><img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json" alt="uv"></a>
86
+ <a href="https://github.com/astral-sh/ty"><img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ty/main/assets/badge/v0.json" alt="ty"></a>
87
+ <a href="https://github.com/shcherbak-ai/tethered"><img src="https://img.shields.io/badge/egress-tethered-orange?labelColor=4B8BBE" alt="egress: tethered"></a>
88
+ </td>
89
+ </tr>
90
+ </table>
91
+ <br>
92
+ <!-- markdownlint-enable MD033 -->
93
+
94
+ **licenseal is a fast license compatibility checker for dependency trees across language ecosystems.** It makes that compliance check cheap enough to run in CI: scan manifests, lockfiles, and public registry metadata, then tell you whether your dependency licenses are compatible with the license you ship under. It does not install dependencies, run package-manager commands, execute build scripts, or download package archives.
95
+
96
+ ```bash
97
+ uvx licenseal check
98
+ ```
99
+
100
+ > **Not legal advice.** licenseal automates dependency-license discovery and compatibility classification. It is a CI/audit aid, not a substitute for legal review.
101
+
102
+ ## 🧭 Why This Matters
103
+
104
+ License non-compliance is a quiet delivery risk: it usually does not break the build, but it can block a shipment, customer approval, funding round, or acquisition when discovered late. The problem usually surfaces when a customer, investor, legal reviewer, or procurement team asks what is inside your dependency tree:
105
+
106
+ | Blocker | What can happen |
107
+ | --- | --- |
108
+ | Enterprise adoption | Security and procurement teams ask for an open-source license report before approval. |
109
+ | Due diligence | Investors, acquirers, or partners flag copyleft, source-available, or unknown-license dependencies late. |
110
+ | Release timing | A problematic dependency forces a replacement, upgrade, or architecture change when the team is trying to ship. |
111
+ | Hidden transitives | The risky license is several levels down, pulled in by a package that looked harmless. |
112
+ | Product obligations | GPL, AGPL, SSPL, BUSL, Elastic, non-commercial Creative Commons, and similar terms may be incompatible with how you distribute or host the product. |
113
+ | Audit trail | Review decisions need to be explicit and checked in, not buried in a spreadsheet or chat thread. |
114
+
115
+ licenseal turns that hidden risk into fast CI feedback: it scans the transitive dependency tree, flags compatibility issues, and records reviewed decisions for cases that need human judgment. It is designed for PR gates, using manifests, lockfiles, and registries without install or build steps.
116
+
117
+ > [!IMPORTANT]
118
+ > In a benchmark of 50 widely used open-source repositories across ten ecosystems, licenseal flagged 485 license-compatibility issues at default settings — 405 warnings and 80 outright violations, spanning 9 of the 10 ecosystems — each a dependency whose license needed compatibility review against the project's own declared license. Inventory-only license tools surface none of these.
119
+
120
+ <!-- markdownlint-disable MD033 -->
121
+ <details>
122
+ <summary>Why this is not hypothetical</summary>
123
+
124
+ Public engineering policies and case history show why dependency-license checks matter. [Google](https://opensource.google/documentation/reference/thirdparty/licenses) and [Power](https://tech.powerhrg.com/oss-guide/docs/using/agpl.html) publish restrictive guidance for licenses such as AGPL and SSPL, while [Salesforce](https://engineering.salesforce.com/building-a-secured-data-intelligence-platform-ba85411a0c1b/) and [Uber](https://www.uber.com/us/en/blog/oss-ip/) have written about license review in production software governance. GPL enforcement cases such as [*Artifex v. Hancom*](https://artifex.com/blog/artifex-and-hancom-reach-settlement-over-ghostscript-open-source-dispute) and [*Software Freedom Conservancy v. Vizio*](https://sfconservancy.org/copyleft-compliance/vizio.html) also show that dependency-license obligations can become real delivery and legal risk.
125
+
126
+ </details>
127
+ <!-- markdownlint-enable MD033 -->
128
+
129
+ ## ⚙️ How It Works
130
+
131
+ | 1. Read | 2. Resolve | 3. Classify | 4. Report |
132
+ | --- | --- | --- | --- |
133
+ | Manifests and lockfiles | Transitive dependency tree plus public registry license metadata | Project license vs dependency license compatibility | CI verdict, Markdown/JSON report, and checked-in review overrides |
134
+
135
+ ## 🚀 Quick Start
136
+
137
+ Install-free one-shot:
138
+
139
+ ```bash
140
+ uvx licenseal check
141
+ ```
142
+
143
+ Persistent install:
144
+
145
+ ```bash
146
+ uv tool install licenseal
147
+ # or
148
+ pipx install licenseal
149
+ ```
150
+
151
+ Inside a Python project:
152
+
153
+ ```bash
154
+ uv add --dev licenseal
155
+ # or
156
+ pip install licenseal
157
+ ```
158
+
159
+ Example output:
160
+
161
+ ![licenseal terminal output showing a transitive dependency table, one weak-copyleft warning, and a reviewed dependency count](https://raw.githubusercontent.com/shcherbak-ai/licenseal/main/assets/licenseal_cli.png)
162
+
163
+ The exit code is non-zero when there are unreviewed violations, warnings, unknown licenses, or analysis gaps. See [USAGE.md](https://github.com/shcherbak-ai/licenseal/blob/main/USAGE.md) for every flag and report format.
164
+
165
+ ## ✨ What It Does
166
+
167
+ | | | |
168
+ | --- | --- | --- |
169
+ | **Compatibility verdict**<br>Checks dependencies against your project license. | **Transitive by default**<br>Finds risks several levels down. | **Install-free**<br>Reads manifests, lockfiles, and registries only. |
170
+ | **Agent-assisted review**<br>Claude Code skill investigates flagged findings and asks verdict-aware questions. | **Cross-ecosystem**<br>One scan for polyglot repos. | **CI-ready speed**<br>Seconds-scale scans in benchmark runs, with strict exits and JSON/Markdown output. |
171
+
172
+ ## 🌐 Supported Ecosystems
173
+
174
+ ![Python](https://img.shields.io/badge/Python-3776AB?logo=python&logoColor=white)
175
+ ![npm](https://img.shields.io/badge/npm-CB3837?logo=npm&logoColor=white)
176
+ ![Rust](https://img.shields.io/badge/Rust-000000?logo=rust&logoColor=white)
177
+ ![Go](https://img.shields.io/badge/Go-00ADD8?logo=go&logoColor=white)
178
+ ![Java](https://img.shields.io/badge/Java-007396?logo=openjdk&logoColor=white)
179
+ ![.NET](https://img.shields.io/badge/.NET-512BD4?logo=dotnet&logoColor=white)
180
+ ![PHP](https://img.shields.io/badge/PHP-777BB4?logo=php&logoColor=white)
181
+ ![Ruby](https://img.shields.io/badge/Ruby-CC342D?logo=ruby&logoColor=white)
182
+ ![Elixir/Erlang](https://img.shields.io/badge/Elixir%20%2F%20Erlang-4B275F?logo=elixir&logoColor=white)
183
+ ![R](https://img.shields.io/badge/R-276DC3?logo=r&logoColor=white)
184
+
185
+ Supported registries include PyPI, npm, crates.io, deps.dev, proxy.golang.org, Maven Central, NuGet.org, Packagist, RubyGems, Hex, and CRAN. See [USAGE.md](https://github.com/shcherbak-ai/licenseal/blob/main/USAGE.md#supported-ecosystems) for manifest and lockfile details.
186
+
187
+ ## 📊 How It Compares
188
+
189
+ Comparison last reviewed: June 2026. Tool capabilities change; check each project before making a buying or compliance decision.
190
+
191
+ ### CI license-compatibility workflow
192
+
193
+ | Capability | **licenseal** | [pip-licenses](https://github.com/raimon49/pip-licenses) | [license-checker](https://github.com/RSeidelsohn/license-checker-rseidelsohn) | [LicenseFinder](https://github.com/pivotal/LicenseFinder) | [fossa-cli](https://github.com/fossas/fossa-cli) |
194
+ | --- | :-: | :-: | :-: | :-: | :-: |
195
+ | **Project-license compatibility verdict** | ✓ | - | - | ~ | ~ |
196
+ | **Transitive discovery before install** | ✓ | - | - | - | ~ |
197
+ | **No successful install/restore required** | ✓ | - | - | - | ~ |
198
+ | **No dependency install/build step** | ✓ | - | - | - | ~ |
199
+ | **Fast, seconds-scale CI path** | ✓ | ~ | ~ | - | - |
200
+ | **Agent-assisted flagged-finding review** | ✓ | - | - | - | - |
201
+ | **Manual review override file** | ✓ | - | ~ | ✓ | ~ |
202
+
203
+ ### Coverage and artifacts
204
+
205
+ | Capability | **licenseal** | [pip-licenses](https://github.com/raimon49/pip-licenses) | [license-checker](https://github.com/RSeidelsohn/license-checker-rseidelsohn) | [LicenseFinder](https://github.com/pivotal/LicenseFinder) | [fossa-cli](https://github.com/fossas/fossa-cli) |
206
+ | --- | :-: | :-: | :-: | :-: | :-: |
207
+ | Multiple ecosystems in one tool | ✓ (10) | - | - | ✓ | ✓ |
208
+ | Dependency license report | ✓ | ✓ | ✓ | ✓ | ✓ |
209
+ | Local-only full workflow, no hosted service | ✓ | ✓ | ✓ | ✓ | - |
210
+ | Offline operation | - | ✓ | ✓ | ~ | - |
211
+ | Standards SBOM export (CycloneDX / SPDX) | - | - | - | - | ✓ |
212
+
213
+ `✓` supported · `~` partial · `-` not supported
214
+
215
+ No tool clears every row. The discovery rows are about source-tree analysis: manifests, lockfiles, and registry metadata before a successful package-manager install is assumed. Some tools can produce broader inventories after installation or hosted analysis; licenseal is optimized for transitive dependency coverage in CI without that prerequisite. `~` means the capability exists, but with a different workflow, hosted service, package-manager prerequisite, or policy model. The speed row reflects benchmark runs on public repositories, not a vendor guarantee. Pair licenseal with an SBOM generator, hosted compliance platform, or installed-metadata scanner when those are the artifacts or workflows you need.
216
+
217
+ ## 🧰 Important Defaults
218
+
219
+ | Default | Meaning |
220
+ | --- | --- |
221
+ | `--transitive` | Scans the transitive dependency tree by default. Use `--no-transitive` for direct deps only. |
222
+ | `--no-dev` | Dev dependencies are excluded unless `--dev` is set. |
223
+ | `--strict` | Warnings, unknowns, and analysis gaps fail CI in addition to violations. |
224
+ | Violations always fail | `--no-strict` demotes warnings, unknowns, and gaps only; definite incompatibilities still fail. |
225
+ | Missing project license -> `Proprietary` | If no project license is detected, licenseal labels the project `Proprietary` and checks dependencies as if it were permissively licensed — copyleft dependencies are still flagged, so the default errs strict, not lenient. |
226
+ | Registry-only resolution | No installs, builds, package archive downloads, or source-prose license extraction. |
227
+
228
+ ## 🎯 Scope
229
+
230
+ licenseal is intentionally narrow:
231
+
232
+ - It is a **license compatibility checker**, not a legal approval workflow or policy-exception manager.
233
+ - It checks **published dependency license metadata**, not vulnerability status, provenance, or SBOM completeness.
234
+ - It reads **manifests, lockfiles, and public registry metadata endpoints** only. It does not honor private registry declarations from scanned manifests, because that would expand the network trust boundary.
235
+ - It does not infer dependency licenses by pattern-matching local `LICENSE` files or source comments. Free-form license text is easy to misread, spoof, or partially match; missing structured metadata is reported as `UNKNOWN` and routed to manual review instead.
236
+ - It produces Markdown/JSON dependency license reports, but not standards-compliant CycloneDX or SPDX SBOMs; use a dedicated SBOM tool when you need that artifact.
237
+ - Manual review can override flagged findings when a maintainer has better information, but the review file is an audit record, not hidden legal sign-off.
238
+
239
+ The full trust boundary and network allowlist are documented in [SECURITY.md](https://github.com/shcherbak-ai/licenseal/blob/main/SECURITY.md).
240
+
241
+ ## ✅ CI Integration
242
+
243
+ GitHub Actions:
244
+
245
+ ```yaml
246
+ # .github/workflows/licenseal.yml
247
+ name: License compatibility
248
+ on: [push, pull_request]
249
+ jobs:
250
+ licenseal:
251
+ runs-on: ubuntu-latest
252
+ steps:
253
+ - uses: actions/checkout@v4
254
+ - uses: astral-sh/setup-uv@v6
255
+ - run: uvx licenseal check
256
+ ```
257
+
258
+ README badge:
259
+
260
+ ```md
261
+ [![License compatibility](https://github.com/OWNER/REPO/actions/workflows/licenseal.yml/badge.svg)](https://github.com/OWNER/REPO/actions/workflows/licenseal.yml)
262
+ ```
263
+
264
+ Preview:
265
+
266
+ ![License compatibility badge preview](https://img.shields.io/badge/license%20compatibility-CI%20status-informational)
267
+
268
+ Use the workflow status badge as the primary signal: it shows that license compatibility is checked in CI and that the latest run passed.
269
+
270
+ For a PR comment or audit artifact, write Markdown or JSON. The file is saved before the gate runs, so CI can publish it even on a failing check:
271
+
272
+ ```bash
273
+ licenseal check -f markdown -o LICENSES.md # PR-comment-friendly audit
274
+ licenseal check -f json -o report.json # stable machine-readable schema
275
+ ```
276
+
277
+ For projects that want a checked-in audit trail, commit the generated Markdown report as `LICENSES.md`. This repository follows that convention in [LICENSES.md](https://github.com/shcherbak-ai/licenseal/blob/main/LICENSES.md).
278
+
279
+ The JSON schema is documented in [JSON_OUTPUT.md](https://github.com/shcherbak-ai/licenseal/blob/main/JSON_OUTPUT.md).
280
+
281
+ ## 🧾 Manual Review Overrides
282
+
283
+ When a dependency is flagged but you have better license information than the resolver, record the reviewed license in a checked-in `licenseal.review.toml`:
284
+
285
+ ```toml
286
+ [[review]]
287
+ ecosystem = "python"
288
+ package = "mystery-lib"
289
+ version = "1.0.0"
290
+ license = "MIT"
291
+ note = "reviewed packaged LICENSE file"
292
+ ```
293
+
294
+ Workflow:
295
+
296
+ ```bash
297
+ licenseal check -f json -o report.json # 1. capture flagged deps
298
+ licenseal init-review-file --from-report report.json # 2. scaffold blank entries offline
299
+ # 3. fill in `license` and optional `note` for each entry
300
+ licenseal check # 4. overrides apply
301
+ ```
302
+
303
+ Reviews can only override flagged dependencies, never compatible ones. A reviewed dependency passes strict mode while staying visible in its warning, violation, or unknown bucket with both the detected and reviewed licenses shown.
304
+
305
+ licenseal also ships a [Claude Code](https://claude.com/claude-code) skill (`licenseal install-skill`, then `/licenseal-review`) that walks through unknowns, warnings, and violations interactively. It can inspect package links, license links, and project context, then ask the questions that matter for how your software is distributed, hosted, or modified. Full review rules are in [USAGE.md](https://github.com/shcherbak-ai/licenseal/blob/main/USAGE.md#manual-review-file).
306
+
307
+ ## 🧩 How Licenseal Decides
308
+
309
+ licenseal classifies each dependency license into a risk level and compares that risk against the detected project license.
310
+
311
+ | Project \ Dependency | Permissive | Weak Copyleft | Strong Copyleft | Network Copyleft |
312
+ | --- | --- | --- | --- | --- |
313
+ | **Permissive** | OK | Warning | Violation | Violation |
314
+ | **Weak Copyleft** | OK | OK | Violation | Violation |
315
+ | **Strong Copyleft** | OK | OK | OK | Warning |
316
+ | **Network Copyleft** | OK | OK | OK | OK |
317
+
318
+ When `--dev` is set, copyleft violations on dev dependencies are downgraded to warnings — licenseal treats dev deps as lower risk because they usually do not ship with the project.
319
+
320
+ | Risk level | Examples | Meaning |
321
+ | --- | --- | --- |
322
+ | Permissive | MIT, BSD, Apache-2.0, ISC | No significant restrictions |
323
+ | Weak Copyleft | LGPL, MPL-2.0, EPL, CDDL | File-scope reciprocity; linking from other files is usually allowed |
324
+ | Strong Copyleft | GPL, OSL, EUPL, CC-BY-SA | Share-alike obligations can extend to the derivative work |
325
+ | Network Copyleft | AGPL-3.0-only | Strong copyleft with network-use source-offer obligations |
326
+ | Unknown | SSPL, BUSL, Elastic, CC-BY-NC; missing or unrecognized licenses | Cannot be auto-classified; routed to manual review |
327
+
328
+ A dependency is **Unknown** when the registry returns no license, a non-SPDX string, or a source-available / use-restricted license (`SSPL`, `BUSL`, `Elastic`, `FSL`, `Parity`, `PolyForm`, `CC-BY-NC*` / `CC-BY-ND*`) whose custom terms are not auto-evaluated. The full matrix rationale is in [USAGE.md](https://github.com/shcherbak-ai/licenseal/blob/main/USAGE.md).
329
+
330
+ ## Learn More
331
+
332
+ - **[USAGE.md](https://github.com/shcherbak-ai/licenseal/blob/main/USAGE.md)** - full CLI reference, transitive-resolution behavior, per-ecosystem detail, review-file rules, and the Claude Code skill
333
+ - **[SECURITY.md](https://github.com/shcherbak-ai/licenseal/blob/main/SECURITY.md)** - the manifest-and-registry trust boundary and exact network-egress allowlist
334
+ - **[JSON_OUTPUT.md](https://github.com/shcherbak-ai/licenseal/blob/main/JSON_OUTPUT.md)** - stable machine-readable schema
335
+
336
+ ## Contributing
337
+
338
+ See [CONTRIBUTING.md](https://github.com/shcherbak-ai/licenseal/blob/main/CONTRIBUTING.md) for development setup and guidelines.
339
+
340
+ If licenseal helps your project, star ⭐ this repo to help other teams find it too.
341
+
342
+ ## License
343
+
344
+ [Apache-2.0](https://github.com/shcherbak-ai/licenseal/blob/main/LICENSE). See [`LICENSE`](https://github.com/shcherbak-ai/licenseal/blob/main/LICENSE) for the full text and [`NOTICE`](https://github.com/shcherbak-ai/licenseal/blob/main/NOTICE) for attribution.
345
+
346
+ ## More from shcherbak_ai
347
+
348
+ | Project | What it does |
349
+ | --- | --- |
350
+ | 💎 [ContextGem](https://github.com/shcherbak-ai/contextgem) | Structured extraction from documents with LLMs. |
351
+ | 🪁 [tethered](https://github.com/shcherbak-ai/tethered) | Network egress control for CLI tools and agent workflows. |
352
+
353
+ ## Connect
354
+
355
+ Questions or collaboration ideas? Reach out on [LinkedIn](https://www.linkedin.com/in/sergii-shcherbak-10068866/) or [X](https://x.com/seshch).
356
+
357
+ Built with ❤️ in Oslo, Norway.