py-idp 0.3.1__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 (106) hide show
  1. py_idp-0.3.1/LICENSE +50 -0
  2. py_idp-0.3.1/LICENSE-AGPL +620 -0
  3. py_idp-0.3.1/LICENSE-COMMERCIAL +95 -0
  4. py_idp-0.3.1/PKG-INFO +811 -0
  5. py_idp-0.3.1/README.md +735 -0
  6. py_idp-0.3.1/pyproject.toml +133 -0
  7. py_idp-0.3.1/setup.cfg +4 -0
  8. py_idp-0.3.1/src/idp/__init__.py +39 -0
  9. py_idp-0.3.1/src/idp/_logging.py +69 -0
  10. py_idp-0.3.1/src/idp/_testing_backends.py +37 -0
  11. py_idp-0.3.1/src/idp/_util.py +38 -0
  12. py_idp-0.3.1/src/idp/api.py +306 -0
  13. py_idp-0.3.1/src/idp/assess/__init__.py +15 -0
  14. py_idp-0.3.1/src/idp/assess/confidence.py +130 -0
  15. py_idp-0.3.1/src/idp/auth/__init__.py +21 -0
  16. py_idp-0.3.1/src/idp/auth/keys.py +51 -0
  17. py_idp-0.3.1/src/idp/checkpoint.py +251 -0
  18. py_idp-0.3.1/src/idp/chunker.py +294 -0
  19. py_idp-0.3.1/src/idp/classify/__init__.py +15 -0
  20. py_idp-0.3.1/src/idp/classify/classifier.py +133 -0
  21. py_idp-0.3.1/src/idp/compat_v01.py +88 -0
  22. py_idp-0.3.1/src/idp/config.py +159 -0
  23. py_idp-0.3.1/src/idp/core/__init__.py +16 -0
  24. py_idp-0.3.1/src/idp/core/document.py +116 -0
  25. py_idp-0.3.1/src/idp/core/schemas.py +145 -0
  26. py_idp-0.3.1/src/idp/core/types.py +26 -0
  27. py_idp-0.3.1/src/idp/discover.py +580 -0
  28. py_idp-0.3.1/src/idp/errors.py +96 -0
  29. py_idp-0.3.1/src/idp/eval/__init__.py +12 -0
  30. py_idp-0.3.1/src/idp/eval/metrics.py +90 -0
  31. py_idp-0.3.1/src/idp/eval/runner.py +135 -0
  32. py_idp-0.3.1/src/idp/extract/__init__.py +15 -0
  33. py_idp-0.3.1/src/idp/extract/extractor.py +499 -0
  34. py_idp-0.3.1/src/idp/hitl/__init__.py +12 -0
  35. py_idp-0.3.1/src/idp/hitl/app.py +266 -0
  36. py_idp-0.3.1/src/idp/llm/__init__.py +39 -0
  37. py_idp-0.3.1/src/idp/llm/backend.py +583 -0
  38. py_idp-0.3.1/src/idp/llm/china.py +161 -0
  39. py_idp-0.3.1/src/idp/llm/nanonets.py +440 -0
  40. py_idp-0.3.1/src/idp/llm/nanonets_batch.py +228 -0
  41. py_idp-0.3.1/src/idp/metrics.py +153 -0
  42. py_idp-0.3.1/src/idp/migrate_audit.py +118 -0
  43. py_idp-0.3.1/src/idp/parse/__init__.py +29 -0
  44. py_idp-0.3.1/src/idp/parse/parser.py +258 -0
  45. py_idp-0.3.1/src/idp/parse/pdf_pages.py +177 -0
  46. py_idp-0.3.1/src/idp/parse/router.py +81 -0
  47. py_idp-0.3.1/src/idp/pipeline/__init__.py +15 -0
  48. py_idp-0.3.1/src/idp/pipeline/cli.py +371 -0
  49. py_idp-0.3.1/src/idp/pipeline/pipeline.py +229 -0
  50. py_idp-0.3.1/src/idp/policy_config.py +5 -0
  51. py_idp-0.3.1/src/idp/queue/__init__.py +15 -0
  52. py_idp-0.3.1/src/idp/queue/jobs.py +119 -0
  53. py_idp-0.3.1/src/idp/ratelimit.py +73 -0
  54. py_idp-0.3.1/src/idp/reliability.py +434 -0
  55. py_idp-0.3.1/src/idp/rl/__init__.py +50 -0
  56. py_idp-0.3.1/src/idp/rl/calibrate.py +375 -0
  57. py_idp-0.3.1/src/idp/rl/online.py +202 -0
  58. py_idp-0.3.1/src/idp/rl/policy.py +161 -0
  59. py_idp-0.3.1/src/idp/rl/reward.py +144 -0
  60. py_idp-0.3.1/src/idp/rl/update.py +124 -0
  61. py_idp-0.3.1/src/idp/storage/__init__.py +22 -0
  62. py_idp-0.3.1/src/idp/storage/factory.py +62 -0
  63. py_idp-0.3.1/src/idp/storage/sql.py +574 -0
  64. py_idp-0.3.1/src/idp/storage/store.py +258 -0
  65. py_idp-0.3.1/src/idp/validate/__init__.py +25 -0
  66. py_idp-0.3.1/src/idp/validate/validator.py +94 -0
  67. py_idp-0.3.1/src/py_idp.egg-info/PKG-INFO +811 -0
  68. py_idp-0.3.1/src/py_idp.egg-info/SOURCES.txt +104 -0
  69. py_idp-0.3.1/src/py_idp.egg-info/dependency_links.txt +1 -0
  70. py_idp-0.3.1/src/py_idp.egg-info/entry_points.txt +2 -0
  71. py_idp-0.3.1/src/py_idp.egg-info/requires.txt +65 -0
  72. py_idp-0.3.1/src/py_idp.egg-info/top_level.txt +1 -0
  73. py_idp-0.3.1/tests/test_api_integration.py +211 -0
  74. py_idp-0.3.1/tests/test_backend_auto.py +76 -0
  75. py_idp-0.3.1/tests/test_bug_hunt_2026_09_01.py +182 -0
  76. py_idp-0.3.1/tests/test_bug_mock_schema_crash.py +66 -0
  77. py_idp-0.3.1/tests/test_bugfix_regressions.py +423 -0
  78. py_idp-0.3.1/tests/test_checkpoint.py +638 -0
  79. py_idp-0.3.1/tests/test_china_providers.py +45 -0
  80. py_idp-0.3.1/tests/test_chunker.py +397 -0
  81. py_idp-0.3.1/tests/test_classifier.py +46 -0
  82. py_idp-0.3.1/tests/test_compat_v01.py +79 -0
  83. py_idp-0.3.1/tests/test_discover.py +675 -0
  84. py_idp-0.3.1/tests/test_enhance_benchmark.py +64 -0
  85. py_idp-0.3.1/tests/test_enhance_cli.py +132 -0
  86. py_idp-0.3.1/tests/test_enhance_concurrency.py +65 -0
  87. py_idp-0.3.1/tests/test_enhance_parser.py +157 -0
  88. py_idp-0.3.1/tests/test_enhance_property.py +173 -0
  89. py_idp-0.3.1/tests/test_mock_backend.py +61 -0
  90. py_idp-0.3.1/tests/test_nanonets_backend.py +339 -0
  91. py_idp-0.3.1/tests/test_nanonets_batch.py +233 -0
  92. py_idp-0.3.1/tests/test_parser_router.py +31 -0
  93. py_idp-0.3.1/tests/test_pdf_pages_parser.py +205 -0
  94. py_idp-0.3.1/tests/test_policy_cache_load.py +75 -0
  95. py_idp-0.3.1/tests/test_production_hardening.py +254 -0
  96. py_idp-0.3.1/tests/test_reliability.py +529 -0
  97. py_idp-0.3.1/tests/test_rl.py +242 -0
  98. py_idp-0.3.1/tests/test_rl_calibrate.py +147 -0
  99. py_idp-0.3.1/tests/test_rl_online.py +187 -0
  100. py_idp-0.3.1/tests/test_rl_update_sql.py +71 -0
  101. py_idp-0.3.1/tests/test_security_adversarial.py +449 -0
  102. py_idp-0.3.1/tests/test_sql_storage.py +237 -0
  103. py_idp-0.3.1/tests/test_storage_cache.py +155 -0
  104. py_idp-0.3.1/tests/test_storage_inmemory_filters.py +132 -0
  105. py_idp-0.3.1/tests/test_token_optimization.py +205 -0
  106. py_idp-0.3.1/tests/test_validator_edge_cases.py +205 -0
py_idp-0.3.1/LICENSE ADDED
@@ -0,0 +1,50 @@
1
+ PY-IDP DUAL LICENSE
2
+
3
+ Copyright (c) 2026 Royce
4
+
5
+ This software is dual-licensed under the following terms:
6
+
7
+ (A) GNU Affero General Public License v3.0 (AGPL-3.0)
8
+ ── For open-source use: see LICENSE-AGPL.
9
+ Use, modification, and hosting permitted provided that any
10
+ modified version you run as a network-accessible service must
11
+ also be made available under AGPL-3.0 (including your full
12
+ corresponding source). This is the standard copyleft clause
13
+ that prevents "wrap our work in a SaaS and ship" without
14
+ contributing back.
15
+
16
+ (B) Commercial License
17
+ ── For proprietary/SaaS embedding WITHOUT AGPL obligations.
18
+ See LICENSE-COMMERCIAL (summary below) or contact the author
19
+ for a paid licence.
20
+
21
+ Summary of the Commercial License terms (non-binding preview;
22
+ the signed agreement is the authoritative document):
23
+
24
+ Grant. Subject to payment of the applicable license fee, the
25
+ Licensor grants you a non-exclusive, non-transferable,
26
+ worldwide right to use, modify, embed, and distribute py-idp
27
+ in your proprietary products and hosted services, without the
28
+ copyleft obligations of AGPL-3.0.
29
+
30
+ Restrictions. You may NOT:
31
+ - redistribute py-idp itself under the commercial terms
32
+ (only your own application code that consumes it);
33
+ - remove copyright or license notices;
34
+ - use the Licensor's name, trademarks, or logos to endorse
35
+ derived products without written permission.
36
+
37
+ Disclaimer. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY
38
+ OF ANY KIND. See the full agreement for liability limits.
39
+
40
+ Pricing tiers (indicative, not binding):
41
+ Solo $300 / year — single developer, single company
42
+ Team $1,500 / year — up to 10 developers, single company
43
+ Enterprise contact — unlimited developers, SLA, support
44
+ SaaS-OEM per-seat — embed in hosted SaaS, paid per active user
45
+
46
+ To buy a Commercial License, contact: <royce-license-placeholder>
47
+
48
+ This file itself is informational. The binding license for your use
49
+ case is whichever of LICENSE-AGPL or a signed LICENSE-COMMERCIAL you
50
+ choose; the other does not apply to your use.
@@ -0,0 +1,620 @@
1
+ GNU AFFERO GENERAL PUBLIC LICENSE
2
+ Version 3, 19 November 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies of this
6
+ license document, but changing it is not allowed.
7
+
8
+ Preamble
9
+
10
+ The GNU Affero General Public License is a free, copyleft license for
11
+ software and other kinds of works, specifically designed to ensure
12
+ cooperation with the community in the case of network server software.
13
+
14
+ The licenses for most software and other practical works are designed
15
+ to take away your freedom to share and change the works. By contrast,
16
+ our General Public Licenses are intended to guarantee your freedom to
17
+ share and change all versions of a program--to make sure it remains
18
+ free software for all its users. We, the Free Software Foundation, use
19
+ the GNU General Public License for most of our software; it applies
20
+ also to any other work released this way by its authors. You can apply
21
+ it to your programs, too.
22
+
23
+ When we speak of free software, we are referring to freedom, not
24
+ price. Our General Public Licenses are designed to make sure that you
25
+ have the freedom to distribute copies of free software (and charge for
26
+ them if you wish), that you receive source code or can get it if you
27
+ want it, that you can change the software or use pieces of it in new
28
+ free programs, and that you know you can do these things.
29
+
30
+ Developers that use our General Public Licenses protect your rights
31
+ with two steps: (1) assert copyright on the software, and (2) offer
32
+ you this License giving you legal permission to copy, distribute
33
+ and/or modify it.
34
+
35
+ For the developer's and authors' protection, this License clearly
36
+ explains that there is no warranty for this free software. If the
37
+ software is modified by someone else and passed on, we want its
38
+ recipients to know that what they have is not the original, so that
39
+ any problems introduced by others will not reflect on the original
40
+ authors' reputations.
41
+
42
+ Finally, software whose only purpose is to run on a network server
43
+ (typically called "network server software") faces a special problem:
44
+ users of the network server receive the software over the network,
45
+ and the AGPL guarantees that anyone who runs a copy of the software
46
+ on a server gets the source for the modifications they can see.
47
+
48
+ The precise terms and conditions for copying, distribution and
49
+ modification follow.
50
+
51
+ TERMS AND CONDITIONS
52
+
53
+ 0. Definitions.
54
+
55
+ "This License" refers to version 3 of the GNU Affero General Public
56
+ License.
57
+
58
+ "The Program" refers to any copyrightable work licensed under this
59
+ License. Each licensee is addressed as "you". "Licensees" and
60
+ "recipients" may be individuals or organizations.
61
+
62
+ To "modify" a work means to copy from or adapt all or part of the
63
+ work in a way that requires copyright permission, other than the
64
+ making of an exact copy. The resulting work is called a "modified
65
+ version" of the earlier work or a work "based on" the earlier work.
66
+
67
+ A "covered work" means either the unmodified Program or a work based
68
+ on the Program.
69
+
70
+ To "propagate" a work means to do anything with it that, without
71
+ permission, would make you directly or secondarily liable for
72
+ infringement under applicable copyright law, except executing it on
73
+ a computer or modifying a private copy. Propagation includes copying,
74
+ distribution (with or without modification), making available to the
75
+ public, and in some countries other activities as well.
76
+
77
+ To "convey" a work means any kind of propagation that enables other
78
+ parties to make or receive copies. Mere interaction with a user
79
+ through a computer network, without transfer of a copy, is not
80
+ conveying.
81
+
82
+ An interactive user interface displays "Appropriate Legal Notices"
83
+ to the extent that it includes a convenient and prominently visible
84
+ feature that (1) displays an appropriate copyright notice, and (2)
85
+ tells the user that there is no warranty for the work (except to the
86
+ extent that warranties are provided), that licensees may convey the
87
+ work under this License, and how to view a copy of this License. If
88
+ the interface presents a list of user commands or options, such as a
89
+ menu, a prominent item in the list meets this criterion.
90
+
91
+ 1. Source Code.
92
+
93
+ The "source code" for a work means the preferred form of the work
94
+ for making modifications to it. "Object code" means any non-source
95
+ form of a work.
96
+
97
+ A "Standard Interface" means an interface that either is an official
98
+ standard defined by a recognized standards body, or, in the case of
99
+ interfaces specified for a particular programming language, one that
100
+ is widely used among developers working in that language.
101
+
102
+ The "System Library" of an executable work includes anything, other
103
+ than the combined work as a whole, that (a) is included in the normal
104
+ form of packaging of a Major Component, but (b) is only incidental to
105
+ implementing the combination of a Major Component (or a tool whose
106
+ purpose is to modify a Major Component, or a tool whose purpose is to
107
+ implement a patent license in a way that incompatible with the AGPL.)
108
+
109
+ The "Corresponding Source" for a work in object code form means all
110
+ the source code needed to generate, install, and (for an executable
111
+ work) run the object code and to modify the work, including scripts to
112
+ control those activities. However, it does not include the work's
113
+ System Libraries, or general-purpose tools or generally available free
114
+ programs which are used unmodified in performing those activities but
115
+ which are not part of the work. For example, Corresponding Source
116
+ includes interface definition files associated with source files for
117
+ the work, and the source code for shared libraries and dynamically
118
+ linked subprograms that the work is specifically designed to require,
119
+ such as by intimate data communication or control flow between those
120
+ subprograms and other parts of the work.
121
+
122
+ The Corresponding Source need not include anything that users can
123
+ regenerate automatically from other parts of the Corresponding Source.
124
+
125
+ The Corresponding Source for a work in source code form is that
126
+ same work.
127
+
128
+ 2. Basic Permissions.
129
+
130
+ All rights granted under this License are granted for the term of
131
+ copyright on the Program, and are irrevocable provided the stated
132
+ conditions are met. This License explicitly affirms your unlimited
133
+ permission to run the unmodified Program for personal, commercial,
134
+ non-commercial, or any other purpose. You are not required to register
135
+ or otherwise affirm your understanding of the License to receive the
136
+ rights granted under this License. You may not impose any further
137
+ restrictions on the recipients' exercise of the rights granted herein.
138
+
139
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
140
+
141
+ No covered work shall be deemed part of an effective technological
142
+ measure under any applicable law fulfilling obligations under WIPO
143
+ copyright treaty, article 11, or US Copyright Law (17 USC § 1201 et
144
+ seq.). Complying with the obligations of this License, including
145
+ sections 13 and 14 below, does not in itself require any such
146
+ covered work to be subject to such obligations.
147
+
148
+ 4. Conveying Verbatim Copies.
149
+
150
+ You may convey verbatim copies of the Program's source code as you
151
+ receive it, in any medium, provided that you conspicuously publish on
152
+ each copy an appropriate copyright notice; keep intact all notices
153
+ stating that this License and any non-permissive terms added in
154
+ accord with section 7 apply to the code; keep intact all notices of
155
+ absence of any warranty; and give all other recipients of the program
156
+ a copy of this License along with the Program.
157
+
158
+ You may charge any price or no price for each copy that you convey,
159
+ and you may offer support or warranty protection for a fee.
160
+
161
+ 5. Conveying Modified Source Versions.
162
+
163
+ You may convey a work based on the Program, or the modifications to
164
+ produce it from the Program, in the form of source code under the
165
+ terms of section 4, provided that you also meet all of these
166
+ conditions:
167
+
168
+ a) The work must carry prominent notices stating that you modified
169
+ it, and giving a relevant date.
170
+
171
+ b) The work must carry prominent notices stating that it is
172
+ released under this License and any conditions added under
173
+ section 7. This requirement modifies the requirement in section 4
174
+ to "keep intact all notices".
175
+
176
+ c) You must license the entire work, as a whole, under this
177
+ License to anyone who comes into possession of a copy. This
178
+ License will therefore apply, along with any applicable section 7
179
+ additional permissions, to the whole of the work, and all its
180
+ parts, regardless of how they are packaged. This License gives no
181
+ permission to license the work in any other way, but it does not
182
+ invalidate such permission if you have separately received it.
183
+
184
+ d) If the work has interactive user interfaces, each must display
185
+ Appropriate Legal Notices; however, if the Program has interactive
186
+ interfaces that do not display Appropriate Legal Notices, your
187
+ work need not make them do so.
188
+
189
+ A compilation of a covered work with other separate and independent
190
+ works, which are not by their nature extensions of the covered work,
191
+ and which are not combined with it such as to form a larger program,
192
+ in or on a volume of a storage or distribution medium, is called an
193
+ "aggregate" if the compilation and its resulting copyright are not
194
+ used to limit the access or legal rights of the compilation's users
195
+ beyond the scope of the individual works. Inclusion of a covered work
196
+ in an aggregate does not cause this License to apply to the other
197
+ parts of the aggregate.
198
+
199
+ 6. Conveying Non-Source Forms.
200
+
201
+ You may convey a covered work in object code form under the terms
202
+ of sections 4 and 5, provided that you also convey the
203
+ machine-readable Corresponding Source under the terms of this License,
204
+ in one of these ways:
205
+
206
+ a) Convey the object code in, or embodied in, a physical product
207
+ (including a physical distribution medium), accompanied by the
208
+ Corresponding Source fixed on a durable physical medium
209
+ customarily used for software interchange.
210
+
211
+ b) Convey the object code in, or embodied in, a physical product
212
+ (including a physical distribution medium), accompanied by a
213
+ written offer, valid for at least three years and valid for as
214
+ long as you offer spare parts or customer support for that product
215
+ model, to give anyone who possesses the object code either (1) a
216
+ copy of the Corresponding Source for all the software in the
217
+ product that is covered by this License, on a durable physical
218
+ medium customarily used for software interchange, for a price no
219
+ more than your customary cost of physically performing this
220
+ conveying of source, or (2) access to copy the Corresponding
221
+ Source from a network server at no charge.
222
+
223
+ c) Convey individual copies of the object code with a copy of the
224
+ written offer to provide the Corresponding Source. This
225
+ alternative is allowed only occasionally and noncommercially, and
226
+ only if you received the object code with such an offer, in
227
+ accord with subsection 6b.
228
+
229
+ d) Convey the object code by offering access from a designated
230
+ place (gratis or for a charge), and offer equivalent access to the
231
+ Corresponding Source in the same way through the same place at no
232
+ further charge. You need not require recipients to copy the
233
+ Corresponding Source along with the object code. If the place to
234
+ copy the object code is a network server, the Corresponding Source
235
+ may be on a different server operated by you or a third party,
236
+ but you must operate, or instruct your recipients to operate, the
237
+ Corresponding Source server in such a way as to ensure that the
238
+ Corresponding Source is available in a timely manner.
239
+
240
+ e) Convey the object code using peer-to-peer transmission, provided
241
+ you inform other peers where the object code and Corresponding
242
+ Source of the work are being offered to the public at no charge
243
+ under subsection 6d.
244
+
245
+ A separable portion of the object code, whose source code is excluded
246
+ from the Corresponding Source as a System Library, is not necessarily
247
+ a "User Product" under section 10.
248
+
249
+ A "User Product" is either (1) a "consumer product", which means any
250
+ tangible personal property which is normally used for personal, family,
251
+ or household purposes, or (2) anything designed or sold to be
252
+ incorporated into a dwelling or used in a personal context. In
253
+ determining whether a product is a consumer product, doubtful cases
254
+ shall be resolved in favor of coverage. For a particular product
255
+ received by a particular user, "normally used" refers to a expected
256
+ or common use of that class of product, regardless of the status of
257
+ the particular user or of the way in which the particular user
258
+ actually uses, or expects or is expected to use, the product. A product
259
+ is a consumer product regardless of whether the product has substantial
260
+ commercial, industrial or non-consumer uses, unless such uses represent
261
+ the only significant mode of use of the class of product.
262
+
263
+ "Installation Information" for a User Product means any methods,
264
+ procedures, authorization keys, or other information required to
265
+ install and execute modified versions of a covered work in that User
266
+ Product from a modified version of its Corresponding Source. The
267
+ information must suffice to ensure that the continued functioning of
268
+ the modified object code is in no case prevented or interfered with
269
+ solely because modification has been made.
270
+
271
+ If you convey an object code work under this section in, or with, or
272
+ specifically for use in, a User Product, the accompanying
273
+ Corresponding Source provided under section 6 must be accompanied by
274
+ the Installation Information. But this requirement does not apply if
275
+ neither you nor any third party retains the ability to install
276
+ modified object code on the User Product (for example, the work has
277
+ been installed in ROM).
278
+
279
+ The requirement to provide Installation Information does not include
280
+ a requirement to continue to provide support service, warranty, or
281
+ updates for a work that has been modified or installed by the recipient,
282
+ or for the User Product in which it has been modified or installed.
283
+ Access to a network may be denied when the modification itself
284
+ materially and adversely affects the operation of the network or
285
+ violates the rules and protocols for communication across the network.
286
+
287
+ Corresponding Source conveyed, and Installation Information provided,
288
+ in accord with this section must be in a format that is publicly
289
+ documented (and available in source form), and must require no special
290
+ password or key for unpacking, reading or copying.
291
+
292
+ 7. Additional Terms.
293
+
294
+ "Additional permissions" are terms that supplement the terms of this
295
+ License by making exceptions from one or more of its conditions.
296
+ Additional permissions that are applicable to the entire Program shall
297
+ be treated as though they were included in this License, to the extent
298
+ that they are valid under applicable law. If additional permissions
299
+ apply only to part of the program, that part may be used separately
300
+ under those permissions, but the entire program remains governed by
301
+ this License without regard to the additional permissions.
302
+
303
+ When you convey a covered work, you may at your option remove any
304
+ additional permissions from that copy, or from any part of it. (An
305
+ additional permission may be written to require its own removal in
306
+ certain cases when you modify the work.) You may place additional
307
+ permissions on material added by you, for which you have or can give
308
+ appropriate copyright permission.
309
+
310
+ Notwithstanding any other provision of this License, for material you
311
+ add to a covered work, you may (if authorized by the copyright holders
312
+ of that material) supplement the terms of this License with terms:
313
+
314
+ a) Disclaiming warranty or limiting liability differently from the
315
+ terms of sections 15 and 16 of this License; or
316
+
317
+ b) Requiring preservation of reasonable legal notices or author
318
+ attributions in that material or in the Appropriate Legal Notices
319
+ displayed by works containing it; or
320
+
321
+ c) Prohibiting misrepresentation of the origin of that material, or
322
+ requiring that modified versions of such material be marked in
323
+ reasonable ways as different from the original version; or
324
+
325
+ d) Limiting the use for publicity purposes of names of licensors
326
+ or authors of the work; or
327
+
328
+ e) Declining to grant rights under trademark law for use of some
329
+ trade names, trademarks, or service marks; or
330
+
331
+ f) Requiring indemnification of licensors and authors of that
332
+ material by anyone who conveys the material (or modified
333
+ versions of it) with contractual assumptions of liability to the
334
+ recipient, for any damages that these contractual assumptions
335
+ directly impose on those licensors and authors.
336
+
337
+ All other non-permissive additional terms are considered "further
338
+ restrictions" within the meaning of section 10. If the Program as you
339
+ received it, or any part of it, contains a notice stating that it is
340
+ governed by this License along with a further restriction, you may
341
+ remove that further restriction. If a license document contains a
342
+ further restriction but permits relicensing or conveying under this
343
+ License, you may add to a covered work material governed by the terms
344
+ of that license document, provided that the further restriction does
345
+ not survive such relicensing or conveying.
346
+
347
+ If you add terms to a covered work in accord with this section, you
348
+ must place, in the relevant source files, a statement of the
349
+ additional terms that apply to those files, or a notice indicating
350
+ where to find the applicable terms.
351
+
352
+ Additional terms, permissive or non-permissive, may be stated in the
353
+ form of a separately written license, or stated as exceptions; the
354
+ above requirements apply either way.
355
+
356
+ 8. Termination.
357
+
358
+ You may not propagate or modify a covered work except as expressly
359
+ provided under this License. Any attempt otherwise is void, and will
360
+ automatically terminate your rights under this License (including any
361
+ patent licenses granted under the third paragraph of section 11).
362
+
363
+ However, if you cease all violation of this License, then your
364
+ license is automatically reinstated, provided you first cure the
365
+ violation within 60 days of receiving notice, or such later date as
366
+ the
367
+ license extends reinstatement. If you violate this License after
368
+ reinstatement, your rights terminate permanently.
369
+
370
+ Propagation or modification of a covered work under section 10 is
371
+ infringement of copyright, and will terminate your rights under this
372
+ License, including any patent licenses granted under the third
373
+ paragraph of section 11.
374
+
375
+ However, no other rights terminate solely because of changes to
376
+ patent laws or regulations made after the License was issued.
377
+
378
+ 9. Acceptance Not Required for Having Copies.
379
+
380
+ You are not required to accept this License in order to receive or
381
+ run a copy of the Program. Ancillary propagation of a covered work
382
+ occurring solely as a consequence of using peer-to-peer transmission
383
+ to receive a copy likewise does not require acceptance. However,
384
+ nothing other than this License grants you permission to propagate or
385
+ modify any covered work. These actions infringe copyright if you do
386
+ not accept this License.
387
+
388
+ 10. Automatic Licensing of Downstream Recipients.
389
+
390
+ Each time you convey a covered work, the recipient automatically
391
+ receives a license from the original licensors, to run, modify and
392
+ propagate that work, subject to this License. You are not responsible
393
+ for enforcing compliance by third parties with this License.
394
+
395
+ An "entity transaction" transferring control of an organization, or
396
+ substantially all assets of one, or subdividing an organization, or
397
+ merforming organizations, or merging organizations. If propagation
398
+ of a covered work results from an entity transaction, each party to
399
+ that transaction who receives a copy of the work also receives
400
+ whatever licenses to the work the party's predecessor in interest had
401
+ or could give under the previous paragraph, plus a right to
402
+ possession of the Corresponding Source of the work from the
403
+ predecessor in interest, or if the predecessor in interest does not
404
+ have the Corresponding Source, then the recipient may acquire it at
405
+ no charge.
406
+
407
+ You may not impose any further restrictions on the exercise of the
408
+ rights granted or affirmed under this License. For example, you may
409
+ not impose a license fee, royalty, or other charge for exercise of
410
+ rights under this License. You may not initiate litigation (including
411
+ a cross-claim or counterclaim in a lawsuit) alleging that any patent
412
+ claim is infringed by making, using, selling, offering for sale, or
413
+ importing the Program or any portion of it.
414
+
415
+ 11. Patents.
416
+
417
+ A "contributor" is a copyright holder who authorizes use under this
418
+ License of the Program or a work on which the Program is based. The
419
+ work thus licensed is called the contributor's "contributor version".
420
+
421
+ A contributor's "essential patent claims" are all patent claims
422
+ owned or controlled by the contributor, whether already acquired or
423
+ hereafter acquired, that would be infringed by some manner, permitted
424
+ by this License, of making, using, or selling its contributor version,
425
+ but do not include claims that would be infringed only as a
426
+ consequence of further modification of the contributor version. For
427
+ purposes of this definition, "control" includes the right to grant
428
+ patent sublicenses in a manner consistent with the requirements of
429
+ this License.
430
+
431
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
432
+ patent license under the contributor's essential patent claims to
433
+ make, use, sell, offer for sale, and otherwise dispose of, modify,
434
+ and propagate the contents of its contributor version.
435
+
436
+ In the following three paragraphs, a "patent license" is any express
437
+ agreement or commitment, however denominated, not to enforce a patent
438
+ (but not only as incidental consequence of another license or action).
439
+ To "grant" such a patent license to a party means to make such an
440
+ agreement or commitment not to enforce a patent against the party.
441
+
442
+ If you convey a covered work, knowingly relying on a patent license,
443
+ and the Corresponding Source of the work is not available for anyone
444
+ to copy, free of charge and under the terms of this License, through a
445
+ publicly available network server or other readily accessible means,
446
+ then you must either (1) cause the Corresponding Source to be so
447
+ available, or (2) arrange to deprive yourself of any benefit of the
448
+ patent license for this particular work. This requirement applies
449
+ if the reproduction, a patent license grant was the primary
450
+ consideration for granting the rights to use the covered work. If you
451
+ perceive that granting the patent license would be inconsistent with
452
+ the License's protection of the users' public interest, then you may
453
+ not convey the covered work.
454
+
455
+ If, notwithstanding paragraph (above), circumstances arise in which
456
+ a court of competent jurisdiction determines that a patent license
457
+ infringed by making, using, selling, offering for sale, or importing
458
+ the
459
+ Program is not enforceable against you because of conflicts with the
460
+ patent laws of your jurisdiction, then the only remedy you have is to
461
+ cease all violation of this License. If you have not actually
462
+ acquainted with a patent license, your license is automatically
463
+ reinstated, and you may continue to make, the Program may be
464
+ implied, including warranty. For the precise terms of the license
465
+ and conditions for copying, see the License.
466
+
467
+ The freedom of the user of the Program and of any work based on
468
+ the Program to run the program under the terms of this License, and
469
+ to make, modify, and re-license them, as evidenced by the offer of
470
+ the Contributor to provide the Corresponding Source. However, the
471
+ mere availability of the source under AGPL does not in itself imply
472
+ that the user of the program is obligated to provide warranty service
473
+ or to make available source code for modified versions of the
474
+ Program.
475
+
476
+ 12. No Surrender of Others' Freedom.
477
+
478
+ If conditions are imposed on you (whether by court order, agreement
479
+ or otherwise) that contradict the conditions of this License, they do
480
+ not excuse you from the conditions of this License. If you cannot
481
+ convey a covered work so as to satisfy simultaneously your
482
+ obligations under this License and any other pertinent obligations,
483
+ then as a consequence you may not convey the covered work at all.
484
+
485
+ For example, if you agree to terms that obligate you to collect a
486
+ royalty for further conveying from those to whom you convey the
487
+ Program, the only way you could satisfy both those terms and this
488
+ License would be to refrain entirely from conveying the Program.
489
+
490
+ 13. Remote Network Interaction; Use with the GNU General Public License.
491
+
492
+ Notwithstanding any other provision of this License, if you modify
493
+ the Program, your modified version must prominently offer all
494
+ interactions with the network server (typically by accepting
495
+ interconnection over a network through a protocol or library) an
496
+ opportunity to download a copy of the Corresponding Source of your
497
+ version by providing access to the Corresponding Source from a
498
+ network server at no charge, through some standard or customary means
499
+ of facilitating copying of software. This applies to modified works,
500
+ regardless of the license they are released under.
501
+
502
+ For the purposes of this section, "modify" includes any derivative
503
+ work that incorporates or links to the Program, or any portion of it,
504
+ whether in source or object form. Linking the Program with a separate
505
+ work, not based on the Program, with the purpose of providing
506
+ functional interfaces to users, is not modifying the Program; but if
507
+ you link the Program with a separate work that links to the Program,
508
+ the section 13 requirement to provide corresponding source applies
509
+ to the entire combined work.
510
+
511
+ 14. Revised Versions of this License.
512
+
513
+ The Free Software Foundation may publish revised or new versions of
514
+ the GNU Affero General Public License from time to time. Such new
515
+ versions will be similar in spirit to the present version, but may
516
+ differ in detail to address new problems or concerns.
517
+
518
+ Each version is given a distinguishing version number. If the
519
+ Program specifies that a certain numbered version of this License
520
+ "or any later version" applies to it, you have the option of following
521
+ the terms and conditions either of that numbered version or of any
522
+ later version published by the Free Software Foundation. If the
523
+ Program does not specify a version number of this License, you may
524
+ choose any version ever published by the Free Software Foundation.
525
+
526
+ If the Program specifies that a proxy can decide whether future
527
+ versions of this License shall apply, that proxy's public statement of
528
+ acceptance of any version is an irrevocable authorization by you to
529
+ select that version for the Program.
530
+
531
+ Later license versions may give you additional or different
532
+ permissions. However, no additional obligations are imposed on any
533
+ author or copyright holder as a result of your relying on the
534
+ License.
535
+
536
+ 15. Disclaimer of Warranty.
537
+
538
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
539
+ APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE
540
+ COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS"
541
+ WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED,
542
+ INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
543
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK
544
+ AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD
545
+ THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY
546
+ SERVICING, REPAIR OR CORRECTION.
547
+
548
+ 16. Limitation of Liability.
549
+
550
+ IN NO EVENT UNLESS REQUIRED BY APPLICATIVE LAW OR AGREED TO IN
551
+ WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES
552
+ AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR
553
+ DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL
554
+ DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM
555
+ (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED
556
+ INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE
557
+ OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH
558
+ HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
559
+ DAMAGES.
560
+
561
+ 17. Interpretation of Sections 15 and 16.
562
+
563
+ If the disclaimer of warranty and limitation of liability provided
564
+ above cannot be given local legal effect according to their terms,
565
+ reviewing courts shall apply local law that most closely approximates
566
+ an absolute waiver of all civil liability in connection with the
567
+ Program, unless a warranty or liability of the Program is explicitly
568
+ required of the public interest or any third party's rights, this
569
+ License is not intended to permit, and shall not be construed as
570
+ permitting, the parties' liability to be enforced.
571
+
572
+ END OF TERMS AND CONDITIONS
573
+
574
+ How to Apply These Terms to Your New Programs
575
+
576
+ If you develop a new program, and you want it to be of the greatest
577
+ possible use to the public, the best way to achieve this is to make it
578
+ free software which everyone can redistribute and change under these
579
+ terms.
580
+
581
+ To do so, attach the following notices to the program. It is safest
582
+ to attach them to the start of each source file to most effectively
583
+ state the exclusion of warranty; and each file should have at least
584
+ the "copyright" line and a pointer to where the full notice is found.
585
+
586
+ <one line to give the program's name and a brief idea of what it does.>
587
+ Copyright (C) 2026 Royce
588
+
589
+ This program is free software: you can redistribute it and/or modify
590
+ it under the terms of the GNU Affero General Public License as
591
+ published by the Free Software Foundation, either version 3 of the
592
+ License, or (at your option) any later version.
593
+
594
+ This program is distributed in the hope that it will be useful,
595
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
596
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
597
+ GNU Affero General Public License for more details.
598
+
599
+ You should have received a copy of the GNU Affero General Public License
600
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
601
+
602
+ Also add information on how to contact you by electronic and paper mail.
603
+
604
+ If your software can interact with users through a computer network,
605
+ you should make sure that users can download the source code of your
606
+ version by providing access to the Corresponding Source from a
607
+ network server at no charge, and that the AGPL's section 13 network
608
+ clause applies (this is the famous "Affero" copyleft — it forces SaaS
609
+ users to publish their modifications or buy a commercial license).
610
+
611
+ You should also get your employer (if you work as a programmer) or school,
612
+ if any, to sign a "copyright disclaimer" for the program, if necessary.
613
+ For more information on this, and how to apply and follow the GNU AGPL,
614
+ see <https://www.gnu.org/licenses/>.
615
+
616
+ The GNU General Public License does not permit incorporating your
617
+ program into proprietary programs. If your program is a subroutine
618
+ library, you may consider it more useful to permit linking proprietary
619
+ applications with the library. If this is what you want to do, use
620
+ the GNU Library General Public License instead of this License.