contextspy 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 (43) hide show
  1. contextspy-0.1.0/LICENSE +188 -0
  2. contextspy-0.1.0/MANIFEST.in +5 -0
  3. contextspy-0.1.0/NOTICE +4 -0
  4. contextspy-0.1.0/PKG-INFO +720 -0
  5. contextspy-0.1.0/README.md +497 -0
  6. contextspy-0.1.0/contextspy/__init__.py +14 -0
  7. contextspy-0.1.0/contextspy/_web/assets/html2canvas.esm-QH1iLAAe.js +22 -0
  8. contextspy-0.1.0/contextspy/_web/assets/index-BiiTQV4a.css +1 -0
  9. contextspy-0.1.0/contextspy/_web/assets/index-Dwoc75aw.js +322 -0
  10. contextspy-0.1.0/contextspy/_web/assets/index.es-BSy-cRrH.js +18 -0
  11. contextspy-0.1.0/contextspy/_web/assets/purify.es-BaNf_EpD.js +2 -0
  12. contextspy-0.1.0/contextspy/_web/index.html +13 -0
  13. contextspy-0.1.0/contextspy/analysis/__init__.py +13 -0
  14. contextspy-0.1.0/contextspy/analysis/classifier.py +199 -0
  15. contextspy-0.1.0/contextspy/analysis/providers.py +436 -0
  16. contextspy-0.1.0/contextspy/analysis/tokenizer.py +35 -0
  17. contextspy-0.1.0/contextspy/api/__init__.py +13 -0
  18. contextspy-0.1.0/contextspy/api/main.py +148 -0
  19. contextspy-0.1.0/contextspy/api/routers/__init__.py +13 -0
  20. contextspy-0.1.0/contextspy/api/routers/proxy.py +61 -0
  21. contextspy-0.1.0/contextspy/api/routers/requests.py +56 -0
  22. contextspy-0.1.0/contextspy/api/routers/sessions.py +116 -0
  23. contextspy-0.1.0/contextspy/api/routers/stats.py +57 -0
  24. contextspy-0.1.0/contextspy/api/routers/tokenize.py +43 -0
  25. contextspy-0.1.0/contextspy/api/websocket.py +48 -0
  26. contextspy-0.1.0/contextspy/cli.py +652 -0
  27. contextspy-0.1.0/contextspy/config.py +127 -0
  28. contextspy-0.1.0/contextspy/db/__init__.py +13 -0
  29. contextspy-0.1.0/contextspy/db/crud.py +449 -0
  30. contextspy-0.1.0/contextspy/db/database.py +99 -0
  31. contextspy-0.1.0/contextspy/db/models.py +163 -0
  32. contextspy-0.1.0/contextspy/proxy/__init__.py +13 -0
  33. contextspy-0.1.0/contextspy/proxy/addon.py +307 -0
  34. contextspy-0.1.0/contextspy/proxy/cert.py +109 -0
  35. contextspy-0.1.0/contextspy/proxy/runner.py +270 -0
  36. contextspy-0.1.0/contextspy.egg-info/PKG-INFO +720 -0
  37. contextspy-0.1.0/contextspy.egg-info/SOURCES.txt +41 -0
  38. contextspy-0.1.0/contextspy.egg-info/dependency_links.txt +1 -0
  39. contextspy-0.1.0/contextspy.egg-info/entry_points.txt +2 -0
  40. contextspy-0.1.0/contextspy.egg-info/requires.txt +12 -0
  41. contextspy-0.1.0/contextspy.egg-info/top_level.txt +1 -0
  42. contextspy-0.1.0/pyproject.toml +53 -0
  43. contextspy-0.1.0/setup.cfg +4 -0
@@ -0,0 +1,188 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship made available under
36
+ the License, as indicated by a copyright notice that is included in
37
+ or attached to the work (an example is provided in the Appendix below).
38
+
39
+ "Derivative Works" shall mean any work, whether in Source or Object
40
+ form, that is based on (or derived from) the Work and for which the
41
+ editorial revisions, annotations, elaborations, or other modifications
42
+ represent, as a whole, an original work of authorship. For the purposes
43
+ of this License, Derivative Works shall not include works that remain
44
+ separable from, or merely link (or bind by name) to the interfaces of,
45
+ the Work and Derivative Works thereof.
46
+
47
+ "Contribution" shall mean, as submitted to the Licensor for inclusion
48
+ in the Work by the copyright owner or by an individual or Legal Entity
49
+ authorized to submit on behalf of the copyright owner, any work of
50
+ authorship, including the original version of the Work and any
51
+ modifications or additions to that Work or Derivative Works of the Work.
52
+
53
+ "Contributor" shall mean Licensor and any Legal Entity on behalf of
54
+ whom a Contribution has been received by the Licensor and included
55
+ within the Work.
56
+
57
+ 2. Grant of Copyright License. Subject to the terms and conditions of
58
+ this License, each Contributor hereby grants to You a perpetual,
59
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
60
+ copyright license to reproduce, prepare Derivative Works of,
61
+ publicly display, publicly perform, sublicense, and distribute the
62
+ Work and such Derivative Works in Source or Object form.
63
+
64
+ 3. Grant of Patent License. Subject to the terms and conditions of
65
+ this License, each Contributor hereby grants to You a perpetual,
66
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
67
+ (except as stated in this section) patent license to make, have made,
68
+ use, offer to sell, sell, import, and otherwise transfer the Work,
69
+ where such license applies only to those patent claims licensable
70
+ by such Contributor that are necessarily infringed by their
71
+ Contribution(s) alone or by the combination of their Contribution(s)
72
+ with the Work to which such Contribution(s) was submitted. If You
73
+ institute patent litigation against any entity (including a cross-claim
74
+ or counterclaim in a lawsuit) alleging that the Work or any
75
+ Contribution embodied within the Work constitutes direct or
76
+ contributory patent infringement, then any patent licenses granted to
77
+ You under this License for that Work shall terminate as of the date
78
+ such litigation is filed.
79
+
80
+ 4. Redistribution. You may reproduce and distribute copies of the
81
+ Work or Derivative Works thereof in any medium, with or without
82
+ modifications, and in Source or Object form, provided that You
83
+ meet the following conditions:
84
+
85
+ (a) You must give any other recipients of the Work or Derivative
86
+ Works a copy of this License; and
87
+
88
+ (b) You must cause any modified files to carry prominent notices
89
+ stating that You changed the files; and
90
+
91
+ (c) You must retain, in the Source form of any Derivative Works
92
+ that You distribute, all copyright, patent, trademark, and
93
+ attribution notices from the Source form of the Work,
94
+ excluding those notices that do not pertain to any part of
95
+ the Derivative Works; and
96
+
97
+ (d) If the Work includes a "NOTICE" text file as part of its
98
+ distribution, You must include a readable copy of the
99
+ attribution notices contained within such NOTICE file, in
100
+ at least one of the following places: within a NOTICE text
101
+ file distributed as part of the Derivative Works; within
102
+ the Source form or documentation, if provided along with the
103
+ Derivative Works; or, within a display generated by the
104
+ Derivative Works, if and wherever such third-party notices
105
+ normally appear. The contents of the NOTICE file are for
106
+ informational purposes only and do not modify the License.
107
+ You may add Your own attribution notices within Derivative
108
+ Works that You distribute, alongside or as an addendum to
109
+ the NOTICE text from the Work, provided that such additional
110
+ attribution notices cannot be construed as modifying the License.
111
+
112
+ You may add Your own license statement for Your modifications and
113
+ may provide additional grant of rights to use, copy, modify, merge,
114
+ publish, distribute, sublicense, and/or sell copies of the
115
+ Contribution, either on an original or modified basis, under the same
116
+ or a different open source license (subject to the conditions of that
117
+ license).
118
+
119
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
120
+ any Contribution intentionally submitted for inclusion in the Work
121
+ by You to the Licensor shall be under the terms and conditions of
122
+ this License, without any additional terms or conditions.
123
+ Notwithstanding the above, nothing herein shall supersede or modify
124
+ the terms of any separate license agreement you may have executed
125
+ with Licensor regarding such Contributions.
126
+
127
+ 6. Trademarks. This License does not grant permission to use the trade
128
+ names, trademarks, service marks, or product names of the Licensor,
129
+ except as required for reasonable and customary use in describing the
130
+ origin of the Work and reproducing the content of the NOTICE file.
131
+
132
+ 7. Disclaimer of Warranty. Unless required by applicable law or
133
+ agreed to in writing, Licensor provides the Work (and each
134
+ Contributor provides its Contributions) on an "AS IS" BASIS,
135
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
136
+ implied, including, without limitation, any warranties or conditions
137
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
138
+ PARTICULAR PURPOSE. You are solely responsible for determining the
139
+ appropriateness of using or reproducing the Work and assume any
140
+ risks associated with Your exercise of permissions under this License.
141
+
142
+ 8. Limitation of Liability. In no event and under no legal theory,
143
+ whether in tort (including negligence), contract, or otherwise,
144
+ unless required by applicable law (such as deliberate and grossly
145
+ negligent acts) or agreed to in writing, shall any Contributor be
146
+ liable to You for damages, including any direct, indirect, special,
147
+ incidental, or exemplary damages of any character arising as a
148
+ result of this License or out of the use or inability to use the
149
+ Work (including but not limited to damages for loss of goodwill,
150
+ work stoppage, computer failure or malfunction, or all other
151
+ commercial damages or losses), even if such Contributor has been
152
+ advised of the possibility of such damages.
153
+
154
+ 9. Accepting Warranty or Liability. While redistributing the Work or
155
+ Derivative Works thereof, You may choose to offer, and charge a fee
156
+ for, acceptance of support, warranty, indemnity, or other liability
157
+ obligations and/or rights consistent with this License. However, in
158
+ accepting such obligations, You may offer such obligations only on
159
+ Your own behalf and on Your sole responsibility, not on behalf of
160
+ any other Contributor, and only if You agree to indemnify, defend,
161
+ and hold each Contributor harmless for any liability incurred by,
162
+ or claims asserted against, such Contributor by reason of your
163
+ accepting any warranty or additional liability.
164
+
165
+ END OF TERMS AND CONDITIONS
166
+
167
+ APPENDIX: How to apply the Apache License to your work.
168
+
169
+ To apply the Apache License to your work, attach the following
170
+ boilerplate notice, with the fields enclosed by brackets "[]"
171
+ replaced with your own identifying information. (Don't include
172
+ the brackets!) The text should be enclosed in the appropriate
173
+ comment syntax for the file format please. Also, we recommend
174
+ that a file and directory names be included before the boilerplate.
175
+
176
+ Copyright [yyyy] [name of copyright owner]
177
+
178
+ Licensed under the Apache License, Version 2.0 (the "License");
179
+ you may not use this file except in compliance with the License.
180
+ You may obtain a copy of the License at
181
+
182
+ http://www.apache.org/licenses/LICENSE-2.0
183
+
184
+ Unless required by applicable law or agreed to in writing, software
185
+ distributed under the License is distributed on an "AS IS" BASIS,
186
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
187
+ See the License for the specific language governing permissions and
188
+ limitations under the License.
@@ -0,0 +1,5 @@
1
+ recursive-include contextspy/_web *
2
+ include README.md
3
+ include pyproject.toml
4
+ include LICENSE
5
+ include NOTICE
@@ -0,0 +1,4 @@
1
+ TokenSpy (ContextSpy)
2
+ Copyright 2026 Rimantas Zukaitis
3
+
4
+ This product includes software developed by Rimantas Zukaitis.