Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +3 -0
- evalkit_internvl/lib/python3.10/site-packages/altair-5.5.0.dist-info/INSTALLER +1 -0
- evalkit_internvl/lib/python3.10/site-packages/altair-5.5.0.dist-info/METADATA +255 -0
- evalkit_internvl/lib/python3.10/site-packages/altair-5.5.0.dist-info/RECORD +103 -0
- evalkit_internvl/lib/python3.10/site-packages/altair-5.5.0.dist-info/REQUESTED +0 -0
- evalkit_internvl/lib/python3.10/site-packages/altair-5.5.0.dist-info/WHEEL +4 -0
- evalkit_internvl/lib/python3.10/site-packages/altair-5.5.0.dist-info/licenses/LICENSE +28 -0
- evalkit_internvl/lib/python3.10/site-packages/attrs/__init__.py +67 -0
- evalkit_internvl/lib/python3.10/site-packages/attrs/__init__.pyi +252 -0
- evalkit_internvl/lib/python3.10/site-packages/attrs/__pycache__/__init__.cpython-310.pyc +0 -0
- evalkit_internvl/lib/python3.10/site-packages/attrs/__pycache__/converters.cpython-310.pyc +0 -0
- evalkit_internvl/lib/python3.10/site-packages/attrs/__pycache__/exceptions.cpython-310.pyc +0 -0
- evalkit_internvl/lib/python3.10/site-packages/attrs/__pycache__/filters.cpython-310.pyc +0 -0
- evalkit_internvl/lib/python3.10/site-packages/attrs/__pycache__/setters.cpython-310.pyc +0 -0
- evalkit_internvl/lib/python3.10/site-packages/attrs/__pycache__/validators.cpython-310.pyc +0 -0
- evalkit_internvl/lib/python3.10/site-packages/attrs/converters.py +3 -0
- evalkit_internvl/lib/python3.10/site-packages/attrs/exceptions.py +3 -0
- evalkit_internvl/lib/python3.10/site-packages/attrs/filters.py +3 -0
- evalkit_internvl/lib/python3.10/site-packages/attrs/py.typed +0 -0
- evalkit_internvl/lib/python3.10/site-packages/attrs/setters.py +3 -0
- evalkit_internvl/lib/python3.10/site-packages/attrs/validators.py +3 -0
- evalkit_internvl/lib/python3.10/site-packages/decord.libs/libswresample-230d9f46.so.3.3.100 +3 -0
- evalkit_internvl/lib/python3.10/site-packages/et_xmlfile-2.0.0.dist-info/LICENCE.python +298 -0
- evalkit_internvl/lib/python3.10/site-packages/et_xmlfile-2.0.0.dist-info/LICENCE.rst +23 -0
- evalkit_internvl/lib/python3.10/site-packages/et_xmlfile-2.0.0.dist-info/METADATA +51 -0
- evalkit_internvl/lib/python3.10/site-packages/et_xmlfile-2.0.0.dist-info/REQUESTED +0 -0
- evalkit_internvl/lib/python3.10/site-packages/kiwisolver/__init__.py +42 -0
- evalkit_internvl/lib/python3.10/site-packages/kiwisolver/__pycache__/__init__.cpython-310.pyc +0 -0
- evalkit_internvl/lib/python3.10/site-packages/kiwisolver/_cext.pyi +228 -0
- evalkit_internvl/lib/python3.10/site-packages/kiwisolver/exceptions.py +51 -0
- evalkit_internvl/lib/python3.10/site-packages/kiwisolver/py.typed +0 -0
- evalkit_internvl/lib/python3.10/site-packages/linkify_it_py-2.0.3.dist-info/INSTALLER +1 -0
- evalkit_internvl/lib/python3.10/site-packages/linkify_it_py-2.0.3.dist-info/LICENSE +48 -0
- evalkit_internvl/lib/python3.10/site-packages/linkify_it_py-2.0.3.dist-info/METADATA +265 -0
- evalkit_internvl/lib/python3.10/site-packages/linkify_it_py-2.0.3.dist-info/RECORD +15 -0
- evalkit_internvl/lib/python3.10/site-packages/linkify_it_py-2.0.3.dist-info/REQUESTED +0 -0
- evalkit_internvl/lib/python3.10/site-packages/linkify_it_py-2.0.3.dist-info/WHEEL +5 -0
- evalkit_internvl/lib/python3.10/site-packages/linkify_it_py-2.0.3.dist-info/top_level.txt +1 -0
- evalkit_internvl/lib/python3.10/site-packages/parso/__pycache__/__init__.cpython-310.pyc +0 -0
- evalkit_internvl/lib/python3.10/site-packages/parso/__pycache__/_compatibility.cpython-310.pyc +0 -0
- evalkit_internvl/lib/python3.10/site-packages/parso/__pycache__/cache.cpython-310.pyc +0 -0
- evalkit_internvl/lib/python3.10/site-packages/parso/__pycache__/file_io.cpython-310.pyc +0 -0
- evalkit_internvl/lib/python3.10/site-packages/parso/__pycache__/grammar.cpython-310.pyc +0 -0
- evalkit_internvl/lib/python3.10/site-packages/parso/__pycache__/normalizer.cpython-310.pyc +0 -0
- evalkit_internvl/lib/python3.10/site-packages/parso/__pycache__/parser.cpython-310.pyc +0 -0
- evalkit_internvl/lib/python3.10/site-packages/parso/__pycache__/tree.cpython-310.pyc +0 -0
- evalkit_internvl/lib/python3.10/site-packages/parso/__pycache__/utils.cpython-310.pyc +0 -0
- evalkit_internvl/lib/python3.10/site-packages/parso/_compatibility.py +3 -0
- evalkit_internvl/lib/python3.10/site-packages/parso/pgen2/__init__.py +10 -0
- evalkit_internvl/lib/python3.10/site-packages/parso/pgen2/__pycache__/__init__.cpython-310.pyc +0 -0
.gitattributes
CHANGED
|
@@ -604,3 +604,6 @@ evalkit_internvl/lib/python3.10/site-packages/transformers/__pycache__/modeling_
|
|
| 604 |
evalkit_internvl/lib/python3.10/site-packages/sympy/parsing/latex/_antlr/__pycache__/latexparser.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
|
| 605 |
evalkit_internvl/lib/python3.10/site-packages/torch/_refs/__pycache__/__init__.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
|
| 606 |
evalkit_tf437/lib/python3.10/site-packages/sklearn/utils/_random.cpython-310-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
| 604 |
evalkit_internvl/lib/python3.10/site-packages/sympy/parsing/latex/_antlr/__pycache__/latexparser.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
|
| 605 |
evalkit_internvl/lib/python3.10/site-packages/torch/_refs/__pycache__/__init__.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
|
| 606 |
evalkit_tf437/lib/python3.10/site-packages/sklearn/utils/_random.cpython-310-x86_64-linux-gnu.so filter=lfs diff=lfs merge=lfs -text
|
| 607 |
+
evalkit_internvl/lib/python3.10/site-packages/scipy.libs/libquadmath-96973f99-934c22de.so.0.0.0 filter=lfs diff=lfs merge=lfs -text
|
| 608 |
+
evalkit_internvl/lib/python3.10/site-packages/decord.libs/libswresample-230d9f46.so.3.3.100 filter=lfs diff=lfs merge=lfs -text
|
| 609 |
+
evalkit_internvl/lib/python3.10/site-packages/scipy.libs/libquadmath-96973f99.so.0.0.0 filter=lfs diff=lfs merge=lfs -text
|
evalkit_internvl/lib/python3.10/site-packages/altair-5.5.0.dist-info/INSTALLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
pip
|
evalkit_internvl/lib/python3.10/site-packages/altair-5.5.0.dist-info/METADATA
ADDED
|
@@ -0,0 +1,255 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.3
|
| 2 |
+
Name: altair
|
| 3 |
+
Version: 5.5.0
|
| 4 |
+
Summary: Vega-Altair: A declarative statistical visualization library for Python.
|
| 5 |
+
Project-URL: Documentation, https://altair-viz.github.io
|
| 6 |
+
Project-URL: Source, https://github.com/vega/altair
|
| 7 |
+
Author: Vega-Altair Contributors
|
| 8 |
+
License: Copyright (c) 2015-2023, Vega-Altair Developers
|
| 9 |
+
All rights reserved.
|
| 10 |
+
|
| 11 |
+
Redistribution and use in source and binary forms, with or without
|
| 12 |
+
modification, are permitted provided that the following conditions are met:
|
| 13 |
+
|
| 14 |
+
* Redistributions of source code must retain the above copyright notice, this
|
| 15 |
+
list of conditions and the following disclaimer.
|
| 16 |
+
|
| 17 |
+
* Redistributions in binary form must reproduce the above copyright notice,
|
| 18 |
+
this list of conditions and the following disclaimer in the documentation
|
| 19 |
+
and/or other materials provided with the distribution.
|
| 20 |
+
|
| 21 |
+
* Neither the name of vega-altair nor the names of its
|
| 22 |
+
contributors may be used to endorse or promote products derived from
|
| 23 |
+
this software without specific prior written permission.
|
| 24 |
+
|
| 25 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
| 26 |
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
| 27 |
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
| 28 |
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
| 29 |
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
| 30 |
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
| 31 |
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
| 32 |
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
| 33 |
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| 34 |
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| 35 |
+
|
| 36 |
+
Keywords: declarative,interactive,json,statistics,vega-lite,visualization
|
| 37 |
+
Classifier: Development Status :: 5 - Production/Stable
|
| 38 |
+
Classifier: Environment :: Console
|
| 39 |
+
Classifier: Intended Audience :: Science/Research
|
| 40 |
+
Classifier: License :: OSI Approved :: BSD License
|
| 41 |
+
Classifier: Natural Language :: English
|
| 42 |
+
Classifier: Programming Language :: Python :: 3.9
|
| 43 |
+
Classifier: Programming Language :: Python :: 3.10
|
| 44 |
+
Classifier: Programming Language :: Python :: 3.11
|
| 45 |
+
Classifier: Programming Language :: Python :: 3.12
|
| 46 |
+
Classifier: Programming Language :: Python :: 3.13
|
| 47 |
+
Classifier: Typing :: Typed
|
| 48 |
+
Requires-Python: >=3.9
|
| 49 |
+
Requires-Dist: jinja2
|
| 50 |
+
Requires-Dist: jsonschema>=3.0
|
| 51 |
+
Requires-Dist: narwhals>=1.14.2
|
| 52 |
+
Requires-Dist: packaging
|
| 53 |
+
Requires-Dist: typing-extensions>=4.10.0; python_version < '3.14'
|
| 54 |
+
Provides-Extra: all
|
| 55 |
+
Requires-Dist: altair-tiles>=0.3.0; extra == 'all'
|
| 56 |
+
Requires-Dist: anywidget>=0.9.0; extra == 'all'
|
| 57 |
+
Requires-Dist: numpy; extra == 'all'
|
| 58 |
+
Requires-Dist: pandas>=1.1.3; extra == 'all'
|
| 59 |
+
Requires-Dist: pyarrow>=11; extra == 'all'
|
| 60 |
+
Requires-Dist: vega-datasets>=0.9.0; extra == 'all'
|
| 61 |
+
Requires-Dist: vegafusion[embed]>=1.6.6; extra == 'all'
|
| 62 |
+
Requires-Dist: vl-convert-python>=1.7.0; extra == 'all'
|
| 63 |
+
Provides-Extra: dev
|
| 64 |
+
Requires-Dist: duckdb>=1.0; extra == 'dev'
|
| 65 |
+
Requires-Dist: geopandas; extra == 'dev'
|
| 66 |
+
Requires-Dist: hatch>=1.13.0; extra == 'dev'
|
| 67 |
+
Requires-Dist: ipython[kernel]; extra == 'dev'
|
| 68 |
+
Requires-Dist: mistune; extra == 'dev'
|
| 69 |
+
Requires-Dist: mypy; extra == 'dev'
|
| 70 |
+
Requires-Dist: pandas-stubs; extra == 'dev'
|
| 71 |
+
Requires-Dist: pandas>=1.1.3; extra == 'dev'
|
| 72 |
+
Requires-Dist: polars>=0.20.3; extra == 'dev'
|
| 73 |
+
Requires-Dist: pyarrow-stubs; extra == 'dev'
|
| 74 |
+
Requires-Dist: pytest; extra == 'dev'
|
| 75 |
+
Requires-Dist: pytest-cov; extra == 'dev'
|
| 76 |
+
Requires-Dist: pytest-xdist[psutil]~=3.5; extra == 'dev'
|
| 77 |
+
Requires-Dist: ruff>=0.6.0; extra == 'dev'
|
| 78 |
+
Requires-Dist: types-jsonschema; extra == 'dev'
|
| 79 |
+
Requires-Dist: types-setuptools; extra == 'dev'
|
| 80 |
+
Provides-Extra: doc
|
| 81 |
+
Requires-Dist: docutils; extra == 'doc'
|
| 82 |
+
Requires-Dist: jinja2; extra == 'doc'
|
| 83 |
+
Requires-Dist: myst-parser; extra == 'doc'
|
| 84 |
+
Requires-Dist: numpydoc; extra == 'doc'
|
| 85 |
+
Requires-Dist: pillow<10,>=9; extra == 'doc'
|
| 86 |
+
Requires-Dist: pydata-sphinx-theme>=0.14.1; extra == 'doc'
|
| 87 |
+
Requires-Dist: scipy; extra == 'doc'
|
| 88 |
+
Requires-Dist: sphinx; extra == 'doc'
|
| 89 |
+
Requires-Dist: sphinx-copybutton; extra == 'doc'
|
| 90 |
+
Requires-Dist: sphinx-design; extra == 'doc'
|
| 91 |
+
Requires-Dist: sphinxext-altair; extra == 'doc'
|
| 92 |
+
Provides-Extra: save
|
| 93 |
+
Requires-Dist: vl-convert-python>=1.7.0; extra == 'save'
|
| 94 |
+
Description-Content-Type: text/markdown
|
| 95 |
+
|
| 96 |
+
# Vega-Altair <a href="https://altair-viz.github.io/"><img align="right" src="https://altair-viz.github.io/_static/altair-logo-light.png" height="50"></img></a>
|
| 97 |
+
|
| 98 |
+
[](https://github.com/vega/altair/actions?query=workflow%3Abuild)
|
| 99 |
+
[](https://www.mypy-lang.org)
|
| 100 |
+
[](https://joss.theoj.org/papers/10.21105/joss.01057)
|
| 101 |
+
[](https://pypi.org/project/altair)
|
| 102 |
+
|
| 103 |
+
**Vega-Altair** is a declarative statistical visualization library for Python. With Vega-Altair, you can spend more time understanding your data and its meaning. Vega-Altair's
|
| 104 |
+
API is simple, friendly and consistent and built on top of the powerful
|
| 105 |
+
[Vega-Lite](https://github.com/vega/vega-lite) JSON specification. This elegant
|
| 106 |
+
simplicity produces beautiful and effective visualizations with a minimal amount of code.
|
| 107 |
+
|
| 108 |
+
*Vega-Altair was originally developed by [Jake Vanderplas](https://github.com/jakevdp) and [Brian
|
| 109 |
+
Granger](https://github.com/ellisonbg) in close collaboration with the [UW
|
| 110 |
+
Interactive Data Lab](https://idl.cs.washington.edu/).*
|
| 111 |
+
*The Vega-Altair open source project is not affiliated with Altair Engineering, Inc.*
|
| 112 |
+
|
| 113 |
+
## Documentation
|
| 114 |
+
|
| 115 |
+
See [Vega-Altair's Documentation Site](https://altair-viz.github.io) as well as the [Tutorial Notebooks](https://github.com/altair-viz/altair_notebooks). You can
|
| 116 |
+
run the notebooks directly in your browser by clicking on one of the following badges:
|
| 117 |
+
|
| 118 |
+
[](https://beta.mybinder.org/v2/gh/altair-viz/altair_notebooks/master)
|
| 119 |
+
[](https://colab.research.google.com/github/altair-viz/altair_notebooks/blob/master/notebooks/Index.ipynb)
|
| 120 |
+
|
| 121 |
+
## Example
|
| 122 |
+
|
| 123 |
+
Here is an example using Vega-Altair to quickly visualize and display a dataset with the native Vega-Lite renderer in the JupyterLab:
|
| 124 |
+
|
| 125 |
+
```python
|
| 126 |
+
import altair as alt
|
| 127 |
+
|
| 128 |
+
# load a simple dataset as a pandas DataFrame
|
| 129 |
+
from vega_datasets import data
|
| 130 |
+
cars = data.cars()
|
| 131 |
+
|
| 132 |
+
alt.Chart(cars).mark_point().encode(
|
| 133 |
+
x='Horsepower',
|
| 134 |
+
y='Miles_per_Gallon',
|
| 135 |
+
color='Origin',
|
| 136 |
+
)
|
| 137 |
+
```
|
| 138 |
+
|
| 139 |
+

|
| 140 |
+
|
| 141 |
+
One of the unique features of Vega-Altair, inherited from Vega-Lite, is a declarative grammar of not just visualization, but _interaction_.
|
| 142 |
+
With a few modifications to the example above we can create a linked histogram that is filtered based on a selection of the scatter plot.
|
| 143 |
+
|
| 144 |
+
```python
|
| 145 |
+
import altair as alt
|
| 146 |
+
from vega_datasets import data
|
| 147 |
+
|
| 148 |
+
source = data.cars()
|
| 149 |
+
|
| 150 |
+
brush = alt.selection_interval()
|
| 151 |
+
|
| 152 |
+
points = alt.Chart(source).mark_point().encode(
|
| 153 |
+
x='Horsepower',
|
| 154 |
+
y='Miles_per_Gallon',
|
| 155 |
+
color=alt.when(brush).then("Origin").otherwise(alt.value("lightgray"))
|
| 156 |
+
).add_params(
|
| 157 |
+
brush
|
| 158 |
+
)
|
| 159 |
+
|
| 160 |
+
bars = alt.Chart(source).mark_bar().encode(
|
| 161 |
+
y='Origin',
|
| 162 |
+
color='Origin',
|
| 163 |
+
x='count(Origin)'
|
| 164 |
+
).transform_filter(
|
| 165 |
+
brush
|
| 166 |
+
)
|
| 167 |
+
|
| 168 |
+
points & bars
|
| 169 |
+
```
|
| 170 |
+
|
| 171 |
+

|
| 172 |
+
|
| 173 |
+
## Features
|
| 174 |
+
|
| 175 |
+
* Carefully-designed, declarative Python API.
|
| 176 |
+
* Auto-generated internal Python API that guarantees visualizations are type-checked and
|
| 177 |
+
in full conformance with the [Vega-Lite](https://github.com/vega/vega-lite)
|
| 178 |
+
specification.
|
| 179 |
+
* Display visualizations in JupyterLab, Jupyter Notebook, Visual Studio Code, on GitHub and
|
| 180 |
+
[nbviewer](https://nbviewer.jupyter.org/), and many more.
|
| 181 |
+
* Export visualizations to various formats such as PNG/SVG images, stand-alone HTML pages and the
|
| 182 |
+
[Online Vega-Lite Editor](https://vega.github.io/editor/#/).
|
| 183 |
+
* Serialize visualizations as JSON files.
|
| 184 |
+
|
| 185 |
+
## Installation
|
| 186 |
+
|
| 187 |
+
Vega-Altair can be installed with:
|
| 188 |
+
```bash
|
| 189 |
+
pip install altair
|
| 190 |
+
```
|
| 191 |
+
|
| 192 |
+
If you are using the conda package manager, the equivalent is:
|
| 193 |
+
```bash
|
| 194 |
+
conda install altair -c conda-forge
|
| 195 |
+
```
|
| 196 |
+
|
| 197 |
+
For full installation instructions, please see [the documentation](https://altair-viz.github.io/getting_started/installation.html).
|
| 198 |
+
|
| 199 |
+
## Getting Help
|
| 200 |
+
|
| 201 |
+
If you have a question that is not addressed in the documentation,
|
| 202 |
+
you can post it on [StackOverflow](https://stackoverflow.com/questions/tagged/altair) using the `altair` tag.
|
| 203 |
+
For bugs and feature requests, please open a [Github Issue](https://github.com/vega/altair/issues).
|
| 204 |
+
|
| 205 |
+
## Development
|
| 206 |
+
|
| 207 |
+
[](https://github.com/pypa/hatch)
|
| 208 |
+
[](https://github.com/astral-sh/ruff)
|
| 209 |
+
[](https://github.com/pytest-dev/pytest)
|
| 210 |
+
|
| 211 |
+
You can find the instructions on how to install the package for development in [the documentation](https://altair-viz.github.io/getting_started/installation.html).
|
| 212 |
+
|
| 213 |
+
To run the tests and linters, use
|
| 214 |
+
|
| 215 |
+
```bash
|
| 216 |
+
hatch test
|
| 217 |
+
```
|
| 218 |
+
|
| 219 |
+
For information on how to contribute your developments back to the Vega-Altair repository, see
|
| 220 |
+
[`CONTRIBUTING.md`](https://github.com/vega/altair/blob/main/CONTRIBUTING.md)
|
| 221 |
+
|
| 222 |
+
## Citing Vega-Altair
|
| 223 |
+
|
| 224 |
+
[](https://joss.theoj.org/papers/10.21105/joss.01057)
|
| 225 |
+
|
| 226 |
+
If you use Vega-Altair in academic work, please consider citing https://joss.theoj.org/papers/10.21105/joss.01057 as
|
| 227 |
+
|
| 228 |
+
```bib
|
| 229 |
+
@article{VanderPlas2018,
|
| 230 |
+
doi = {10.21105/joss.01057},
|
| 231 |
+
url = {https://doi.org/10.21105/joss.01057},
|
| 232 |
+
year = {2018},
|
| 233 |
+
publisher = {The Open Journal},
|
| 234 |
+
volume = {3},
|
| 235 |
+
number = {32},
|
| 236 |
+
pages = {1057},
|
| 237 |
+
author = {Jacob VanderPlas and Brian Granger and Jeffrey Heer and Dominik Moritz and Kanit Wongsuphasawat and Arvind Satyanarayan and Eitan Lees and Ilia Timofeev and Ben Welsh and Scott Sievert},
|
| 238 |
+
title = {Altair: Interactive Statistical Visualizations for Python},
|
| 239 |
+
journal = {Journal of Open Source Software}
|
| 240 |
+
}
|
| 241 |
+
```
|
| 242 |
+
Please additionally consider citing the [Vega-Lite](https://vega.github.io/vega-lite/) project, which Vega-Altair is based on: https://dl.acm.org/doi/10.1109/TVCG.2016.2599030
|
| 243 |
+
|
| 244 |
+
```bib
|
| 245 |
+
@article{Satyanarayan2017,
|
| 246 |
+
author={Satyanarayan, Arvind and Moritz, Dominik and Wongsuphasawat, Kanit and Heer, Jeffrey},
|
| 247 |
+
title={Vega-Lite: A Grammar of Interactive Graphics},
|
| 248 |
+
journal={IEEE transactions on visualization and computer graphics},
|
| 249 |
+
year={2017},
|
| 250 |
+
volume={23},
|
| 251 |
+
number={1},
|
| 252 |
+
pages={341-350},
|
| 253 |
+
publisher={IEEE}
|
| 254 |
+
}
|
| 255 |
+
```
|
evalkit_internvl/lib/python3.10/site-packages/altair-5.5.0.dist-info/RECORD
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
altair-5.5.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 2 |
+
altair-5.5.0.dist-info/METADATA,sha256=_X77WT4VSiHr45IXwYxgNri-FMHqAMHQtf3BNlN8rHE,11221
|
| 3 |
+
altair-5.5.0.dist-info/RECORD,,
|
| 4 |
+
altair-5.5.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 5 |
+
altair-5.5.0.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
| 6 |
+
altair-5.5.0.dist-info/licenses/LICENSE,sha256=FL9avQqjkvgG-gu8iPUd42lk1TBxpodjHmIYB-VWMx4,1497
|
| 7 |
+
altair/__init__.py,sha256=h3AQX5P3HCbMh_5gl_M1cGlGhgxvuF1i80oQfHIGHaE,17525
|
| 8 |
+
altair/__pycache__/__init__.cpython-310.pyc,,
|
| 9 |
+
altair/__pycache__/_magics.cpython-310.pyc,,
|
| 10 |
+
altair/__pycache__/theme.cpython-310.pyc,,
|
| 11 |
+
altair/_magics.py,sha256=cFRBrU18SsSi9LriG1ksTNtgWTxCHUhRaBcixSG_7oU,3174
|
| 12 |
+
altair/expr/__init__.py,sha256=LARWocI7Rti0mURWEPs9UsW1Ey2AwmEAowl2zTApdgM,79818
|
| 13 |
+
altair/expr/__pycache__/__init__.cpython-310.pyc,,
|
| 14 |
+
altair/expr/__pycache__/consts.cpython-310.pyc,,
|
| 15 |
+
altair/expr/__pycache__/core.cpython-310.pyc,,
|
| 16 |
+
altair/expr/__pycache__/funcs.cpython-310.pyc,,
|
| 17 |
+
altair/expr/consts.py,sha256=N7wVV1jpKeEBEh4uyDObn4AYbARJeXKuEJIyM3wJChE,602
|
| 18 |
+
altair/expr/core.py,sha256=QfaXloIT0ucEYJ8RhE8VZhoYTuNtMjNqevmeoL2Y4iU,8292
|
| 19 |
+
altair/expr/funcs.py,sha256=BTeMDq-YFPSOKdx0A-y0VZr6Z1CywSYev6APnBKW68c,33826
|
| 20 |
+
altair/jupyter/__init__.py,sha256=vuW_WpL-i0-JaTKbDPTpOwQNvbDqO9Guk3Vej6PhH8A,876
|
| 21 |
+
altair/jupyter/__pycache__/__init__.cpython-310.pyc,,
|
| 22 |
+
altair/jupyter/__pycache__/jupyter_chart.cpython-310.pyc,,
|
| 23 |
+
altair/jupyter/js/README.md,sha256=iwzryhAUgm-HD7KupvKV2TKY5U74S7mLyGKe0rgB4D8,172
|
| 24 |
+
altair/jupyter/js/index.js,sha256=XVJuEOUTI9wyzVMCOsD6sbDhdVz8q7N89T6ajKIoYIg,7936
|
| 25 |
+
altair/jupyter/jupyter_chart.py,sha256=tiIl-g66bH5v5hFiG7W-WwoR_CSVS970P8PWwu7_j2A,15231
|
| 26 |
+
altair/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 27 |
+
altair/theme.py,sha256=LEkXjDaGWUvlbc384eqkXcVH-rZLZN6pYf-s4_ai8QY,8361
|
| 28 |
+
altair/typing/__init__.py,sha256=H_5nflDS8JyPV35qZgvfoVDvv-97n7XXfPDDvU7615U,1956
|
| 29 |
+
altair/typing/__pycache__/__init__.cpython-310.pyc,,
|
| 30 |
+
altair/utils/__init__.py,sha256=MX2Z-4Sb6Wb_T7MG5wpkOYA-R-HvrFtyVrZoLxHCB-E,949
|
| 31 |
+
altair/utils/__pycache__/__init__.cpython-310.pyc,,
|
| 32 |
+
altair/utils/__pycache__/_dfi_types.cpython-310.pyc,,
|
| 33 |
+
altair/utils/__pycache__/_importers.cpython-310.pyc,,
|
| 34 |
+
altair/utils/__pycache__/_show.cpython-310.pyc,,
|
| 35 |
+
altair/utils/__pycache__/_transformed_data.cpython-310.pyc,,
|
| 36 |
+
altair/utils/__pycache__/_vegafusion_data.cpython-310.pyc,,
|
| 37 |
+
altair/utils/__pycache__/compiler.cpython-310.pyc,,
|
| 38 |
+
altair/utils/__pycache__/core.cpython-310.pyc,,
|
| 39 |
+
altair/utils/__pycache__/data.cpython-310.pyc,,
|
| 40 |
+
altair/utils/__pycache__/deprecation.cpython-310.pyc,,
|
| 41 |
+
altair/utils/__pycache__/display.cpython-310.pyc,,
|
| 42 |
+
altair/utils/__pycache__/execeval.cpython-310.pyc,,
|
| 43 |
+
altair/utils/__pycache__/html.cpython-310.pyc,,
|
| 44 |
+
altair/utils/__pycache__/mimebundle.cpython-310.pyc,,
|
| 45 |
+
altair/utils/__pycache__/plugin_registry.cpython-310.pyc,,
|
| 46 |
+
altair/utils/__pycache__/save.cpython-310.pyc,,
|
| 47 |
+
altair/utils/__pycache__/schemapi.cpython-310.pyc,,
|
| 48 |
+
altair/utils/__pycache__/selection.cpython-310.pyc,,
|
| 49 |
+
altair/utils/__pycache__/server.cpython-310.pyc,,
|
| 50 |
+
altair/utils/_dfi_types.py,sha256=aKzArV4HaUXUvinDr8l428EJ_2WKGCsUQ0O1j_12oGI,6512
|
| 51 |
+
altair/utils/_importers.py,sha256=0ZUGCDFdgqJxwUSfT4KVEtLDSgqYGivqRn3ni0aA_EA,4111
|
| 52 |
+
altair/utils/_show.py,sha256=-xhIBpMjTuNjOsL7rw8glZP03x1ssuz-s9HS3YJI3rQ,2310
|
| 53 |
+
altair/utils/_transformed_data.py,sha256=FeIOskcdgbA-6xmH3tWC5IJqJy8c4JHPupJF0tO50fI,18272
|
| 54 |
+
altair/utils/_vegafusion_data.py,sha256=hXYzwLsFay0ag5cljyn-ZasTnmrt6S7MbsTMAeVSQ3k,9653
|
| 55 |
+
altair/utils/compiler.py,sha256=hDondO8EDsY03jLM3fOQNn9_1Q577FJoUvhzoyProI8,438
|
| 56 |
+
altair/utils/core.py,sha256=ODASDwzrcdjk7k2W1YriO83NQp_MoezAfksbQk9WX8E,31763
|
| 57 |
+
altair/utils/data.py,sha256=twIPWcyjzm4nRP_LB2Wpe8Rg8Avs60fE7EG584znAwY,14684
|
| 58 |
+
altair/utils/deprecation.py,sha256=ohfLD7Ai_Yh8CoeinYCgq8bew7xBQwm8ujlGpdBC2NM,5620
|
| 59 |
+
altair/utils/display.py,sha256=JEqtug-DoB2KTzE4VTMR0PrjOPN6nlaBY93I6E_pRZU,8671
|
| 60 |
+
altair/utils/execeval.py,sha256=W9TnoIRoAeOdpQpaflCdBXT4BUOexxcsxmTjMzjcpdc,2691
|
| 61 |
+
altair/utils/html.py,sha256=cfJtfeF-70URft9IcU99v2JEQgc3kWFSYBUvZB_qYDQ,13763
|
| 62 |
+
altair/utils/mimebundle.py,sha256=r1daC0PwC2I0KtEsFjVoGKjJgelXiUjwJn8cdj24ZtU,13035
|
| 63 |
+
altair/utils/plugin_registry.py,sha256=PJJCw-BYparjZK9qWzguim8AqP2dvWMlELGGguiCbHo,10013
|
| 64 |
+
altair/utils/save.py,sha256=x2lha_RQnW-4xymIW8FhQQswpanqGkrEt-HXcLw-lwE,8348
|
| 65 |
+
altair/utils/schemapi.py,sha256=ObSF6XkEquoZbS26-dzrhGc4YQ97-6PxS_Tph_xRpH0,61060
|
| 66 |
+
altair/utils/selection.py,sha256=3fcqTaXMrScEkf6COQJjPC5Em3w5v1iew0Ngfb3caK8,3928
|
| 67 |
+
altair/utils/server.py,sha256=74F8ob37E52e2VeJbdwqX40xUnCB_w5QC2IJJSqw7GE,4100
|
| 68 |
+
altair/vegalite/__init__.py,sha256=IZ_q0DdT8J4wGGXo1bPp001n44O8ns266ZphbWcImCw,37
|
| 69 |
+
altair/vegalite/__pycache__/__init__.cpython-310.pyc,,
|
| 70 |
+
altair/vegalite/__pycache__/api.cpython-310.pyc,,
|
| 71 |
+
altair/vegalite/__pycache__/data.cpython-310.pyc,,
|
| 72 |
+
altair/vegalite/__pycache__/display.cpython-310.pyc,,
|
| 73 |
+
altair/vegalite/__pycache__/schema.cpython-310.pyc,,
|
| 74 |
+
altair/vegalite/api.py,sha256=kZEoyq1nKhFNTcW6GRMyv7NYlQXqcpFuZ3m8eRApmEg,35
|
| 75 |
+
altair/vegalite/data.py,sha256=gyZ6VE2y7tj5ZUHQD-BSPb3N5hyDkV1pG2bUB10XTwA,1751
|
| 76 |
+
altair/vegalite/display.py,sha256=ULT1Z6vONlJCHAj8uqLVb9LCnPpD48J34Y8-aVeaZNU,342
|
| 77 |
+
altair/vegalite/schema.py,sha256=4UNGw-OO6_Es407m68k6JzTdc93rtnXl7AG-bVvgCtI,75
|
| 78 |
+
altair/vegalite/v5/__init__.py,sha256=FryNaa3rGa3PhzkrnGTBb90L8niJCI3agW3eUeRUIhE,15968
|
| 79 |
+
altair/vegalite/v5/__pycache__/__init__.cpython-310.pyc,,
|
| 80 |
+
altair/vegalite/v5/__pycache__/api.cpython-310.pyc,,
|
| 81 |
+
altair/vegalite/v5/__pycache__/compiler.cpython-310.pyc,,
|
| 82 |
+
altair/vegalite/v5/__pycache__/data.cpython-310.pyc,,
|
| 83 |
+
altair/vegalite/v5/__pycache__/display.cpython-310.pyc,,
|
| 84 |
+
altair/vegalite/v5/__pycache__/theme.cpython-310.pyc,,
|
| 85 |
+
altair/vegalite/v5/api.py,sha256=WI2YG7As9-FFCAh61MK_CMbe4Fzb3lmSWVKI_49qyzc,191214
|
| 86 |
+
altair/vegalite/v5/compiler.py,sha256=PmpPgBHocAACliN2riaW6lKVsTODfM6ekIRGAqKMsBM,816
|
| 87 |
+
altair/vegalite/v5/data.py,sha256=RRnY5kfcwUYgseXoTkJDdqUhFkEwdkKlvT8_yvpqAAw,1175
|
| 88 |
+
altair/vegalite/v5/display.py,sha256=BQPx1gwQOHDeWoI0rvncRfelX37U3qyGpo4UB8NtA4U,6087
|
| 89 |
+
altair/vegalite/v5/schema/__init__.py,sha256=IXODI0lbYkrFsR5520rtq9apgGHKldLBrxNK5A-wQqI,14447
|
| 90 |
+
altair/vegalite/v5/schema/__pycache__/__init__.cpython-310.pyc,,
|
| 91 |
+
altair/vegalite/v5/schema/__pycache__/_config.cpython-310.pyc,,
|
| 92 |
+
altair/vegalite/v5/schema/__pycache__/_typing.cpython-310.pyc,,
|
| 93 |
+
altair/vegalite/v5/schema/__pycache__/channels.cpython-310.pyc,,
|
| 94 |
+
altair/vegalite/v5/schema/__pycache__/core.cpython-310.pyc,,
|
| 95 |
+
altair/vegalite/v5/schema/__pycache__/mixins.cpython-310.pyc,,
|
| 96 |
+
altair/vegalite/v5/schema/_config.py,sha256=BOAJyfTeyl_SSy3gcon4CincLol-8LFYfR0Qzy4ars0,304714
|
| 97 |
+
altair/vegalite/v5/schema/_typing.py,sha256=jtBLItY8_WQWNMilujYWZ5W2rdZWmagOHL1RNvCYmF8,23551
|
| 98 |
+
altair/vegalite/v5/schema/channels.py,sha256=b09Noifkh5oy24ohbSbvvh_v9CzW-NJJZQJWNgVjjug,1177684
|
| 99 |
+
altair/vegalite/v5/schema/core.py,sha256=m0RS6HV7WtxYGQ6fq-W-Ppd_E_8rCVJZ8BL09N3o_g4,1554066
|
| 100 |
+
altair/vegalite/v5/schema/mixins.py,sha256=-nRGU6NEeQLjGewM55JSLS0A1muwWqkbR62M19kFcs8,87170
|
| 101 |
+
altair/vegalite/v5/schema/vega-lite-schema.json,sha256=p_b2eXXLwF-Xcw2UpKFLONWbofLk8x4SuGblC0gRRt4,1847283
|
| 102 |
+
altair/vegalite/v5/schema/vega-themes.json,sha256=SwU45rxYJOB66nG8IYe9gs0xQcL83pmNm5ES9G7EAA8,25729
|
| 103 |
+
altair/vegalite/v5/theme.py,sha256=wp7CKhxaODaIvDdS5PaQDcqjsFblB7HuRjYqRauSPDY,3823
|
evalkit_internvl/lib/python3.10/site-packages/altair-5.5.0.dist-info/REQUESTED
ADDED
|
File without changes
|
evalkit_internvl/lib/python3.10/site-packages/altair-5.5.0.dist-info/WHEEL
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Wheel-Version: 1.0
|
| 2 |
+
Generator: hatchling 1.26.3
|
| 3 |
+
Root-Is-Purelib: true
|
| 4 |
+
Tag: py3-none-any
|
evalkit_internvl/lib/python3.10/site-packages/altair-5.5.0.dist-info/licenses/LICENSE
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Copyright (c) 2015-2023, Vega-Altair Developers
|
| 2 |
+
All rights reserved.
|
| 3 |
+
|
| 4 |
+
Redistribution and use in source and binary forms, with or without
|
| 5 |
+
modification, are permitted provided that the following conditions are met:
|
| 6 |
+
|
| 7 |
+
* Redistributions of source code must retain the above copyright notice, this
|
| 8 |
+
list of conditions and the following disclaimer.
|
| 9 |
+
|
| 10 |
+
* Redistributions in binary form must reproduce the above copyright notice,
|
| 11 |
+
this list of conditions and the following disclaimer in the documentation
|
| 12 |
+
and/or other materials provided with the distribution.
|
| 13 |
+
|
| 14 |
+
* Neither the name of vega-altair nor the names of its
|
| 15 |
+
contributors may be used to endorse or promote products derived from
|
| 16 |
+
this software without specific prior written permission.
|
| 17 |
+
|
| 18 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
| 19 |
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
| 20 |
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
| 21 |
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
| 22 |
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
| 23 |
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
| 24 |
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
| 25 |
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
| 26 |
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| 27 |
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| 28 |
+
|
evalkit_internvl/lib/python3.10/site-packages/attrs/__init__.py
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SPDX-License-Identifier: MIT
|
| 2 |
+
|
| 3 |
+
from attr import (
|
| 4 |
+
NOTHING,
|
| 5 |
+
Attribute,
|
| 6 |
+
AttrsInstance,
|
| 7 |
+
Converter,
|
| 8 |
+
Factory,
|
| 9 |
+
_make_getattr,
|
| 10 |
+
assoc,
|
| 11 |
+
cmp_using,
|
| 12 |
+
define,
|
| 13 |
+
evolve,
|
| 14 |
+
field,
|
| 15 |
+
fields,
|
| 16 |
+
fields_dict,
|
| 17 |
+
frozen,
|
| 18 |
+
has,
|
| 19 |
+
make_class,
|
| 20 |
+
mutable,
|
| 21 |
+
resolve_types,
|
| 22 |
+
validate,
|
| 23 |
+
)
|
| 24 |
+
from attr._next_gen import asdict, astuple
|
| 25 |
+
|
| 26 |
+
from . import converters, exceptions, filters, setters, validators
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
__all__ = [
|
| 30 |
+
"__author__",
|
| 31 |
+
"__copyright__",
|
| 32 |
+
"__description__",
|
| 33 |
+
"__doc__",
|
| 34 |
+
"__email__",
|
| 35 |
+
"__license__",
|
| 36 |
+
"__title__",
|
| 37 |
+
"__url__",
|
| 38 |
+
"__version__",
|
| 39 |
+
"__version_info__",
|
| 40 |
+
"asdict",
|
| 41 |
+
"assoc",
|
| 42 |
+
"astuple",
|
| 43 |
+
"Attribute",
|
| 44 |
+
"AttrsInstance",
|
| 45 |
+
"cmp_using",
|
| 46 |
+
"Converter",
|
| 47 |
+
"converters",
|
| 48 |
+
"define",
|
| 49 |
+
"evolve",
|
| 50 |
+
"exceptions",
|
| 51 |
+
"Factory",
|
| 52 |
+
"field",
|
| 53 |
+
"fields_dict",
|
| 54 |
+
"fields",
|
| 55 |
+
"filters",
|
| 56 |
+
"frozen",
|
| 57 |
+
"has",
|
| 58 |
+
"make_class",
|
| 59 |
+
"mutable",
|
| 60 |
+
"NOTHING",
|
| 61 |
+
"resolve_types",
|
| 62 |
+
"setters",
|
| 63 |
+
"validate",
|
| 64 |
+
"validators",
|
| 65 |
+
]
|
| 66 |
+
|
| 67 |
+
__getattr__ = _make_getattr(__name__)
|
evalkit_internvl/lib/python3.10/site-packages/attrs/__init__.pyi
ADDED
|
@@ -0,0 +1,252 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import sys
|
| 2 |
+
|
| 3 |
+
from typing import (
|
| 4 |
+
Any,
|
| 5 |
+
Callable,
|
| 6 |
+
Mapping,
|
| 7 |
+
Sequence,
|
| 8 |
+
overload,
|
| 9 |
+
TypeVar,
|
| 10 |
+
)
|
| 11 |
+
|
| 12 |
+
# Because we need to type our own stuff, we have to make everything from
|
| 13 |
+
# attr explicitly public too.
|
| 14 |
+
from attr import __author__ as __author__
|
| 15 |
+
from attr import __copyright__ as __copyright__
|
| 16 |
+
from attr import __description__ as __description__
|
| 17 |
+
from attr import __email__ as __email__
|
| 18 |
+
from attr import __license__ as __license__
|
| 19 |
+
from attr import __title__ as __title__
|
| 20 |
+
from attr import __url__ as __url__
|
| 21 |
+
from attr import __version__ as __version__
|
| 22 |
+
from attr import __version_info__ as __version_info__
|
| 23 |
+
from attr import assoc as assoc
|
| 24 |
+
from attr import Attribute as Attribute
|
| 25 |
+
from attr import AttrsInstance as AttrsInstance
|
| 26 |
+
from attr import cmp_using as cmp_using
|
| 27 |
+
from attr import converters as converters
|
| 28 |
+
from attr import Converter as Converter
|
| 29 |
+
from attr import evolve as evolve
|
| 30 |
+
from attr import exceptions as exceptions
|
| 31 |
+
from attr import Factory as Factory
|
| 32 |
+
from attr import fields as fields
|
| 33 |
+
from attr import fields_dict as fields_dict
|
| 34 |
+
from attr import filters as filters
|
| 35 |
+
from attr import has as has
|
| 36 |
+
from attr import make_class as make_class
|
| 37 |
+
from attr import NOTHING as NOTHING
|
| 38 |
+
from attr import resolve_types as resolve_types
|
| 39 |
+
from attr import setters as setters
|
| 40 |
+
from attr import validate as validate
|
| 41 |
+
from attr import validators as validators
|
| 42 |
+
from attr import attrib, asdict as asdict, astuple as astuple
|
| 43 |
+
|
| 44 |
+
if sys.version_info >= (3, 11):
|
| 45 |
+
from typing import dataclass_transform
|
| 46 |
+
else:
|
| 47 |
+
from typing_extensions import dataclass_transform
|
| 48 |
+
|
| 49 |
+
_T = TypeVar("_T")
|
| 50 |
+
_C = TypeVar("_C", bound=type)
|
| 51 |
+
|
| 52 |
+
_EqOrderType = bool | Callable[[Any], Any]
|
| 53 |
+
_ValidatorType = Callable[[Any, "Attribute[_T]", _T], Any]
|
| 54 |
+
_ConverterType = Callable[[Any], Any]
|
| 55 |
+
_ReprType = Callable[[Any], str]
|
| 56 |
+
_ReprArgType = bool | _ReprType
|
| 57 |
+
_OnSetAttrType = Callable[[Any, "Attribute[Any]", Any], Any]
|
| 58 |
+
_OnSetAttrArgType = _OnSetAttrType | list[_OnSetAttrType] | setters._NoOpType
|
| 59 |
+
_FieldTransformer = Callable[
|
| 60 |
+
[type, list["Attribute[Any]"]], list["Attribute[Any]"]
|
| 61 |
+
]
|
| 62 |
+
# FIXME: in reality, if multiple validators are passed they must be in a list
|
| 63 |
+
# or tuple, but those are invariant and so would prevent subtypes of
|
| 64 |
+
# _ValidatorType from working when passed in a list or tuple.
|
| 65 |
+
_ValidatorArgType = _ValidatorType[_T] | Sequence[_ValidatorType[_T]]
|
| 66 |
+
|
| 67 |
+
@overload
|
| 68 |
+
def field(
|
| 69 |
+
*,
|
| 70 |
+
default: None = ...,
|
| 71 |
+
validator: None = ...,
|
| 72 |
+
repr: _ReprArgType = ...,
|
| 73 |
+
hash: bool | None = ...,
|
| 74 |
+
init: bool = ...,
|
| 75 |
+
metadata: Mapping[Any, Any] | None = ...,
|
| 76 |
+
converter: None = ...,
|
| 77 |
+
factory: None = ...,
|
| 78 |
+
kw_only: bool = ...,
|
| 79 |
+
eq: bool | None = ...,
|
| 80 |
+
order: bool | None = ...,
|
| 81 |
+
on_setattr: _OnSetAttrArgType | None = ...,
|
| 82 |
+
alias: str | None = ...,
|
| 83 |
+
type: type | None = ...,
|
| 84 |
+
) -> Any: ...
|
| 85 |
+
|
| 86 |
+
# This form catches an explicit None or no default and infers the type from the
|
| 87 |
+
# other arguments.
|
| 88 |
+
@overload
|
| 89 |
+
def field(
|
| 90 |
+
*,
|
| 91 |
+
default: None = ...,
|
| 92 |
+
validator: _ValidatorArgType[_T] | None = ...,
|
| 93 |
+
repr: _ReprArgType = ...,
|
| 94 |
+
hash: bool | None = ...,
|
| 95 |
+
init: bool = ...,
|
| 96 |
+
metadata: Mapping[Any, Any] | None = ...,
|
| 97 |
+
converter: _ConverterType | Converter[Any, _T] | None = ...,
|
| 98 |
+
factory: Callable[[], _T] | None = ...,
|
| 99 |
+
kw_only: bool = ...,
|
| 100 |
+
eq: _EqOrderType | None = ...,
|
| 101 |
+
order: _EqOrderType | None = ...,
|
| 102 |
+
on_setattr: _OnSetAttrArgType | None = ...,
|
| 103 |
+
alias: str | None = ...,
|
| 104 |
+
type: type | None = ...,
|
| 105 |
+
) -> _T: ...
|
| 106 |
+
|
| 107 |
+
# This form catches an explicit default argument.
|
| 108 |
+
@overload
|
| 109 |
+
def field(
|
| 110 |
+
*,
|
| 111 |
+
default: _T,
|
| 112 |
+
validator: _ValidatorArgType[_T] | None = ...,
|
| 113 |
+
repr: _ReprArgType = ...,
|
| 114 |
+
hash: bool | None = ...,
|
| 115 |
+
init: bool = ...,
|
| 116 |
+
metadata: Mapping[Any, Any] | None = ...,
|
| 117 |
+
converter: _ConverterType | Converter[Any, _T] | None = ...,
|
| 118 |
+
factory: Callable[[], _T] | None = ...,
|
| 119 |
+
kw_only: bool = ...,
|
| 120 |
+
eq: _EqOrderType | None = ...,
|
| 121 |
+
order: _EqOrderType | None = ...,
|
| 122 |
+
on_setattr: _OnSetAttrArgType | None = ...,
|
| 123 |
+
alias: str | None = ...,
|
| 124 |
+
type: type | None = ...,
|
| 125 |
+
) -> _T: ...
|
| 126 |
+
|
| 127 |
+
# This form covers type=non-Type: e.g. forward references (str), Any
|
| 128 |
+
@overload
|
| 129 |
+
def field(
|
| 130 |
+
*,
|
| 131 |
+
default: _T | None = ...,
|
| 132 |
+
validator: _ValidatorArgType[_T] | None = ...,
|
| 133 |
+
repr: _ReprArgType = ...,
|
| 134 |
+
hash: bool | None = ...,
|
| 135 |
+
init: bool = ...,
|
| 136 |
+
metadata: Mapping[Any, Any] | None = ...,
|
| 137 |
+
converter: _ConverterType | Converter[Any, _T] | None = ...,
|
| 138 |
+
factory: Callable[[], _T] | None = ...,
|
| 139 |
+
kw_only: bool = ...,
|
| 140 |
+
eq: _EqOrderType | None = ...,
|
| 141 |
+
order: _EqOrderType | None = ...,
|
| 142 |
+
on_setattr: _OnSetAttrArgType | None = ...,
|
| 143 |
+
alias: str | None = ...,
|
| 144 |
+
type: type | None = ...,
|
| 145 |
+
) -> Any: ...
|
| 146 |
+
@overload
|
| 147 |
+
@dataclass_transform(field_specifiers=(attrib, field))
|
| 148 |
+
def define(
|
| 149 |
+
maybe_cls: _C,
|
| 150 |
+
*,
|
| 151 |
+
these: dict[str, Any] | None = ...,
|
| 152 |
+
repr: bool = ...,
|
| 153 |
+
unsafe_hash: bool | None = ...,
|
| 154 |
+
hash: bool | None = ...,
|
| 155 |
+
init: bool = ...,
|
| 156 |
+
slots: bool = ...,
|
| 157 |
+
frozen: bool = ...,
|
| 158 |
+
weakref_slot: bool = ...,
|
| 159 |
+
str: bool = ...,
|
| 160 |
+
auto_attribs: bool = ...,
|
| 161 |
+
kw_only: bool = ...,
|
| 162 |
+
cache_hash: bool = ...,
|
| 163 |
+
auto_exc: bool = ...,
|
| 164 |
+
eq: bool | None = ...,
|
| 165 |
+
order: bool | None = ...,
|
| 166 |
+
auto_detect: bool = ...,
|
| 167 |
+
getstate_setstate: bool | None = ...,
|
| 168 |
+
on_setattr: _OnSetAttrArgType | None = ...,
|
| 169 |
+
field_transformer: _FieldTransformer | None = ...,
|
| 170 |
+
match_args: bool = ...,
|
| 171 |
+
) -> _C: ...
|
| 172 |
+
@overload
|
| 173 |
+
@dataclass_transform(field_specifiers=(attrib, field))
|
| 174 |
+
def define(
|
| 175 |
+
maybe_cls: None = ...,
|
| 176 |
+
*,
|
| 177 |
+
these: dict[str, Any] | None = ...,
|
| 178 |
+
repr: bool = ...,
|
| 179 |
+
unsafe_hash: bool | None = ...,
|
| 180 |
+
hash: bool | None = ...,
|
| 181 |
+
init: bool = ...,
|
| 182 |
+
slots: bool = ...,
|
| 183 |
+
frozen: bool = ...,
|
| 184 |
+
weakref_slot: bool = ...,
|
| 185 |
+
str: bool = ...,
|
| 186 |
+
auto_attribs: bool = ...,
|
| 187 |
+
kw_only: bool = ...,
|
| 188 |
+
cache_hash: bool = ...,
|
| 189 |
+
auto_exc: bool = ...,
|
| 190 |
+
eq: bool | None = ...,
|
| 191 |
+
order: bool | None = ...,
|
| 192 |
+
auto_detect: bool = ...,
|
| 193 |
+
getstate_setstate: bool | None = ...,
|
| 194 |
+
on_setattr: _OnSetAttrArgType | None = ...,
|
| 195 |
+
field_transformer: _FieldTransformer | None = ...,
|
| 196 |
+
match_args: bool = ...,
|
| 197 |
+
) -> Callable[[_C], _C]: ...
|
| 198 |
+
|
| 199 |
+
mutable = define
|
| 200 |
+
|
| 201 |
+
@overload
|
| 202 |
+
@dataclass_transform(frozen_default=True, field_specifiers=(attrib, field))
|
| 203 |
+
def frozen(
|
| 204 |
+
maybe_cls: _C,
|
| 205 |
+
*,
|
| 206 |
+
these: dict[str, Any] | None = ...,
|
| 207 |
+
repr: bool = ...,
|
| 208 |
+
unsafe_hash: bool | None = ...,
|
| 209 |
+
hash: bool | None = ...,
|
| 210 |
+
init: bool = ...,
|
| 211 |
+
slots: bool = ...,
|
| 212 |
+
frozen: bool = ...,
|
| 213 |
+
weakref_slot: bool = ...,
|
| 214 |
+
str: bool = ...,
|
| 215 |
+
auto_attribs: bool = ...,
|
| 216 |
+
kw_only: bool = ...,
|
| 217 |
+
cache_hash: bool = ...,
|
| 218 |
+
auto_exc: bool = ...,
|
| 219 |
+
eq: bool | None = ...,
|
| 220 |
+
order: bool | None = ...,
|
| 221 |
+
auto_detect: bool = ...,
|
| 222 |
+
getstate_setstate: bool | None = ...,
|
| 223 |
+
on_setattr: _OnSetAttrArgType | None = ...,
|
| 224 |
+
field_transformer: _FieldTransformer | None = ...,
|
| 225 |
+
match_args: bool = ...,
|
| 226 |
+
) -> _C: ...
|
| 227 |
+
@overload
|
| 228 |
+
@dataclass_transform(frozen_default=True, field_specifiers=(attrib, field))
|
| 229 |
+
def frozen(
|
| 230 |
+
maybe_cls: None = ...,
|
| 231 |
+
*,
|
| 232 |
+
these: dict[str, Any] | None = ...,
|
| 233 |
+
repr: bool = ...,
|
| 234 |
+
unsafe_hash: bool | None = ...,
|
| 235 |
+
hash: bool | None = ...,
|
| 236 |
+
init: bool = ...,
|
| 237 |
+
slots: bool = ...,
|
| 238 |
+
frozen: bool = ...,
|
| 239 |
+
weakref_slot: bool = ...,
|
| 240 |
+
str: bool = ...,
|
| 241 |
+
auto_attribs: bool = ...,
|
| 242 |
+
kw_only: bool = ...,
|
| 243 |
+
cache_hash: bool = ...,
|
| 244 |
+
auto_exc: bool = ...,
|
| 245 |
+
eq: bool | None = ...,
|
| 246 |
+
order: bool | None = ...,
|
| 247 |
+
auto_detect: bool = ...,
|
| 248 |
+
getstate_setstate: bool | None = ...,
|
| 249 |
+
on_setattr: _OnSetAttrArgType | None = ...,
|
| 250 |
+
field_transformer: _FieldTransformer | None = ...,
|
| 251 |
+
match_args: bool = ...,
|
| 252 |
+
) -> Callable[[_C], _C]: ...
|
evalkit_internvl/lib/python3.10/site-packages/attrs/__pycache__/__init__.cpython-310.pyc
ADDED
|
Binary file (1.04 kB). View file
|
|
|
evalkit_internvl/lib/python3.10/site-packages/attrs/__pycache__/converters.cpython-310.pyc
ADDED
|
Binary file (201 Bytes). View file
|
|
|
evalkit_internvl/lib/python3.10/site-packages/attrs/__pycache__/exceptions.cpython-310.pyc
ADDED
|
Binary file (201 Bytes). View file
|
|
|
evalkit_internvl/lib/python3.10/site-packages/attrs/__pycache__/filters.cpython-310.pyc
ADDED
|
Binary file (195 Bytes). View file
|
|
|
evalkit_internvl/lib/python3.10/site-packages/attrs/__pycache__/setters.cpython-310.pyc
ADDED
|
Binary file (195 Bytes). View file
|
|
|
evalkit_internvl/lib/python3.10/site-packages/attrs/__pycache__/validators.cpython-310.pyc
ADDED
|
Binary file (201 Bytes). View file
|
|
|
evalkit_internvl/lib/python3.10/site-packages/attrs/converters.py
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SPDX-License-Identifier: MIT
|
| 2 |
+
|
| 3 |
+
from attr.converters import * # noqa: F403
|
evalkit_internvl/lib/python3.10/site-packages/attrs/exceptions.py
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SPDX-License-Identifier: MIT
|
| 2 |
+
|
| 3 |
+
from attr.exceptions import * # noqa: F403
|
evalkit_internvl/lib/python3.10/site-packages/attrs/filters.py
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SPDX-License-Identifier: MIT
|
| 2 |
+
|
| 3 |
+
from attr.filters import * # noqa: F403
|
evalkit_internvl/lib/python3.10/site-packages/attrs/py.typed
ADDED
|
File without changes
|
evalkit_internvl/lib/python3.10/site-packages/attrs/setters.py
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SPDX-License-Identifier: MIT
|
| 2 |
+
|
| 3 |
+
from attr.setters import * # noqa: F403
|
evalkit_internvl/lib/python3.10/site-packages/attrs/validators.py
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SPDX-License-Identifier: MIT
|
| 2 |
+
|
| 3 |
+
from attr.validators import * # noqa: F403
|
evalkit_internvl/lib/python3.10/site-packages/decord.libs/libswresample-230d9f46.so.3.3.100
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:44597797921ca2b1f74955397cc04e8f18a2625c70a5f0ca016e5f924c42b59a
|
| 3 |
+
size 124008
|
evalkit_internvl/lib/python3.10/site-packages/et_xmlfile-2.0.0.dist-info/LICENCE.python
ADDED
|
@@ -0,0 +1,298 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
et_xml is licensed under the MIT license; see the file LICENCE for details.
|
| 2 |
+
|
| 3 |
+
et_xml includes code from the Python standard library, which is licensed under
|
| 4 |
+
the Python license, a permissive open source license. The copyright and license
|
| 5 |
+
is included below for compliance with Python's terms.
|
| 6 |
+
|
| 7 |
+
This module includes corrections and new features as follows:
|
| 8 |
+
- Correct handling of attributes namespaces when a default namespace
|
| 9 |
+
has been registered.
|
| 10 |
+
- Records the namespaces for an Element during parsing and utilises them to
|
| 11 |
+
allow inspection of namespaces at specific elements in the xml tree and
|
| 12 |
+
during serialisation.
|
| 13 |
+
|
| 14 |
+
Misc:
|
| 15 |
+
- Includes the test_xml_etree with small modifications for testing the
|
| 16 |
+
modifications in this package.
|
| 17 |
+
|
| 18 |
+
----------------------------------------------------------------------
|
| 19 |
+
|
| 20 |
+
Copyright (c) 2001-present Python Software Foundation; All Rights Reserved
|
| 21 |
+
|
| 22 |
+
A. HISTORY OF THE SOFTWARE
|
| 23 |
+
==========================
|
| 24 |
+
|
| 25 |
+
Python was created in the early 1990s by Guido van Rossum at Stichting
|
| 26 |
+
Mathematisch Centrum (CWI, see https://www.cwi.nl) in the Netherlands
|
| 27 |
+
as a successor of a language called ABC. Guido remains Python's
|
| 28 |
+
principal author, although it includes many contributions from others.
|
| 29 |
+
|
| 30 |
+
In 1995, Guido continued his work on Python at the Corporation for
|
| 31 |
+
National Research Initiatives (CNRI, see https://www.cnri.reston.va.us)
|
| 32 |
+
in Reston, Virginia where he released several versions of the
|
| 33 |
+
software.
|
| 34 |
+
|
| 35 |
+
In May 2000, Guido and the Python core development team moved to
|
| 36 |
+
BeOpen.com to form the BeOpen PythonLabs team. In October of the same
|
| 37 |
+
year, the PythonLabs team moved to Digital Creations, which became
|
| 38 |
+
Zope Corporation. In 2001, the Python Software Foundation (PSF, see
|
| 39 |
+
https://www.python.org/psf/) was formed, a non-profit organization
|
| 40 |
+
created specifically to own Python-related Intellectual Property.
|
| 41 |
+
Zope Corporation was a sponsoring member of the PSF.
|
| 42 |
+
|
| 43 |
+
All Python releases are Open Source (see https://opensource.org for
|
| 44 |
+
the Open Source Definition). Historically, most, but not all, Python
|
| 45 |
+
releases have also been GPL-compatible; the table below summarizes
|
| 46 |
+
the various releases.
|
| 47 |
+
|
| 48 |
+
Release Derived Year Owner GPL-
|
| 49 |
+
from compatible? (1)
|
| 50 |
+
|
| 51 |
+
0.9.0 thru 1.2 1991-1995 CWI yes
|
| 52 |
+
1.3 thru 1.5.2 1.2 1995-1999 CNRI yes
|
| 53 |
+
1.6 1.5.2 2000 CNRI no
|
| 54 |
+
2.0 1.6 2000 BeOpen.com no
|
| 55 |
+
1.6.1 1.6 2001 CNRI yes (2)
|
| 56 |
+
2.1 2.0+1.6.1 2001 PSF no
|
| 57 |
+
2.0.1 2.0+1.6.1 2001 PSF yes
|
| 58 |
+
2.1.1 2.1+2.0.1 2001 PSF yes
|
| 59 |
+
2.1.2 2.1.1 2002 PSF yes
|
| 60 |
+
2.1.3 2.1.2 2002 PSF yes
|
| 61 |
+
2.2 and above 2.1.1 2001-now PSF yes
|
| 62 |
+
|
| 63 |
+
Footnotes:
|
| 64 |
+
|
| 65 |
+
(1) GPL-compatible doesn't mean that we're distributing Python under
|
| 66 |
+
the GPL. All Python licenses, unlike the GPL, let you distribute
|
| 67 |
+
a modified version without making your changes open source. The
|
| 68 |
+
GPL-compatible licenses make it possible to combine Python with
|
| 69 |
+
other software that is released under the GPL; the others don't.
|
| 70 |
+
|
| 71 |
+
(2) According to Richard Stallman, 1.6.1 is not GPL-compatible,
|
| 72 |
+
because its license has a choice of law clause. According to
|
| 73 |
+
CNRI, however, Stallman's lawyer has told CNRI's lawyer that 1.6.1
|
| 74 |
+
is "not incompatible" with the GPL.
|
| 75 |
+
|
| 76 |
+
Thanks to the many outside volunteers who have worked under Guido's
|
| 77 |
+
direction to make these releases possible.
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
B. TERMS AND CONDITIONS FOR ACCESSING OR OTHERWISE USING PYTHON
|
| 81 |
+
===============================================================
|
| 82 |
+
|
| 83 |
+
Python software and documentation are licensed under the
|
| 84 |
+
Python Software Foundation License Version 2.
|
| 85 |
+
|
| 86 |
+
Starting with Python 3.8.6, examples, recipes, and other code in
|
| 87 |
+
the documentation are dual licensed under the PSF License Version 2
|
| 88 |
+
and the Zero-Clause BSD license.
|
| 89 |
+
|
| 90 |
+
Some software incorporated into Python is under different licenses.
|
| 91 |
+
The licenses are listed with code falling under that license.
|
| 92 |
+
|
| 93 |
+
|
| 94 |
+
PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
|
| 95 |
+
--------------------------------------------
|
| 96 |
+
|
| 97 |
+
1. This LICENSE AGREEMENT is between the Python Software Foundation
|
| 98 |
+
("PSF"), and the Individual or Organization ("Licensee") accessing and
|
| 99 |
+
otherwise using this software ("Python") in source or binary form and
|
| 100 |
+
its associated documentation.
|
| 101 |
+
|
| 102 |
+
2. Subject to the terms and conditions of this License Agreement, PSF hereby
|
| 103 |
+
grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce,
|
| 104 |
+
analyze, test, perform and/or display publicly, prepare derivative works,
|
| 105 |
+
distribute, and otherwise use Python alone or in any derivative version,
|
| 106 |
+
provided, however, that PSF's License Agreement and PSF's notice of copyright,
|
| 107 |
+
i.e., "Copyright (c) 2001-2024 Python Software Foundation; All Rights Reserved"
|
| 108 |
+
are retained in Python alone or in any derivative version prepared by Licensee.
|
| 109 |
+
|
| 110 |
+
3. In the event Licensee prepares a derivative work that is based on
|
| 111 |
+
or incorporates Python or any part thereof, and wants to make
|
| 112 |
+
the derivative work available to others as provided herein, then
|
| 113 |
+
Licensee hereby agrees to include in any such work a brief summary of
|
| 114 |
+
the changes made to Python.
|
| 115 |
+
|
| 116 |
+
4. PSF is making Python available to Licensee on an "AS IS"
|
| 117 |
+
basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
|
| 118 |
+
IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND
|
| 119 |
+
DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
|
| 120 |
+
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT
|
| 121 |
+
INFRINGE ANY THIRD PARTY RIGHTS.
|
| 122 |
+
|
| 123 |
+
5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
|
| 124 |
+
FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
|
| 125 |
+
A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON,
|
| 126 |
+
OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
|
| 127 |
+
|
| 128 |
+
6. This License Agreement will automatically terminate upon a material
|
| 129 |
+
breach of its terms and conditions.
|
| 130 |
+
|
| 131 |
+
7. Nothing in this License Agreement shall be deemed to create any
|
| 132 |
+
relationship of agency, partnership, or joint venture between PSF and
|
| 133 |
+
Licensee. This License Agreement does not grant permission to use PSF
|
| 134 |
+
trademarks or trade name in a trademark sense to endorse or promote
|
| 135 |
+
products or services of Licensee, or any third party.
|
| 136 |
+
|
| 137 |
+
8. By copying, installing or otherwise using Python, Licensee
|
| 138 |
+
agrees to be bound by the terms and conditions of this License
|
| 139 |
+
Agreement.
|
| 140 |
+
|
| 141 |
+
|
| 142 |
+
BEOPEN.COM LICENSE AGREEMENT FOR PYTHON 2.0
|
| 143 |
+
-------------------------------------------
|
| 144 |
+
|
| 145 |
+
BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1
|
| 146 |
+
|
| 147 |
+
1. This LICENSE AGREEMENT is between BeOpen.com ("BeOpen"), having an
|
| 148 |
+
office at 160 Saratoga Avenue, Santa Clara, CA 95051, and the
|
| 149 |
+
Individual or Organization ("Licensee") accessing and otherwise using
|
| 150 |
+
this software in source or binary form and its associated
|
| 151 |
+
documentation ("the Software").
|
| 152 |
+
|
| 153 |
+
2. Subject to the terms and conditions of this BeOpen Python License
|
| 154 |
+
Agreement, BeOpen hereby grants Licensee a non-exclusive,
|
| 155 |
+
royalty-free, world-wide license to reproduce, analyze, test, perform
|
| 156 |
+
and/or display publicly, prepare derivative works, distribute, and
|
| 157 |
+
otherwise use the Software alone or in any derivative version,
|
| 158 |
+
provided, however, that the BeOpen Python License is retained in the
|
| 159 |
+
Software, alone or in any derivative version prepared by Licensee.
|
| 160 |
+
|
| 161 |
+
3. BeOpen is making the Software available to Licensee on an "AS IS"
|
| 162 |
+
basis. BEOPEN MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
|
| 163 |
+
IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, BEOPEN MAKES NO AND
|
| 164 |
+
DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
|
| 165 |
+
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE WILL NOT
|
| 166 |
+
INFRINGE ANY THIRD PARTY RIGHTS.
|
| 167 |
+
|
| 168 |
+
4. BEOPEN SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE
|
| 169 |
+
SOFTWARE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS
|
| 170 |
+
AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THE SOFTWARE, OR ANY
|
| 171 |
+
DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
|
| 172 |
+
|
| 173 |
+
5. This License Agreement will automatically terminate upon a material
|
| 174 |
+
breach of its terms and conditions.
|
| 175 |
+
|
| 176 |
+
6. This License Agreement shall be governed by and interpreted in all
|
| 177 |
+
respects by the law of the State of California, excluding conflict of
|
| 178 |
+
law provisions. Nothing in this License Agreement shall be deemed to
|
| 179 |
+
create any relationship of agency, partnership, or joint venture
|
| 180 |
+
between BeOpen and Licensee. This License Agreement does not grant
|
| 181 |
+
permission to use BeOpen trademarks or trade names in a trademark
|
| 182 |
+
sense to endorse or promote products or services of Licensee, or any
|
| 183 |
+
third party. As an exception, the "BeOpen Python" logos available at
|
| 184 |
+
http://www.pythonlabs.com/logos.html may be used according to the
|
| 185 |
+
permissions granted on that web page.
|
| 186 |
+
|
| 187 |
+
7. By copying, installing or otherwise using the software, Licensee
|
| 188 |
+
agrees to be bound by the terms and conditions of this License
|
| 189 |
+
Agreement.
|
| 190 |
+
|
| 191 |
+
|
| 192 |
+
CNRI LICENSE AGREEMENT FOR PYTHON 1.6.1
|
| 193 |
+
---------------------------------------
|
| 194 |
+
|
| 195 |
+
1. This LICENSE AGREEMENT is between the Corporation for National
|
| 196 |
+
Research Initiatives, having an office at 1895 Preston White Drive,
|
| 197 |
+
Reston, VA 20191 ("CNRI"), and the Individual or Organization
|
| 198 |
+
("Licensee") accessing and otherwise using Python 1.6.1 software in
|
| 199 |
+
source or binary form and its associated documentation.
|
| 200 |
+
|
| 201 |
+
2. Subject to the terms and conditions of this License Agreement, CNRI
|
| 202 |
+
hereby grants Licensee a nonexclusive, royalty-free, world-wide
|
| 203 |
+
license to reproduce, analyze, test, perform and/or display publicly,
|
| 204 |
+
prepare derivative works, distribute, and otherwise use Python 1.6.1
|
| 205 |
+
alone or in any derivative version, provided, however, that CNRI's
|
| 206 |
+
License Agreement and CNRI's notice of copyright, i.e., "Copyright (c)
|
| 207 |
+
1995-2001 Corporation for National Research Initiatives; All Rights
|
| 208 |
+
Reserved" are retained in Python 1.6.1 alone or in any derivative
|
| 209 |
+
version prepared by Licensee. Alternately, in lieu of CNRI's License
|
| 210 |
+
Agreement, Licensee may substitute the following text (omitting the
|
| 211 |
+
quotes): "Python 1.6.1 is made available subject to the terms and
|
| 212 |
+
conditions in CNRI's License Agreement. This Agreement together with
|
| 213 |
+
Python 1.6.1 may be located on the internet using the following
|
| 214 |
+
unique, persistent identifier (known as a handle): 1895.22/1013. This
|
| 215 |
+
Agreement may also be obtained from a proxy server on the internet
|
| 216 |
+
using the following URL: http://hdl.handle.net/1895.22/1013".
|
| 217 |
+
|
| 218 |
+
3. In the event Licensee prepares a derivative work that is based on
|
| 219 |
+
or incorporates Python 1.6.1 or any part thereof, and wants to make
|
| 220 |
+
the derivative work available to others as provided herein, then
|
| 221 |
+
Licensee hereby agrees to include in any such work a brief summary of
|
| 222 |
+
the changes made to Python 1.6.1.
|
| 223 |
+
|
| 224 |
+
4. CNRI is making Python 1.6.1 available to Licensee on an "AS IS"
|
| 225 |
+
basis. CNRI MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
|
| 226 |
+
IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, CNRI MAKES NO AND
|
| 227 |
+
DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS
|
| 228 |
+
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 1.6.1 WILL NOT
|
| 229 |
+
INFRINGE ANY THIRD PARTY RIGHTS.
|
| 230 |
+
|
| 231 |
+
5. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON
|
| 232 |
+
1.6.1 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS
|
| 233 |
+
A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 1.6.1,
|
| 234 |
+
OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF.
|
| 235 |
+
|
| 236 |
+
6. This License Agreement will automatically terminate upon a material
|
| 237 |
+
breach of its terms and conditions.
|
| 238 |
+
|
| 239 |
+
7. This License Agreement shall be governed by the federal
|
| 240 |
+
intellectual property law of the United States, including without
|
| 241 |
+
limitation the federal copyright law, and, to the extent such
|
| 242 |
+
U.S. federal law does not apply, by the law of the Commonwealth of
|
| 243 |
+
Virginia, excluding Virginia's conflict of law provisions.
|
| 244 |
+
Notwithstanding the foregoing, with regard to derivative works based
|
| 245 |
+
on Python 1.6.1 that incorporate non-separable material that was
|
| 246 |
+
previously distributed under the GNU General Public License (GPL), the
|
| 247 |
+
law of the Commonwealth of Virginia shall govern this License
|
| 248 |
+
Agreement only as to issues arising under or with respect to
|
| 249 |
+
Paragraphs 4, 5, and 7 of this License Agreement. Nothing in this
|
| 250 |
+
License Agreement shall be deemed to create any relationship of
|
| 251 |
+
agency, partnership, or joint venture between CNRI and Licensee. This
|
| 252 |
+
License Agreement does not grant permission to use CNRI trademarks or
|
| 253 |
+
trade name in a trademark sense to endorse or promote products or
|
| 254 |
+
services of Licensee, or any third party.
|
| 255 |
+
|
| 256 |
+
8. By clicking on the "ACCEPT" button where indicated, or by copying,
|
| 257 |
+
installing or otherwise using Python 1.6.1, Licensee agrees to be
|
| 258 |
+
bound by the terms and conditions of this License Agreement.
|
| 259 |
+
|
| 260 |
+
ACCEPT
|
| 261 |
+
|
| 262 |
+
|
| 263 |
+
CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2
|
| 264 |
+
--------------------------------------------------
|
| 265 |
+
|
| 266 |
+
Copyright (c) 1991 - 1995, Stichting Mathematisch Centrum Amsterdam,
|
| 267 |
+
The Netherlands. All rights reserved.
|
| 268 |
+
|
| 269 |
+
Permission to use, copy, modify, and distribute this software and its
|
| 270 |
+
documentation for any purpose and without fee is hereby granted,
|
| 271 |
+
provided that the above copyright notice appear in all copies and that
|
| 272 |
+
both that copyright notice and this permission notice appear in
|
| 273 |
+
supporting documentation, and that the name of Stichting Mathematisch
|
| 274 |
+
Centrum or CWI not be used in advertising or publicity pertaining to
|
| 275 |
+
distribution of the software without specific, written prior
|
| 276 |
+
permission.
|
| 277 |
+
|
| 278 |
+
STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
|
| 279 |
+
THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
| 280 |
+
FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
|
| 281 |
+
FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
| 282 |
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
| 283 |
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
|
| 284 |
+
OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
| 285 |
+
|
| 286 |
+
ZERO-CLAUSE BSD LICENSE FOR CODE IN THE PYTHON DOCUMENTATION
|
| 287 |
+
----------------------------------------------------------------------
|
| 288 |
+
|
| 289 |
+
Permission to use, copy, modify, and/or distribute this software for any
|
| 290 |
+
purpose with or without fee is hereby granted.
|
| 291 |
+
|
| 292 |
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
| 293 |
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
| 294 |
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
| 295 |
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
| 296 |
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
| 297 |
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
| 298 |
+
PERFORMANCE OF THIS SOFTWARE.
|
evalkit_internvl/lib/python3.10/site-packages/et_xmlfile-2.0.0.dist-info/LICENCE.rst
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
This software is under the MIT Licence
|
| 2 |
+
======================================
|
| 3 |
+
|
| 4 |
+
Copyright (c) 2010 openpyxl
|
| 5 |
+
|
| 6 |
+
Permission is hereby granted, free of charge, to any person obtaining a
|
| 7 |
+
copy of this software and associated documentation files (the
|
| 8 |
+
"Software"), to deal in the Software without restriction, including
|
| 9 |
+
without limitation the rights to use, copy, modify, merge, publish,
|
| 10 |
+
distribute, sublicense, and/or sell copies of the Software, and to
|
| 11 |
+
permit persons to whom the Software is furnished to do so, subject to
|
| 12 |
+
the following conditions:
|
| 13 |
+
|
| 14 |
+
The above copyright notice and this permission notice shall be included
|
| 15 |
+
in all copies or substantial portions of the Software.
|
| 16 |
+
|
| 17 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
| 18 |
+
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 19 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
| 20 |
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
| 21 |
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
| 22 |
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
| 23 |
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
evalkit_internvl/lib/python3.10/site-packages/et_xmlfile-2.0.0.dist-info/METADATA
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.1
|
| 2 |
+
Name: et_xmlfile
|
| 3 |
+
Version: 2.0.0
|
| 4 |
+
Summary: An implementation of lxml.xmlfile for the standard library
|
| 5 |
+
Home-page: https://foss.heptapod.net/openpyxl/et_xmlfile
|
| 6 |
+
Author: See AUTHORS.txt
|
| 7 |
+
Author-email: charlie.clark@clark-consulting.eu
|
| 8 |
+
License: MIT
|
| 9 |
+
Project-URL: Documentation, https://openpyxl.pages.heptapod.net/et_xmlfile/
|
| 10 |
+
Project-URL: Source, https://foss.heptapod.net/openpyxl/et_xmlfile
|
| 11 |
+
Project-URL: Tracker, https://foss.heptapod.net/openpyxl/et_xmfile/-/issues
|
| 12 |
+
Classifier: Development Status :: 5 - Production/Stable
|
| 13 |
+
Classifier: Operating System :: MacOS :: MacOS X
|
| 14 |
+
Classifier: Operating System :: Microsoft :: Windows
|
| 15 |
+
Classifier: Operating System :: POSIX
|
| 16 |
+
Classifier: License :: OSI Approved :: MIT License
|
| 17 |
+
Classifier: Programming Language :: Python
|
| 18 |
+
Classifier: Programming Language :: Python :: 3.8
|
| 19 |
+
Classifier: Programming Language :: Python :: 3.9
|
| 20 |
+
Classifier: Programming Language :: Python :: 3.10
|
| 21 |
+
Classifier: Programming Language :: Python :: 3.11
|
| 22 |
+
Classifier: Programming Language :: Python :: 3.12
|
| 23 |
+
Classifier: Programming Language :: Python :: 3.13
|
| 24 |
+
Requires-Python: >=3.8
|
| 25 |
+
License-File: LICENCE.python
|
| 26 |
+
License-File: LICENCE.rst
|
| 27 |
+
License-File: AUTHORS.txt
|
| 28 |
+
|
| 29 |
+
.. image:: https://foss.heptapod.net/openpyxl/et_xmlfile/badges/branch/default/coverage.svg
|
| 30 |
+
:target: https://coveralls.io/bitbucket/openpyxl/et_xmlfile?branch=default
|
| 31 |
+
:alt: coverage status
|
| 32 |
+
|
| 33 |
+
et_xmfile
|
| 34 |
+
=========
|
| 35 |
+
|
| 36 |
+
XML can use lots of memory, and et_xmlfile is a low memory library for creating large XML files
|
| 37 |
+
And, although the standard library already includes an incremental parser, `iterparse` it has no equivalent when writing XML. Once an element has been added to the tree, it is written to
|
| 38 |
+
the file or stream and the memory is then cleared.
|
| 39 |
+
|
| 40 |
+
This module is based upon the `xmlfile module from lxml <http://lxml.de/api.html#incremental-xml-generation>`_ with the aim of allowing code to be developed that will work with both libraries.
|
| 41 |
+
It was developed initially for the openpyxl project, but is now a standalone module.
|
| 42 |
+
|
| 43 |
+
The code was written by Elias Rabel as part of the `Python Düsseldorf <http://pyddf.de>`_ openpyxl sprint in September 2014.
|
| 44 |
+
|
| 45 |
+
Proper support for incremental writing was provided by Daniel Hillier in 2024
|
| 46 |
+
|
| 47 |
+
Note on performance
|
| 48 |
+
-------------------
|
| 49 |
+
|
| 50 |
+
The code was not developed with performance in mind, but turned out to be faster than the existing SAX-based implementation but is generally slower than lxml's xmlfile.
|
| 51 |
+
There is one area where an optimisation for lxml may negatively affect the performance of et_xmfile and that is when using the `.element()` method on the xmlfile context manager. It is, therefore, recommended simply to create Elements write these directly, as in the sample code.
|
evalkit_internvl/lib/python3.10/site-packages/et_xmlfile-2.0.0.dist-info/REQUESTED
ADDED
|
File without changes
|
evalkit_internvl/lib/python3.10/site-packages/kiwisolver/__init__.py
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# --------------------------------------------------------------------------------------
|
| 2 |
+
# Copyright (c) 2013-2024, Nucleic Development Team.
|
| 3 |
+
#
|
| 4 |
+
# Distributed under the terms of the Modified BSD License.
|
| 5 |
+
#
|
| 6 |
+
# The full license is in the file LICENSE, distributed with this software.
|
| 7 |
+
# --------------------------------------------------------------------------------------
|
| 8 |
+
from ._cext import (
|
| 9 |
+
Constraint,
|
| 10 |
+
Expression,
|
| 11 |
+
Solver,
|
| 12 |
+
Term,
|
| 13 |
+
Variable,
|
| 14 |
+
__kiwi_version__,
|
| 15 |
+
__version__,
|
| 16 |
+
strength,
|
| 17 |
+
)
|
| 18 |
+
from .exceptions import (
|
| 19 |
+
BadRequiredStrength,
|
| 20 |
+
DuplicateConstraint,
|
| 21 |
+
DuplicateEditVariable,
|
| 22 |
+
UnknownConstraint,
|
| 23 |
+
UnknownEditVariable,
|
| 24 |
+
UnsatisfiableConstraint,
|
| 25 |
+
)
|
| 26 |
+
|
| 27 |
+
__all__ = [
|
| 28 |
+
"BadRequiredStrength",
|
| 29 |
+
"DuplicateConstraint",
|
| 30 |
+
"DuplicateEditVariable",
|
| 31 |
+
"UnknownConstraint",
|
| 32 |
+
"UnknownEditVariable",
|
| 33 |
+
"UnsatisfiableConstraint",
|
| 34 |
+
"strength",
|
| 35 |
+
"Variable",
|
| 36 |
+
"Term",
|
| 37 |
+
"Expression",
|
| 38 |
+
"Constraint",
|
| 39 |
+
"Solver",
|
| 40 |
+
"__version__",
|
| 41 |
+
"__kiwi_version__",
|
| 42 |
+
]
|
evalkit_internvl/lib/python3.10/site-packages/kiwisolver/__pycache__/__init__.cpython-310.pyc
ADDED
|
Binary file (651 Bytes). View file
|
|
|
evalkit_internvl/lib/python3.10/site-packages/kiwisolver/_cext.pyi
ADDED
|
@@ -0,0 +1,228 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# --------------------------------------------------------------------------------------
|
| 2 |
+
# Copyright (c) 2021-2024, Nucleic Development Team.
|
| 3 |
+
#
|
| 4 |
+
# Distributed under the terms of the Modified BSD License.
|
| 5 |
+
#
|
| 6 |
+
# The full license is in the file LICENSE, distributed with this software.
|
| 7 |
+
# --------------------------------------------------------------------------------------
|
| 8 |
+
|
| 9 |
+
from typing import Any, Iterable, NoReturn, Tuple, type_check_only
|
| 10 |
+
|
| 11 |
+
try:
|
| 12 |
+
from typing import Literal
|
| 13 |
+
except ImportError:
|
| 14 |
+
from typing_extensions import Literal # type: ignore
|
| 15 |
+
|
| 16 |
+
__version__: str
|
| 17 |
+
__kiwi_version__: str
|
| 18 |
+
|
| 19 |
+
# Types
|
| 20 |
+
@type_check_only
|
| 21 |
+
class Strength:
|
| 22 |
+
@property
|
| 23 |
+
def weak(self) -> float: ...
|
| 24 |
+
@property
|
| 25 |
+
def medium(self) -> float: ...
|
| 26 |
+
@property
|
| 27 |
+
def strong(self) -> float: ...
|
| 28 |
+
@property
|
| 29 |
+
def required(self) -> float: ...
|
| 30 |
+
def create(
|
| 31 |
+
self,
|
| 32 |
+
a: int | float,
|
| 33 |
+
b: int | float,
|
| 34 |
+
c: int | float,
|
| 35 |
+
weight: int | float = 1.0,
|
| 36 |
+
/,
|
| 37 |
+
) -> float: ...
|
| 38 |
+
|
| 39 |
+
# This is meant as a singleton and users should not access the Strength type.
|
| 40 |
+
strength: Strength
|
| 41 |
+
|
| 42 |
+
class Variable:
|
| 43 |
+
"""Variable to express a constraint in a solver."""
|
| 44 |
+
|
| 45 |
+
__hash__: None # type: ignore
|
| 46 |
+
def __init__(self, name: str = "", context: Any = None, /) -> None: ...
|
| 47 |
+
def name(self) -> str:
|
| 48 |
+
"""Get the name of the variable."""
|
| 49 |
+
...
|
| 50 |
+
def setName(self, name: str, /) -> Any:
|
| 51 |
+
"""Set the name of the variable."""
|
| 52 |
+
...
|
| 53 |
+
def value(self) -> float:
|
| 54 |
+
"""Get the current value of the variable."""
|
| 55 |
+
...
|
| 56 |
+
def context(self) -> Any:
|
| 57 |
+
"""Get the context object associated with the variable."""
|
| 58 |
+
...
|
| 59 |
+
def setContext(self, context: Any, /) -> Any:
|
| 60 |
+
"""Set the context object associated with the variable."""
|
| 61 |
+
...
|
| 62 |
+
def __neg__(self) -> Term: ...
|
| 63 |
+
def __add__(self, other: float | Variable | Term | Expression) -> Expression: ...
|
| 64 |
+
def __radd__(self, other: float | Variable | Term | Expression) -> Expression: ...
|
| 65 |
+
def __sub__(self, other: float | Variable | Term | Expression) -> Expression: ...
|
| 66 |
+
def __rsub__(self, other: float | Variable | Term | Expression) -> Expression: ...
|
| 67 |
+
def __mul__(self, other: float) -> Term: ...
|
| 68 |
+
def __rmul__(self, other: float) -> Term: ...
|
| 69 |
+
def __truediv__(self, other: float) -> Term: ...
|
| 70 |
+
def __rtruediv__(self, other: float) -> Term: ...
|
| 71 |
+
def __eq__(self, other: float | Variable | Term | Expression) -> Constraint: ... # type: ignore
|
| 72 |
+
def __ge__(self, other: float | Variable | Term | Expression) -> Constraint: ...
|
| 73 |
+
def __le__(self, other: float | Variable | Term | Expression) -> Constraint: ...
|
| 74 |
+
def __ne__(self, other: Any) -> NoReturn: ...
|
| 75 |
+
def __gt__(self, other: Any) -> NoReturn: ...
|
| 76 |
+
def __lt__(self, other: Any) -> NoReturn: ...
|
| 77 |
+
|
| 78 |
+
class Term:
|
| 79 |
+
"""Product of a variable by a constant pre-factor."""
|
| 80 |
+
|
| 81 |
+
__hash__: None # type: ignore
|
| 82 |
+
def __init__(
|
| 83 |
+
self, variable: Variable, coefficient: int | float = 1.0, /
|
| 84 |
+
) -> None: ...
|
| 85 |
+
def coefficient(self) -> float:
|
| 86 |
+
"""Get the coefficient for the term."""
|
| 87 |
+
...
|
| 88 |
+
def variable(self) -> Variable:
|
| 89 |
+
"""Get the variable for the term."""
|
| 90 |
+
...
|
| 91 |
+
def value(self) -> float:
|
| 92 |
+
"""Get the value for the term."""
|
| 93 |
+
...
|
| 94 |
+
def __neg__(self) -> Term: ...
|
| 95 |
+
def __add__(self, other: float | Variable | Term | Expression) -> Expression: ...
|
| 96 |
+
def __radd__(self, other: float | Variable | Term | Expression) -> Expression: ...
|
| 97 |
+
def __sub__(self, other: float | Variable | Term | Expression) -> Expression: ...
|
| 98 |
+
def __rsub__(self, other: float | Variable | Term | Expression) -> Expression: ...
|
| 99 |
+
def __mul__(self, other: float) -> Term: ...
|
| 100 |
+
def __rmul__(self, other: float) -> Term: ...
|
| 101 |
+
def __truediv__(self, other: float) -> Term: ...
|
| 102 |
+
def __rtruediv__(self, other: float) -> Term: ...
|
| 103 |
+
def __eq__(self, other: float | Variable | Term | Expression) -> Constraint: ... # type: ignore
|
| 104 |
+
def __ge__(self, other: float | Variable | Term | Expression) -> Constraint: ...
|
| 105 |
+
def __le__(self, other: float | Variable | Term | Expression) -> Constraint: ...
|
| 106 |
+
def __ne__(self, other: Any) -> NoReturn: ...
|
| 107 |
+
def __gt__(self, other: Any) -> NoReturn: ...
|
| 108 |
+
def __lt__(self, other: Any) -> NoReturn: ...
|
| 109 |
+
|
| 110 |
+
class Expression:
|
| 111 |
+
"""Sum of terms and an additional constant."""
|
| 112 |
+
|
| 113 |
+
__hash__: None # type: ignore
|
| 114 |
+
def __init__(
|
| 115 |
+
self, terms: Iterable[Term], constant: int | float = 0.0, /
|
| 116 |
+
) -> None: ...
|
| 117 |
+
def constant(self) -> float:
|
| 118 |
+
"" "Get the constant for the expression." ""
|
| 119 |
+
...
|
| 120 |
+
def terms(self) -> Tuple[Term, ...]:
|
| 121 |
+
"""Get the tuple of terms for the expression."""
|
| 122 |
+
...
|
| 123 |
+
def value(self) -> float:
|
| 124 |
+
"""Get the value for the expression."""
|
| 125 |
+
...
|
| 126 |
+
def __neg__(self) -> Expression: ...
|
| 127 |
+
def __add__(self, other: float | Variable | Term | Expression) -> Expression: ...
|
| 128 |
+
def __radd__(self, other: float | Variable | Term | Expression) -> Expression: ...
|
| 129 |
+
def __sub__(self, other: float | Variable | Term | Expression) -> Expression: ...
|
| 130 |
+
def __rsub__(self, other: float | Variable | Term | Expression) -> Expression: ...
|
| 131 |
+
def __mul__(self, other: float) -> Expression: ...
|
| 132 |
+
def __rmul__(self, other: float) -> Expression: ...
|
| 133 |
+
def __truediv__(self, other: float) -> Expression: ...
|
| 134 |
+
def __rtruediv__(self, other: float) -> Expression: ...
|
| 135 |
+
def __eq__(self, other: float | Variable | Term | Expression) -> Constraint: ... # type: ignore
|
| 136 |
+
def __ge__(self, other: float | Variable | Term | Expression) -> Constraint: ...
|
| 137 |
+
def __le__(self, other: float | Variable | Term | Expression) -> Constraint: ...
|
| 138 |
+
def __ne__(self, other: Any) -> NoReturn: ...
|
| 139 |
+
def __gt__(self, other: Any) -> NoReturn: ...
|
| 140 |
+
def __lt__(self, other: Any) -> NoReturn: ...
|
| 141 |
+
|
| 142 |
+
class Constraint:
|
| 143 |
+
def __init__(
|
| 144 |
+
self,
|
| 145 |
+
expression: Expression,
|
| 146 |
+
op: Literal["=="] | Literal["<="] | Literal[">="],
|
| 147 |
+
strength: float
|
| 148 |
+
| Literal["weak"]
|
| 149 |
+
| Literal["medium"]
|
| 150 |
+
| Literal["strong"]
|
| 151 |
+
| Literal["required"] = "required",
|
| 152 |
+
/,
|
| 153 |
+
) -> None: ...
|
| 154 |
+
def expression(self) -> Expression:
|
| 155 |
+
"""Get the expression object for the constraint."""
|
| 156 |
+
...
|
| 157 |
+
def op(self) -> Literal["=="] | Literal["<="] | Literal[">="]:
|
| 158 |
+
"""Get the relational operator for the constraint."""
|
| 159 |
+
...
|
| 160 |
+
def strength(self) -> float:
|
| 161 |
+
"""Get the strength for the constraint."""
|
| 162 |
+
...
|
| 163 |
+
def violated(self) -> bool:
|
| 164 |
+
"""Indicate if the constraint is violated in teh current state of the solver."""
|
| 165 |
+
...
|
| 166 |
+
def __or__(
|
| 167 |
+
self,
|
| 168 |
+
other: float
|
| 169 |
+
| Literal["weak"]
|
| 170 |
+
| Literal["medium"]
|
| 171 |
+
| Literal["strong"]
|
| 172 |
+
| Literal["required"],
|
| 173 |
+
) -> Constraint: ...
|
| 174 |
+
def __ror__(
|
| 175 |
+
self,
|
| 176 |
+
other: float
|
| 177 |
+
| Literal["weak"]
|
| 178 |
+
| Literal["medium"]
|
| 179 |
+
| Literal["strong"]
|
| 180 |
+
| Literal["required"],
|
| 181 |
+
) -> Constraint: ...
|
| 182 |
+
|
| 183 |
+
class Solver:
|
| 184 |
+
"""Kiwi solver class."""
|
| 185 |
+
|
| 186 |
+
def __init__(self) -> None: ...
|
| 187 |
+
def addConstraint(self, constraint: Constraint, /) -> None:
|
| 188 |
+
"""Add a constraint to the solver."""
|
| 189 |
+
...
|
| 190 |
+
def removeConstraint(self, constraint: Constraint, /) -> None:
|
| 191 |
+
"""Remove a constraint from the solver."""
|
| 192 |
+
...
|
| 193 |
+
def hasConstraint(self, constraint: Constraint, /) -> bool:
|
| 194 |
+
"""Check whether the solver contains a constraint."""
|
| 195 |
+
...
|
| 196 |
+
def addEditVariable(
|
| 197 |
+
self,
|
| 198 |
+
variable: Variable,
|
| 199 |
+
strength: float
|
| 200 |
+
| Literal["weak"]
|
| 201 |
+
| Literal["medium"]
|
| 202 |
+
| Literal["strong"]
|
| 203 |
+
| Literal["required"],
|
| 204 |
+
/,
|
| 205 |
+
) -> None:
|
| 206 |
+
"""Add an edit variable to the solver."""
|
| 207 |
+
...
|
| 208 |
+
def removeEditVariable(self, variable: Variable, /) -> None:
|
| 209 |
+
"""Remove an edit variable from the solver."""
|
| 210 |
+
...
|
| 211 |
+
def hasEditVariable(self, variable: Variable, /) -> bool:
|
| 212 |
+
"""Check whether the solver contains an edit variable."""
|
| 213 |
+
...
|
| 214 |
+
def suggestValue(self, variable: Variable, value: int | float, /) -> None:
|
| 215 |
+
"""Suggest a desired value for an edit variable."""
|
| 216 |
+
...
|
| 217 |
+
def updateVariables(self) -> None:
|
| 218 |
+
"""Update the values of the solver variables."""
|
| 219 |
+
...
|
| 220 |
+
def reset(self) -> None:
|
| 221 |
+
"""Reset the solver to the initial empty starting condition."""
|
| 222 |
+
...
|
| 223 |
+
def dump(self) -> None:
|
| 224 |
+
"""Dump a representation of the solver internals to stdout."""
|
| 225 |
+
...
|
| 226 |
+
def dumps(self) -> str:
|
| 227 |
+
"""Dump a representation of the solver internals to a string."""
|
| 228 |
+
...
|
evalkit_internvl/lib/python3.10/site-packages/kiwisolver/exceptions.py
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# --------------------------------------------------------------------------------------
|
| 2 |
+
# Copyright (c) 2023-2024, Nucleic Development Team.
|
| 3 |
+
#
|
| 4 |
+
# Distributed under the terms of the Modified BSD License.
|
| 5 |
+
#
|
| 6 |
+
# The full license is in the file LICENSE, distributed with this software.
|
| 7 |
+
# --------------------------------------------------------------------------------------
|
| 8 |
+
"""Kiwi exceptions.
|
| 9 |
+
|
| 10 |
+
Imported by the kiwisolver C extension.
|
| 11 |
+
|
| 12 |
+
"""
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
class BadRequiredStrength(Exception):
|
| 16 |
+
pass
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
class DuplicateConstraint(Exception):
|
| 20 |
+
__slots__ = ("constraint",)
|
| 21 |
+
|
| 22 |
+
def __init__(self, constraint):
|
| 23 |
+
self.constraint = constraint
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
class DuplicateEditVariable(Exception):
|
| 27 |
+
__slots__ = ("edit_variable",)
|
| 28 |
+
|
| 29 |
+
def __init__(self, edit_variable):
|
| 30 |
+
self.edit_variable = edit_variable
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
class UnknownConstraint(Exception):
|
| 34 |
+
__slots__ = ("constraint",)
|
| 35 |
+
|
| 36 |
+
def __init__(self, constraint):
|
| 37 |
+
self.constraint = constraint
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
class UnknownEditVariable(Exception):
|
| 41 |
+
__slots__ = ("edit_variable",)
|
| 42 |
+
|
| 43 |
+
def __init__(self, edit_variable):
|
| 44 |
+
self.edit_variable = edit_variable
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
class UnsatisfiableConstraint(Exception):
|
| 48 |
+
__slots__ = ("constraint",)
|
| 49 |
+
|
| 50 |
+
def __init__(self, constraint):
|
| 51 |
+
self.constraint = constraint
|
evalkit_internvl/lib/python3.10/site-packages/kiwisolver/py.typed
ADDED
|
File without changes
|
evalkit_internvl/lib/python3.10/site-packages/linkify_it_py-2.0.3.dist-info/INSTALLER
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
pip
|
evalkit_internvl/lib/python3.10/site-packages/linkify_it_py-2.0.3.dist-info/LICENSE
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2020 tsutsu3
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|
| 22 |
+
|
| 23 |
+
===============================================================================
|
| 24 |
+
|
| 25 |
+
Original Javascript version:
|
| 26 |
+
|
| 27 |
+
Copyright (c) 2015 Vitaly Puzrin.
|
| 28 |
+
|
| 29 |
+
Permission is hereby granted, free of charge, to any person
|
| 30 |
+
obtaining a copy of this software and associated documentation
|
| 31 |
+
files (the "Software"), to deal in the Software without
|
| 32 |
+
restriction, including without limitation the rights to use,
|
| 33 |
+
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 34 |
+
copies of the Software, and to permit persons to whom the
|
| 35 |
+
Software is furnished to do so, subject to the following
|
| 36 |
+
conditions:
|
| 37 |
+
|
| 38 |
+
The above copyright notice and this permission notice shall be
|
| 39 |
+
included in all copies or substantial portions of the Software.
|
| 40 |
+
|
| 41 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 42 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
| 43 |
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
| 44 |
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
| 45 |
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
| 46 |
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
| 47 |
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
| 48 |
+
OTHER DEALINGS IN THE SOFTWARE.
|
evalkit_internvl/lib/python3.10/site-packages/linkify_it_py-2.0.3.dist-info/METADATA
ADDED
|
@@ -0,0 +1,265 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Metadata-Version: 2.1
|
| 2 |
+
Name: linkify-it-py
|
| 3 |
+
Version: 2.0.3
|
| 4 |
+
Summary: Links recognition library with FULL unicode support.
|
| 5 |
+
Author: tsutsu3
|
| 6 |
+
License: MIT
|
| 7 |
+
Project-URL: Homepage, https://github.com/tsutsu3/linkify-it-py
|
| 8 |
+
Keywords: linkify,linkifier,autolink,autolinker
|
| 9 |
+
Classifier: Development Status :: 5 - Production/Stable
|
| 10 |
+
Classifier: Programming Language :: Python :: 3
|
| 11 |
+
Classifier: Programming Language :: Python :: 3.7
|
| 12 |
+
Classifier: Programming Language :: Python :: 3.8
|
| 13 |
+
Classifier: Programming Language :: Python :: 3.9
|
| 14 |
+
Classifier: Programming Language :: Python :: 3.10
|
| 15 |
+
Classifier: Programming Language :: Python :: 3.11
|
| 16 |
+
Classifier: License :: OSI Approved :: MIT License
|
| 17 |
+
Classifier: Operating System :: OS Independent
|
| 18 |
+
Classifier: Intended Audience :: Developers
|
| 19 |
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
| 20 |
+
Requires-Python: >=3.7
|
| 21 |
+
Description-Content-Type: text/markdown
|
| 22 |
+
License-File: LICENSE
|
| 23 |
+
Requires-Dist: uc-micro-py
|
| 24 |
+
Provides-Extra: benchmark
|
| 25 |
+
Requires-Dist: pytest ; extra == 'benchmark'
|
| 26 |
+
Requires-Dist: pytest-benchmark ; extra == 'benchmark'
|
| 27 |
+
Provides-Extra: dev
|
| 28 |
+
Requires-Dist: pre-commit ; extra == 'dev'
|
| 29 |
+
Requires-Dist: isort ; extra == 'dev'
|
| 30 |
+
Requires-Dist: flake8 ; extra == 'dev'
|
| 31 |
+
Requires-Dist: black ; extra == 'dev'
|
| 32 |
+
Requires-Dist: pyproject-flake8 ; extra == 'dev'
|
| 33 |
+
Provides-Extra: doc
|
| 34 |
+
Requires-Dist: sphinx ; extra == 'doc'
|
| 35 |
+
Requires-Dist: sphinx-book-theme ; extra == 'doc'
|
| 36 |
+
Requires-Dist: myst-parser ; extra == 'doc'
|
| 37 |
+
Provides-Extra: test
|
| 38 |
+
Requires-Dist: pytest ; extra == 'test'
|
| 39 |
+
Requires-Dist: coverage ; extra == 'test'
|
| 40 |
+
Requires-Dist: pytest-cov ; extra == 'test'
|
| 41 |
+
|
| 42 |
+
# linkify-it-py
|
| 43 |
+
|
| 44 |
+
[](https://github.com/tsutsu3/linkify-it-py/actions)
|
| 45 |
+
[](https://pypi.org/project/linkify-it-py/)
|
| 46 |
+
[](https://anaconda.org/conda-forge/linkify-it-py)
|
| 47 |
+
[](https://linkify-it-py.readthedocs.io/en/latest/?badge=latest)
|
| 48 |
+
[](https://codecov.io/gh/tsutsu3/linkify-it-py)
|
| 49 |
+
[](https://codeclimate.com/github/tsutsu3/linkify-it-py/maintainability)
|
| 50 |
+
|
| 51 |
+
This is Python port of [linkify-it](https://github.com/markdown-it/linkify-it).
|
| 52 |
+
|
| 53 |
+
> Links recognition library with FULL unicode support.
|
| 54 |
+
> Focused on high quality link patterns detection in plain text.
|
| 55 |
+
|
| 56 |
+
__[Demo](https://linkify-it-py-demo.vercel.app/)__
|
| 57 |
+
|
| 58 |
+
__[Javascript Demo](http://markdown-it.github.io/linkify-it/)__
|
| 59 |
+
|
| 60 |
+
Why it's awesome:
|
| 61 |
+
|
| 62 |
+
- Full unicode support, _with astral characters_!
|
| 63 |
+
- International domains support.
|
| 64 |
+
- Allows rules extension & custom normalizers.
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
## Install
|
| 68 |
+
|
| 69 |
+
```bash
|
| 70 |
+
pip install linkify-it-py
|
| 71 |
+
```
|
| 72 |
+
|
| 73 |
+
or
|
| 74 |
+
|
| 75 |
+
```bash
|
| 76 |
+
conda install -c conda-forge linkify-it-py
|
| 77 |
+
```
|
| 78 |
+
|
| 79 |
+
## Usage examples
|
| 80 |
+
|
| 81 |
+
### Example 1. Simple use
|
| 82 |
+
|
| 83 |
+
```python
|
| 84 |
+
from linkify_it import LinkifyIt
|
| 85 |
+
|
| 86 |
+
|
| 87 |
+
linkify = LinkifyIt()
|
| 88 |
+
|
| 89 |
+
print(linkify.test("Site github.com!"))
|
| 90 |
+
# => True
|
| 91 |
+
|
| 92 |
+
print(linkify.match("Site github.com!"))
|
| 93 |
+
# => [linkify_it.main.Match({
|
| 94 |
+
# 'schema': '',
|
| 95 |
+
# 'index': 5,
|
| 96 |
+
# 'last_index': 15,
|
| 97 |
+
# 'raw': 'github.com',
|
| 98 |
+
# 'text': 'github.com',
|
| 99 |
+
# 'url': 'http://github.com'
|
| 100 |
+
# }]
|
| 101 |
+
```
|
| 102 |
+
|
| 103 |
+
### Example 2. With options
|
| 104 |
+
|
| 105 |
+
```python
|
| 106 |
+
from linkify_it import LinkifyIt
|
| 107 |
+
from linkify_it.tlds import TLDS
|
| 108 |
+
|
| 109 |
+
|
| 110 |
+
# Reload full tlds list & add unofficial `.onion` domain.
|
| 111 |
+
linkify = (
|
| 112 |
+
LinkifyIt()
|
| 113 |
+
.tlds(TLDS) # Reload with full tlds list
|
| 114 |
+
.tlds("onion", True) # Add unofficial `.onion` domain
|
| 115 |
+
.add("git:", "http:") # Add `git:` protocol as "alias"
|
| 116 |
+
.add("ftp:", None) # Disable `ftp:` protocol
|
| 117 |
+
.set({"fuzzy_ip": True}) # Enable IPs in fuzzy links (without schema)
|
| 118 |
+
)
|
| 119 |
+
print(linkify.test("Site tamanegi.onion!"))
|
| 120 |
+
# => True
|
| 121 |
+
|
| 122 |
+
print(linkify.match("Site tamanegi.onion!"))
|
| 123 |
+
# => [linkify_it.main.Match({
|
| 124 |
+
# 'schema': '',
|
| 125 |
+
# 'index': 5,
|
| 126 |
+
# 'last_index': 19,
|
| 127 |
+
# 'raw': 'tamanegi.onion',
|
| 128 |
+
# 'text': 'tamanegi.onion',
|
| 129 |
+
# 'url': 'http://tamanegi.onion'
|
| 130 |
+
# }]
|
| 131 |
+
```
|
| 132 |
+
|
| 133 |
+
### Example 3. Add twitter mentions handler
|
| 134 |
+
|
| 135 |
+
```python
|
| 136 |
+
from linkify_it import LinkifyIt
|
| 137 |
+
|
| 138 |
+
|
| 139 |
+
linkify = LinkifyIt()
|
| 140 |
+
|
| 141 |
+
def validate(obj, text, pos):
|
| 142 |
+
tail = text[pos:]
|
| 143 |
+
|
| 144 |
+
if not obj.re.get("twitter"):
|
| 145 |
+
obj.re["twitter"] = re.compile(
|
| 146 |
+
"^([a-zA-Z0-9_]){1,15}(?!_)(?=$|" + obj.re["src_ZPCc"] + ")"
|
| 147 |
+
)
|
| 148 |
+
if obj.re["twitter"].search(tail):
|
| 149 |
+
if pos > 2 and tail[pos - 2] == "@":
|
| 150 |
+
return False
|
| 151 |
+
return len(obj.re["twitter"].search(tail).group())
|
| 152 |
+
return 0
|
| 153 |
+
|
| 154 |
+
def normalize(obj, match):
|
| 155 |
+
match.url = "https://twitter.com/" + re.sub(r"^@", "", match.url)
|
| 156 |
+
|
| 157 |
+
linkify.add("@", {"validate": validate, "normalize": normalize})
|
| 158 |
+
```
|
| 159 |
+
|
| 160 |
+
|
| 161 |
+
## API
|
| 162 |
+
|
| 163 |
+
[API documentation](https://linkify-it-py.readthedocs.io/en/latest/)
|
| 164 |
+
|
| 165 |
+
### LinkifyIt(schemas, options)
|
| 166 |
+
|
| 167 |
+
Creates new linkifier instance with optional additional schemas.
|
| 168 |
+
|
| 169 |
+
By default understands:
|
| 170 |
+
|
| 171 |
+
- `http(s)://...` , `ftp://...`, `mailto:...` & `//...` links
|
| 172 |
+
- "fuzzy" links and emails (google.com, foo@bar.com).
|
| 173 |
+
|
| 174 |
+
`schemas` is an dict, where each key/value describes protocol/rule:
|
| 175 |
+
|
| 176 |
+
- __key__ - link prefix (usually, protocol name with `:` at the end, `skype:`
|
| 177 |
+
for example). `linkify-it-py` makes sure that prefix is not preceded with
|
| 178 |
+
alphanumeric char.
|
| 179 |
+
- __value__ - rule to check tail after link prefix
|
| 180 |
+
- _str_
|
| 181 |
+
- just alias to existing rule
|
| 182 |
+
- _dict_
|
| 183 |
+
- _validate_ - either a `re.Pattern` (start with `^`, and don't include the
|
| 184 |
+
link prefix itself), or a validator `function` which, given arguments
|
| 185 |
+
_self_, _text_ and _pos_, returns the length of a match in _text_
|
| 186 |
+
starting at index _pos_. _pos_ is the index right after the link prefix.
|
| 187 |
+
_self_ can be used to access the linkify object to cache data.
|
| 188 |
+
- _normalize_ - optional function to normalize text & url of matched result
|
| 189 |
+
(for example, for twitter mentions).
|
| 190 |
+
|
| 191 |
+
`options`:
|
| 192 |
+
|
| 193 |
+
- __fuzzy_link__ - recognize URL-s without `http(s)://` head. Default `True`.
|
| 194 |
+
- __fuzzy_ip__ - allow IPs in fuzzy links above. Can conflict with some texts
|
| 195 |
+
like version numbers. Default `False`.
|
| 196 |
+
- __fuzzy_email__ - recognize emails without `mailto:` prefix. Default `True`.
|
| 197 |
+
- __---__ - set `True` to terminate link with `---` (if it's considered as long dash).
|
| 198 |
+
|
| 199 |
+
|
| 200 |
+
### .test(text)
|
| 201 |
+
|
| 202 |
+
Searches linkifiable pattern and returns `True` on success or `False` on fail.
|
| 203 |
+
|
| 204 |
+
|
| 205 |
+
### .pretest(text)
|
| 206 |
+
|
| 207 |
+
Quick check if link MAY BE can exist. Can be used to optimize more expensive
|
| 208 |
+
`.test()` calls. Return `False` if link can not be found, `True` - if `.test()`
|
| 209 |
+
call needed to know exactly.
|
| 210 |
+
|
| 211 |
+
|
| 212 |
+
### .test_schema_at(text, name, position)
|
| 213 |
+
|
| 214 |
+
Similar to `.test()` but checks only specific protocol tail exactly at given
|
| 215 |
+
position. Returns length of found pattern (0 on fail).
|
| 216 |
+
|
| 217 |
+
|
| 218 |
+
### .match(text)
|
| 219 |
+
|
| 220 |
+
Returns `list` of found link matches or null if nothing found.
|
| 221 |
+
|
| 222 |
+
Each match has:
|
| 223 |
+
|
| 224 |
+
- __schema__ - link schema, can be empty for fuzzy links, or `//` for
|
| 225 |
+
protocol-neutral links.
|
| 226 |
+
- __index__ - offset of matched text
|
| 227 |
+
- __last_index__ - index of next char after mathch end
|
| 228 |
+
- __raw__ - matched text
|
| 229 |
+
- __text__ - normalized text
|
| 230 |
+
- __url__ - link, generated from matched text
|
| 231 |
+
|
| 232 |
+
### .matchAtStart(text)
|
| 233 |
+
|
| 234 |
+
Checks if a match exists at the start of the string. Returns `Match`
|
| 235 |
+
(see docs for `match(text)`) or null if no URL is at the start.
|
| 236 |
+
Doesn't work with fuzzy links.
|
| 237 |
+
|
| 238 |
+
### .tlds(list_tlds, keep_old=False)
|
| 239 |
+
|
| 240 |
+
Load (or merge) new tlds list. Those are needed for fuzzy links (without schema)
|
| 241 |
+
to avoid false positives. By default:
|
| 242 |
+
|
| 243 |
+
- 2-letter root zones are ok.
|
| 244 |
+
- biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф are ok.
|
| 245 |
+
- encoded (`xn--...`) root zones are ok.
|
| 246 |
+
|
| 247 |
+
If that's not enough, you can reload defaults with more detailed zones list.
|
| 248 |
+
|
| 249 |
+
### .add(key, value)
|
| 250 |
+
|
| 251 |
+
Add a new schema to the schemas object. As described in the constructor
|
| 252 |
+
definition, `key` is a link prefix (`skype:`, for example), and `value`
|
| 253 |
+
is a `str` to alias to another schema, or an `dict` with `validate` and
|
| 254 |
+
optionally `normalize` definitions. To disable an existing rule, use
|
| 255 |
+
`.add(key, None)`.
|
| 256 |
+
|
| 257 |
+
|
| 258 |
+
### .set(options)
|
| 259 |
+
|
| 260 |
+
Override default options. Missed properties will not be changed.
|
| 261 |
+
|
| 262 |
+
|
| 263 |
+
## License
|
| 264 |
+
|
| 265 |
+
[MIT](https://github.com/tsutsu3/linkify-it-py/blob/master/LICENSE)
|
evalkit_internvl/lib/python3.10/site-packages/linkify_it_py-2.0.3.dist-info/RECORD
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
linkify_it/__init__.py,sha256=ZnKSUATUH8ZAy_lTWrEgSK4Ug7uw46aoySYWipdm44g,111
|
| 2 |
+
linkify_it/__pycache__/__init__.cpython-310.pyc,,
|
| 3 |
+
linkify_it/__pycache__/main.cpython-310.pyc,,
|
| 4 |
+
linkify_it/__pycache__/tlds.cpython-310.pyc,,
|
| 5 |
+
linkify_it/__pycache__/ucre.cpython-310.pyc,,
|
| 6 |
+
linkify_it/main.py,sha256=Uz1znZWNyYYARZMZCo2WopkGm4bhCGGmlAfQ8_q9hfQ,21327
|
| 7 |
+
linkify_it/tlds.py,sha256=qMiHGlrXHOQ8o_PLIo91PdlvqEk1URRq7vBpy2m-reQ,20791
|
| 8 |
+
linkify_it/ucre.py,sha256=Uke7Jrmuwo_yWHJx0-p2qUa_-yvdQug9y9qWMOK78v0,7103
|
| 9 |
+
linkify_it_py-2.0.3.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
| 10 |
+
linkify_it_py-2.0.3.dist-info/LICENSE,sha256=211x9h8PeB9QeN9LagDV08eZ-wu4K89EimiOl2Jhii4,2234
|
| 11 |
+
linkify_it_py-2.0.3.dist-info/METADATA,sha256=m1HD37X0cqwnkOxs3BfN9ZneVXAsw5tOZJOt4g08e24,8463
|
| 12 |
+
linkify_it_py-2.0.3.dist-info/RECORD,,
|
| 13 |
+
linkify_it_py-2.0.3.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
| 14 |
+
linkify_it_py-2.0.3.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
| 15 |
+
linkify_it_py-2.0.3.dist-info/top_level.txt,sha256=GX2cfxY-SBCSdp6rvG1YSnI4SQrTxT8tzUFHFvfiM2s,11
|
evalkit_internvl/lib/python3.10/site-packages/linkify_it_py-2.0.3.dist-info/REQUESTED
ADDED
|
File without changes
|
evalkit_internvl/lib/python3.10/site-packages/linkify_it_py-2.0.3.dist-info/WHEEL
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Wheel-Version: 1.0
|
| 2 |
+
Generator: bdist_wheel (0.42.0)
|
| 3 |
+
Root-Is-Purelib: true
|
| 4 |
+
Tag: py3-none-any
|
| 5 |
+
|
evalkit_internvl/lib/python3.10/site-packages/linkify_it_py-2.0.3.dist-info/top_level.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
linkify_it
|
evalkit_internvl/lib/python3.10/site-packages/parso/__pycache__/__init__.cpython-310.pyc
ADDED
|
Binary file (1.87 kB). View file
|
|
|
evalkit_internvl/lib/python3.10/site-packages/parso/__pycache__/_compatibility.cpython-310.pyc
ADDED
|
Binary file (245 Bytes). View file
|
|
|
evalkit_internvl/lib/python3.10/site-packages/parso/__pycache__/cache.cpython-310.pyc
ADDED
|
Binary file (6.02 kB). View file
|
|
|
evalkit_internvl/lib/python3.10/site-packages/parso/__pycache__/file_io.cpython-310.pyc
ADDED
|
Binary file (1.73 kB). View file
|
|
|
evalkit_internvl/lib/python3.10/site-packages/parso/__pycache__/grammar.cpython-310.pyc
ADDED
|
Binary file (9.33 kB). View file
|
|
|
evalkit_internvl/lib/python3.10/site-packages/parso/__pycache__/normalizer.cpython-310.pyc
ADDED
|
Binary file (7.35 kB). View file
|
|
|
evalkit_internvl/lib/python3.10/site-packages/parso/__pycache__/parser.cpython-310.pyc
ADDED
|
Binary file (7 kB). View file
|
|
|
evalkit_internvl/lib/python3.10/site-packages/parso/__pycache__/tree.cpython-310.pyc
ADDED
|
Binary file (15.6 kB). View file
|
|
|
evalkit_internvl/lib/python3.10/site-packages/parso/__pycache__/utils.cpython-310.pyc
ADDED
|
Binary file (5.56 kB). View file
|
|
|
evalkit_internvl/lib/python3.10/site-packages/parso/_compatibility.py
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import platform
|
| 2 |
+
|
| 3 |
+
is_pypy = platform.python_implementation() == 'PyPy'
|
evalkit_internvl/lib/python3.10/site-packages/parso/pgen2/__init__.py
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2004-2005 Elemental Security, Inc. All Rights Reserved.
|
| 2 |
+
# Licensed to PSF under a Contributor Agreement.
|
| 3 |
+
|
| 4 |
+
# Modifications:
|
| 5 |
+
# Copyright 2006 Google, Inc. All Rights Reserved.
|
| 6 |
+
# Licensed to PSF under a Contributor Agreement.
|
| 7 |
+
# Copyright 2014 David Halter and Contributors
|
| 8 |
+
# Modifications are dual-licensed: MIT and PSF.
|
| 9 |
+
|
| 10 |
+
from parso.pgen2.generator import generate_grammar
|
evalkit_internvl/lib/python3.10/site-packages/parso/pgen2/__pycache__/__init__.cpython-310.pyc
ADDED
|
Binary file (235 Bytes). View file
|
|
|