fix(camera-ai): restore front-facing camera generation
This commit is contained in:
parent
acc5ef9356
commit
1fd93454eb
@ -1,5 +1,23 @@
|
||||
# Changelog
|
||||
|
||||
## 0.4.7 - 2026-08-09
|
||||
|
||||
- Fixed the incomplete 6D-to-quaternion conversion that replaced every
|
||||
non-positive-trace rotation with a fixed 180-degree roll. This had rejected
|
||||
almost all authored front-camera templates and biased generation toward the
|
||||
actor's back.
|
||||
- Added torso-derived front-facing safety to candidate selection, including
|
||||
median alignment, severe-rear frame ratio, and longest consecutive rear run.
|
||||
- Made missing or non-finite front-facing audit data fail closed and improved
|
||||
all-candidates-rejected diagnostics with per-gate counts.
|
||||
- Invalidated both preparation and candidate caches because corrected template
|
||||
rotations affect both stages.
|
||||
- Rebuilt self-contained Windows worker 0.1.3 with pinned, verified runtime
|
||||
dependencies. The focused worker suite passes 148 tests.
|
||||
- On the 12,269-frame Arisa regression input, front-safety failures improved
|
||||
from 49/56 shots to 0/56; severe rear-facing frames fell from 72.64% to
|
||||
0.18%, with a maximum per-shot run of 15 frames.
|
||||
|
||||
## 0.4.2 - 2026-08-03
|
||||
|
||||
- Fixed Unity assembly exclusion caused by duplicate legacy/package script GUIDs.
|
||||
|
||||
BIN
CameraAI~/Tools~/CWCameraWorker/CWCameraWorker.exe
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/CWCameraWorker.exe
(Stored with Git LFS)
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/PIL/_imaging.cp310-win_amd64.pyd
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/PIL/_imaging.cp310-win_amd64.pyd
(Stored with Git LFS)
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/PIL/_imagingcms.cp310-win_amd64.pyd
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/PIL/_imagingcms.cp310-win_amd64.pyd
(Stored with Git LFS)
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/PIL/_imagingft.cp310-win_amd64.pyd
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/PIL/_imagingft.cp310-win_amd64.pyd
(Stored with Git LFS)
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/PIL/_imagingmath.cp310-win_amd64.pyd
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/PIL/_imagingmath.cp310-win_amd64.pyd
(Stored with Git LFS)
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/PIL/_imagingtk.cp310-win_amd64.pyd
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/PIL/_imagingtk.cp310-win_amd64.pyd
(Stored with Git LFS)
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/PIL/_webp.cp310-win_amd64.pyd
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/PIL/_webp.cp310-win_amd64.pyd
(Stored with Git LFS)
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/Pythonwin/mfc140u.dll
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/Pythonwin/mfc140u.dll
(Stored with Git LFS)
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/Pythonwin/win32ui.pyd
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/Pythonwin/win32ui.pyd
(Stored with Git LFS)
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/VCRUNTIME140.dll
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/VCRUNTIME140.dll
(Stored with Git LFS)
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/VCRUNTIME140_1.dll
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/VCRUNTIME140_1.dll
(Stored with Git LFS)
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/_asyncio.pyd
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/_asyncio.pyd
(Stored with Git LFS)
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/_brotli.cp310-win_amd64.pyd
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/_brotli.cp310-win_amd64.pyd
(Stored with Git LFS)
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/_bz2.pyd
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/_bz2.pyd
(Stored with Git LFS)
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/_cffi_backend.cp310-win_amd64.pyd
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/_cffi_backend.cp310-win_amd64.pyd
(Stored with Git LFS)
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/_cffi_backend.cp312-win_amd64.pyd
(Stored with Git LFS)
Normal file
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/_cffi_backend.cp312-win_amd64.pyd
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/_ctypes.pyd
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/_ctypes.pyd
(Stored with Git LFS)
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/_decimal.pyd
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/_decimal.pyd
(Stored with Git LFS)
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/_elementtree.pyd
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/_elementtree.pyd
(Stored with Git LFS)
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/_hashlib.pyd
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/_hashlib.pyd
(Stored with Git LFS)
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/_lzma.pyd
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/_lzma.pyd
(Stored with Git LFS)
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/_multiprocessing.pyd
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/_multiprocessing.pyd
(Stored with Git LFS)
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/_overlapped.pyd
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/_overlapped.pyd
(Stored with Git LFS)
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/_queue.pyd
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/_queue.pyd
(Stored with Git LFS)
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/_socket.pyd
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/_socket.pyd
(Stored with Git LFS)
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/_sqlite3.pyd
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/_sqlite3.pyd
(Stored with Git LFS)
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/_ssl.pyd
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/_ssl.pyd
(Stored with Git LFS)
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/_uuid.pyd
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/_uuid.pyd
(Stored with Git LFS)
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/_wmi.pyd
(Stored with Git LFS)
Normal file
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/_wmi.pyd
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/_zoneinfo.pyd
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/_zoneinfo.pyd
(Stored with Git LFS)
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/ada92cb5d92a588d1b93__mypyc.cp312-win_amd64.pyd
(Stored with Git LFS)
Normal file
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/ada92cb5d92a588d1b93__mypyc.cp312-win_amd64.pyd
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/api-ms-win-crt-multibyte-l1-1-0.dll
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/api-ms-win-crt-multibyte-l1-1-0.dll
(Stored with Git LFS)
Binary file not shown.
@ -1 +0,0 @@
|
||||
pip
|
||||
@ -1,202 +0,0 @@
|
||||
Metadata-Version: 2.1
|
||||
Name: attrs
|
||||
Version: 23.2.0
|
||||
Summary: Classes Without Boilerplate
|
||||
Project-URL: Documentation, https://www.attrs.org/
|
||||
Project-URL: Changelog, https://www.attrs.org/en/stable/changelog.html
|
||||
Project-URL: GitHub, https://github.com/python-attrs/attrs
|
||||
Project-URL: Funding, https://github.com/sponsors/hynek
|
||||
Project-URL: Tidelift, https://tidelift.com/subscription/pkg/pypi-attrs?utm_source=pypi-attrs&utm_medium=pypi
|
||||
Author-email: Hynek Schlawack <hs@ox.cx>
|
||||
License-Expression: MIT
|
||||
License-File: LICENSE
|
||||
Keywords: attribute,boilerplate,class
|
||||
Classifier: Development Status :: 5 - Production/Stable
|
||||
Classifier: License :: OSI Approved :: MIT License
|
||||
Classifier: Programming Language :: Python :: 3.7
|
||||
Classifier: Programming Language :: Python :: 3.8
|
||||
Classifier: Programming Language :: Python :: 3.9
|
||||
Classifier: Programming Language :: Python :: 3.10
|
||||
Classifier: Programming Language :: Python :: 3.11
|
||||
Classifier: Programming Language :: Python :: 3.12
|
||||
Classifier: Programming Language :: Python :: Implementation :: CPython
|
||||
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
||||
Classifier: Typing :: Typed
|
||||
Requires-Python: >=3.7
|
||||
Requires-Dist: importlib-metadata; python_version < '3.8'
|
||||
Provides-Extra: cov
|
||||
Requires-Dist: attrs[tests]; extra == 'cov'
|
||||
Requires-Dist: coverage[toml]>=5.3; extra == 'cov'
|
||||
Provides-Extra: dev
|
||||
Requires-Dist: attrs[tests]; extra == 'dev'
|
||||
Requires-Dist: pre-commit; extra == 'dev'
|
||||
Provides-Extra: docs
|
||||
Requires-Dist: furo; extra == 'docs'
|
||||
Requires-Dist: myst-parser; extra == 'docs'
|
||||
Requires-Dist: sphinx; extra == 'docs'
|
||||
Requires-Dist: sphinx-notfound-page; extra == 'docs'
|
||||
Requires-Dist: sphinxcontrib-towncrier; extra == 'docs'
|
||||
Requires-Dist: towncrier; extra == 'docs'
|
||||
Requires-Dist: zope-interface; extra == 'docs'
|
||||
Provides-Extra: tests
|
||||
Requires-Dist: attrs[tests-no-zope]; extra == 'tests'
|
||||
Requires-Dist: zope-interface; extra == 'tests'
|
||||
Provides-Extra: tests-mypy
|
||||
Requires-Dist: mypy>=1.6; (platform_python_implementation == 'CPython' and python_version >= '3.8') and extra == 'tests-mypy'
|
||||
Requires-Dist: pytest-mypy-plugins; (platform_python_implementation == 'CPython' and python_version >= '3.8') and extra == 'tests-mypy'
|
||||
Provides-Extra: tests-no-zope
|
||||
Requires-Dist: attrs[tests-mypy]; extra == 'tests-no-zope'
|
||||
Requires-Dist: cloudpickle; (platform_python_implementation == 'CPython') and extra == 'tests-no-zope'
|
||||
Requires-Dist: hypothesis; extra == 'tests-no-zope'
|
||||
Requires-Dist: pympler; extra == 'tests-no-zope'
|
||||
Requires-Dist: pytest-xdist[psutil]; extra == 'tests-no-zope'
|
||||
Requires-Dist: pytest>=4.3.0; extra == 'tests-no-zope'
|
||||
Description-Content-Type: text/markdown
|
||||
|
||||
<p align="center">
|
||||
<a href="https://www.attrs.org/">
|
||||
<img src="https://raw.githubusercontent.com/python-attrs/attrs/main/docs/_static/attrs_logo.svg" width="35%" alt="attrs" />
|
||||
</a>
|
||||
</p>
|
||||
|
||||
|
||||
*attrs* is the Python package that will bring back the **joy** of **writing classes** by relieving you from the drudgery of implementing object protocols (aka [dunder methods](https://www.attrs.org/en/latest/glossary.html#term-dunder-methods)).
|
||||
[Trusted by NASA](https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-github-profile/customizing-your-profile/personalizing-your-profile#list-of-qualifying-repositories-for-mars-2020-helicopter-contributor-achievement) for Mars missions since 2020!
|
||||
|
||||
Its main goal is to help you to write **concise** and **correct** software without slowing down your code.
|
||||
|
||||
|
||||
## Sponsors
|
||||
|
||||
*attrs* would not be possible without our [amazing sponsors](https://github.com/sponsors/hynek).
|
||||
Especially those generously supporting us at the *The Organization* tier and higher:
|
||||
|
||||
<p align="center">
|
||||
<a href="https://www.variomedia.de/"><img src="https://www.attrs.org/en/23.2.0/_static/sponsors/Variomedia.svg" width="200" height="60" /></a>
|
||||
<a href="https://tidelift.com/subscription/pkg/pypi-attrs?utm_source=pypi-attrs&utm_medium=referral&utm_campaign=enterprise&utm_term=repo"><img src="https://www.attrs.org/en/23.2.0/_static/sponsors/Tidelift.svg" width="200" height="60" /></a>
|
||||
<a href="https://filepreviews.io/"><img src="https://www.attrs.org/en/23.2.0/_static/sponsors/FilePreviews.svg" width="200" height="60"/></a>
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<strong>Please consider <a href="https://github.com/sponsors/hynek">joining them</a> to help make <em>attrs</em>’s maintenance more sustainable!</strong>
|
||||
</p>
|
||||
|
||||
<!-- teaser-end -->
|
||||
|
||||
## Example
|
||||
|
||||
*attrs* gives you a class decorator and a way to declaratively define the attributes on that class:
|
||||
|
||||
<!-- code-begin -->
|
||||
|
||||
```pycon
|
||||
>>> from attrs import asdict, define, make_class, Factory
|
||||
|
||||
>>> @define
|
||||
... class SomeClass:
|
||||
... a_number: int = 42
|
||||
... list_of_numbers: list[int] = Factory(list)
|
||||
...
|
||||
... def hard_math(self, another_number):
|
||||
... return self.a_number + sum(self.list_of_numbers) * another_number
|
||||
|
||||
|
||||
>>> sc = SomeClass(1, [1, 2, 3])
|
||||
>>> sc
|
||||
SomeClass(a_number=1, list_of_numbers=[1, 2, 3])
|
||||
|
||||
>>> sc.hard_math(3)
|
||||
19
|
||||
>>> sc == SomeClass(1, [1, 2, 3])
|
||||
True
|
||||
>>> sc != SomeClass(2, [3, 2, 1])
|
||||
True
|
||||
|
||||
>>> asdict(sc)
|
||||
{'a_number': 1, 'list_of_numbers': [1, 2, 3]}
|
||||
|
||||
>>> SomeClass()
|
||||
SomeClass(a_number=42, list_of_numbers=[])
|
||||
|
||||
>>> C = make_class("C", ["a", "b"])
|
||||
>>> C("foo", "bar")
|
||||
C(a='foo', b='bar')
|
||||
```
|
||||
|
||||
After *declaring* your attributes, *attrs* gives you:
|
||||
|
||||
- a concise and explicit overview of the class's attributes,
|
||||
- a nice human-readable `__repr__`,
|
||||
- equality-checking methods,
|
||||
- an initializer,
|
||||
- and much more,
|
||||
|
||||
*without* writing dull boilerplate code again and again and *without* runtime performance penalties.
|
||||
|
||||
**Hate type annotations**!?
|
||||
No problem!
|
||||
Types are entirely **optional** with *attrs*.
|
||||
Simply assign `attrs.field()` to the attributes instead of annotating them with types.
|
||||
|
||||
---
|
||||
|
||||
This example uses *attrs*'s modern APIs that have been introduced in version 20.1.0, and the *attrs* package import name that has been added in version 21.3.0.
|
||||
The classic APIs (`@attr.s`, `attr.ib`, plus their serious-business aliases) and the `attr` package import name will remain **indefinitely**.
|
||||
|
||||
Please check out [*On The Core API Names*](https://www.attrs.org/en/latest/names.html) for a more in-depth explanation.
|
||||
|
||||
|
||||
## Data Classes
|
||||
|
||||
On the tin, *attrs* might remind you of `dataclasses` (and indeed, `dataclasses` [are a descendant](https://hynek.me/articles/import-attrs/) of *attrs*).
|
||||
In practice it does a lot more and is more flexible.
|
||||
For instance it allows you to define [special handling of NumPy arrays for equality checks](https://www.attrs.org/en/stable/comparison.html#customization), allows more ways to [plug into the initialization process](https://www.attrs.org/en/stable/init.html#hooking-yourself-into-initialization), and allows for stepping through the generated methods using a debugger.
|
||||
|
||||
For more details, please refer to our [comparison page](https://www.attrs.org/en/stable/why.html#data-classes).
|
||||
|
||||
|
||||
## Project Information
|
||||
|
||||
- [**Changelog**](https://www.attrs.org/en/stable/changelog.html)
|
||||
- [**Documentation**](https://www.attrs.org/)
|
||||
- [**PyPI**](https://pypi.org/project/attrs/)
|
||||
- [**Source Code**](https://github.com/python-attrs/attrs)
|
||||
- [**Contributing**](https://github.com/python-attrs/attrs/blob/main/.github/CONTRIBUTING.md)
|
||||
- [**Third-party Extensions**](https://github.com/python-attrs/attrs/wiki/Extensions-to-attrs)
|
||||
- **Get Help**: please use the `python-attrs` tag on [StackOverflow](https://stackoverflow.com/questions/tagged/python-attrs)
|
||||
|
||||
|
||||
### *attrs* for Enterprise
|
||||
|
||||
Available as part of the Tidelift Subscription.
|
||||
|
||||
The maintainers of *attrs* and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source packages you use to build your applications.
|
||||
Save time, reduce risk, and improve code health, while paying the maintainers of the exact packages you use.
|
||||
[Learn more.](https://tidelift.com/subscription/pkg/pypi-attrs?utm_source=pypi-attrs&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)
|
||||
|
||||
## Release Information
|
||||
|
||||
### Changes
|
||||
|
||||
- The type annotation for `attrs.resolve_types()` is now correct.
|
||||
[#1141](https://github.com/python-attrs/attrs/issues/1141)
|
||||
- Type stubs now use `typing.dataclass_transform` to decorate dataclass-like decorators, instead of the non-standard `__dataclass_transform__` special form, which is only supported by Pyright.
|
||||
[#1158](https://github.com/python-attrs/attrs/issues/1158)
|
||||
- Fixed serialization of namedtuple fields using `attrs.asdict/astuple()` with `retain_collection_types=True`.
|
||||
[#1165](https://github.com/python-attrs/attrs/issues/1165)
|
||||
- `attrs.AttrsInstance` is now a `typing.Protocol` in both type hints and code.
|
||||
This allows you to subclass it along with another `Protocol`.
|
||||
[#1172](https://github.com/python-attrs/attrs/issues/1172)
|
||||
- If *attrs* detects that `__attrs_pre_init__` accepts more than just `self`, it will call it with the same arguments as `__init__` was called.
|
||||
This allows you to, for example, pass arguments to `super().__init__()`.
|
||||
[#1187](https://github.com/python-attrs/attrs/issues/1187)
|
||||
- Slotted classes now transform `functools.cached_property` decorated methods to support equivalent semantics.
|
||||
[#1200](https://github.com/python-attrs/attrs/issues/1200)
|
||||
- Added *class_body* argument to `attrs.make_class()` to provide additional attributes for newly created classes.
|
||||
It is, for example, now possible to attach methods.
|
||||
[#1203](https://github.com/python-attrs/attrs/issues/1203)
|
||||
|
||||
|
||||
---
|
||||
|
||||
[Full changelog](https://www.attrs.org/en/stable/changelog.html)
|
||||
@ -1,55 +0,0 @@
|
||||
attr/__init__.py,sha256=WlXJN6ICB0Y_HZ0lmuTUgia0kuSdn2p67d4N6cYxNZM,3307
|
||||
attr/__init__.pyi,sha256=u08EujYHy_rSyebNn-I9Xv2S_cXmtA9xWGc0cBsyl18,16976
|
||||
attr/__pycache__/__init__.cpython-310.pyc,,
|
||||
attr/__pycache__/_cmp.cpython-310.pyc,,
|
||||
attr/__pycache__/_compat.cpython-310.pyc,,
|
||||
attr/__pycache__/_config.cpython-310.pyc,,
|
||||
attr/__pycache__/_funcs.cpython-310.pyc,,
|
||||
attr/__pycache__/_make.cpython-310.pyc,,
|
||||
attr/__pycache__/_next_gen.cpython-310.pyc,,
|
||||
attr/__pycache__/_version_info.cpython-310.pyc,,
|
||||
attr/__pycache__/converters.cpython-310.pyc,,
|
||||
attr/__pycache__/exceptions.cpython-310.pyc,,
|
||||
attr/__pycache__/filters.cpython-310.pyc,,
|
||||
attr/__pycache__/setters.cpython-310.pyc,,
|
||||
attr/__pycache__/validators.cpython-310.pyc,,
|
||||
attr/_cmp.py,sha256=OQZlWdFX74z18adGEUp40Ojqm0NNu1Flqnv2JE8B2ng,4025
|
||||
attr/_cmp.pyi,sha256=sGQmOM0w3_K4-X8cTXR7g0Hqr290E8PTObA9JQxWQqc,399
|
||||
attr/_compat.py,sha256=QmRyxii295wcQfaugWqxuIumAPsNQ2-RUF82QZPqMKw,2540
|
||||
attr/_config.py,sha256=z81Vt-GeT_2taxs1XZfmHx9TWlSxjPb6eZH1LTGsS54,843
|
||||
attr/_funcs.py,sha256=VBTUFKLklsmqxys3qWSTK_Ac9Z4s0mAJWwgW9nA7Llk,17173
|
||||
attr/_make.py,sha256=LnVy2e0HygoqaZknhC19z7JmOt7qGkAadf2LZgWVJWI,101923
|
||||
attr/_next_gen.py,sha256=as1voi8siAI_o2OQG8YIiZvmn0G7-S3_j_774rnoZ_g,6203
|
||||
attr/_typing_compat.pyi,sha256=XDP54TUn-ZKhD62TOQebmzrwFyomhUCoGRpclb6alRA,469
|
||||
attr/_version_info.py,sha256=exSqb3b5E-fMSsgZAlEw9XcLpEgobPORCZpcaEglAM4,2121
|
||||
attr/_version_info.pyi,sha256=x_M3L3WuB7r_ULXAWjx959udKQ4HLB8l-hsc1FDGNvk,209
|
||||
attr/converters.py,sha256=Kyw5MY0yfnUR_RwN1Vydf0EiE---htDxOgSc_-NYL6A,3622
|
||||
attr/converters.pyi,sha256=jKlpHBEt6HVKJvgrMFJRrHq8p61GXg4-Nd5RZWKJX7M,406
|
||||
attr/exceptions.py,sha256=HRFq4iybmv7-DcZwyjl6M1euM2YeJVK_hFxuaBGAngI,1977
|
||||
attr/exceptions.pyi,sha256=zZq8bCUnKAy9mDtBEw42ZhPhAUIHoTKedDQInJD883M,539
|
||||
attr/filters.py,sha256=9pYvXqdg6mtLvKIIb56oALRMoHFnQTcGCO4EXTc1qyM,1470
|
||||
attr/filters.pyi,sha256=0mRCjLKxdcvAo0vD-Cr81HfRXXCp9j_cAXjOoAHtPGM,225
|
||||
attr/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
attr/setters.py,sha256=pbCZQ-pE6ZxjDqZfWWUhUFefXtpekIU4qS_YDMLPQ50,1400
|
||||
attr/setters.pyi,sha256=pyY8TVNBu8TWhOldv_RxHzmGvdgFQH981db70r0fn5I,567
|
||||
attr/validators.py,sha256=LGVpbiNg_KGzYrKUD5JPiZkx8TMfynDZGoQoLJNCIMo,19676
|
||||
attr/validators.pyi,sha256=167Dl9nt7NUhE9wht1I-buo039qyUT1nEUT_nKjSWr4,2580
|
||||
attrs-23.2.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
||||
attrs-23.2.0.dist-info/METADATA,sha256=WwvG7OHyKjEPpyFUZCCYt1n0E_CcqdRb7bliGEdcm-A,9531
|
||||
attrs-23.2.0.dist-info/RECORD,,
|
||||
attrs-23.2.0.dist-info/WHEEL,sha256=mRYSEL3Ih6g5a_CVMIcwiF__0Ae4_gLYh01YFNwiq1k,87
|
||||
attrs-23.2.0.dist-info/licenses/LICENSE,sha256=iCEVyV38KvHutnFPjsbVy8q_Znyv-HKfQkINpj9xTp8,1109
|
||||
attrs/__init__.py,sha256=9_5waVbFs7rLqtXZ73tNDrxhezyZ8VZeX4BbvQ3EeJw,1039
|
||||
attrs/__init__.pyi,sha256=s_ajQ_U14DOsOz0JbmAKDOi46B3v2PcdO0UAV1MY6Ek,2168
|
||||
attrs/__pycache__/__init__.cpython-310.pyc,,
|
||||
attrs/__pycache__/converters.cpython-310.pyc,,
|
||||
attrs/__pycache__/exceptions.cpython-310.pyc,,
|
||||
attrs/__pycache__/filters.cpython-310.pyc,,
|
||||
attrs/__pycache__/setters.cpython-310.pyc,,
|
||||
attrs/__pycache__/validators.cpython-310.pyc,,
|
||||
attrs/converters.py,sha256=8kQljrVwfSTRu8INwEk8SI0eGrzmWftsT7rM0EqyohM,76
|
||||
attrs/exceptions.py,sha256=ACCCmg19-vDFaDPY9vFl199SPXCQMN_bENs4DALjzms,76
|
||||
attrs/filters.py,sha256=VOUMZug9uEU6dUuA0dF1jInUK0PL3fLgP0VBS5d-CDE,73
|
||||
attrs/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
attrs/setters.py,sha256=eL1YidYQV3T2h9_SYIZSZR1FAcHGb1TuCTy0E0Lv2SU,73
|
||||
attrs/validators.py,sha256=xcy6wD5TtTkdCG1f4XWbocPSO0faBjk5IfVJfP6SUj0,76
|
||||
@ -1,4 +0,0 @@
|
||||
Wheel-Version: 1.0
|
||||
Generator: hatchling 1.21.0
|
||||
Root-Is-Purelib: true
|
||||
Tag: py3-none-any
|
||||
@ -1,21 +0,0 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015 Hynek Schlawack and the attrs contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/charset_normalizer/cd.cp312-win_amd64.pyd
(Stored with Git LFS)
Normal file
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/charset_normalizer/cd.cp312-win_amd64.pyd
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/charset_normalizer/md.cp310-win_amd64.pyd
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/charset_normalizer/md.cp310-win_amd64.pyd
(Stored with Git LFS)
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/charset_normalizer/md.cp312-win_amd64.pyd
(Stored with Git LFS)
Normal file
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/charset_normalizer/md.cp312-win_amd64.pyd
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/charset_normalizer/md__mypyc.cp310-win_amd64.pyd
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/charset_normalizer/md__mypyc.cp310-win_amd64.pyd
(Stored with Git LFS)
Binary file not shown.
@ -1 +0,0 @@
|
||||
pip
|
||||
@ -1,84 +0,0 @@
|
||||
Metadata-Version: 2.4
|
||||
Name: click
|
||||
Version: 8.3.3
|
||||
Summary: Composable command line interface toolkit
|
||||
Maintainer-email: Pallets <contact@palletsprojects.com>
|
||||
Requires-Python: >=3.10
|
||||
Description-Content-Type: text/markdown
|
||||
License-Expression: BSD-3-Clause
|
||||
Classifier: Development Status :: 5 - Production/Stable
|
||||
Classifier: Intended Audience :: Developers
|
||||
Classifier: Operating System :: OS Independent
|
||||
Classifier: Programming Language :: Python
|
||||
Classifier: Typing :: Typed
|
||||
License-File: LICENSE.txt
|
||||
Requires-Dist: colorama; platform_system == 'Windows'
|
||||
Project-URL: Changes, https://click.palletsprojects.com/page/changes/
|
||||
Project-URL: Chat, https://discord.gg/pallets
|
||||
Project-URL: Documentation, https://click.palletsprojects.com/
|
||||
Project-URL: Donate, https://palletsprojects.com/donate
|
||||
Project-URL: Source, https://github.com/pallets/click/
|
||||
|
||||
<div align="center"><img src="https://raw.githubusercontent.com/pallets/click/refs/heads/stable/docs/_static/click-name.svg" alt="" height="150"></div>
|
||||
|
||||
# Click
|
||||
|
||||
Click is a Python package for creating beautiful command line interfaces
|
||||
in a composable way with as little code as necessary. It's the "Command
|
||||
Line Interface Creation Kit". It's highly configurable but comes with
|
||||
sensible defaults out of the box.
|
||||
|
||||
It aims to make the process of writing command line tools quick and fun
|
||||
while also preventing any frustration caused by the inability to
|
||||
implement an intended CLI API.
|
||||
|
||||
Click in three points:
|
||||
|
||||
- Arbitrary nesting of commands
|
||||
- Automatic help page generation
|
||||
- Supports lazy loading of subcommands at runtime
|
||||
|
||||
|
||||
## A Simple Example
|
||||
|
||||
```python
|
||||
import click
|
||||
|
||||
@click.command()
|
||||
@click.option("--count", default=1, help="Number of greetings.")
|
||||
@click.option("--name", prompt="Your name", help="The person to greet.")
|
||||
def hello(count, name):
|
||||
"""Simple program that greets NAME for a total of COUNT times."""
|
||||
for _ in range(count):
|
||||
click.echo(f"Hello, {name}!")
|
||||
|
||||
if __name__ == '__main__':
|
||||
hello()
|
||||
```
|
||||
|
||||
```
|
||||
$ python hello.py --count=3
|
||||
Your name: Click
|
||||
Hello, Click!
|
||||
Hello, Click!
|
||||
Hello, Click!
|
||||
```
|
||||
|
||||
|
||||
## Donate
|
||||
|
||||
The Pallets organization develops and supports Click and other popular
|
||||
packages. In order to grow the community of contributors and users, and
|
||||
allow the maintainers to devote more time to the projects, [please
|
||||
donate today][].
|
||||
|
||||
[please donate today]: https://palletsprojects.com/donate
|
||||
|
||||
## Contributing
|
||||
|
||||
See our [detailed contributing documentation][contrib] for many ways to
|
||||
contribute, including reporting issues, requesting features, asking or answering
|
||||
questions, and making PRs.
|
||||
|
||||
[contrib]: https://palletsprojects.com/contributing/
|
||||
|
||||
@ -1,40 +0,0 @@
|
||||
click-8.3.3.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
||||
click-8.3.3.dist-info/METADATA,sha256=_sjhT7_ZKYkyseqbWJtQA8eAcV2CeDJdcNrX_92pSCY,2621
|
||||
click-8.3.3.dist-info/RECORD,,
|
||||
click-8.3.3.dist-info/WHEEL,sha256=G2gURzTEtmeR8nrdXUJfNiB3VYVxigPQ-bEQujpNiNs,82
|
||||
click-8.3.3.dist-info/licenses/LICENSE.txt,sha256=morRBqOU6FO_4h9C9OctWSgZoigF2ZG18ydQKSkrZY0,1475
|
||||
click/__init__.py,sha256=tq5olp0lVuUNbwOj0p5nMVdqhOyYz4aZzF8S5T0aFMU,4526
|
||||
click/__pycache__/__init__.cpython-310.pyc,,
|
||||
click/__pycache__/_compat.cpython-310.pyc,,
|
||||
click/__pycache__/_termui_impl.cpython-310.pyc,,
|
||||
click/__pycache__/_textwrap.cpython-310.pyc,,
|
||||
click/__pycache__/_utils.cpython-310.pyc,,
|
||||
click/__pycache__/_winconsole.cpython-310.pyc,,
|
||||
click/__pycache__/core.cpython-310.pyc,,
|
||||
click/__pycache__/decorators.cpython-310.pyc,,
|
||||
click/__pycache__/exceptions.cpython-310.pyc,,
|
||||
click/__pycache__/formatting.cpython-310.pyc,,
|
||||
click/__pycache__/globals.cpython-310.pyc,,
|
||||
click/__pycache__/parser.cpython-310.pyc,,
|
||||
click/__pycache__/shell_completion.cpython-310.pyc,,
|
||||
click/__pycache__/termui.cpython-310.pyc,,
|
||||
click/__pycache__/testing.cpython-310.pyc,,
|
||||
click/__pycache__/types.cpython-310.pyc,,
|
||||
click/__pycache__/utils.cpython-310.pyc,,
|
||||
click/_compat.py,sha256=v3xBZkFbvA1BXPRkFfBJc6-pIwPI7345m-kQEnpVAs4,18693
|
||||
click/_termui_impl.py,sha256=R3aYjPD2x1xgNXiXEqHSR-jAVhbXKkLKeqgr-4eDOkA,28066
|
||||
click/_textwrap.py,sha256=BOae0RQ6vg3FkNgSJyOoGzG1meGMxJ_ukWVZKx_v-0o,1400
|
||||
click/_utils.py,sha256=kZwtTf5gMuCilJJceS2iTCvRvCY-0aN5rJq8gKw7p8g,943
|
||||
click/_winconsole.py,sha256=_vxUuUaxwBhoR0vUWCNuHY8VUefiMdCIyU2SXPqoF-A,8465
|
||||
click/core.py,sha256=wzDpH4Wh45hBfsdw3BHqn_095457WRrb92dyaeIGkHk,134478
|
||||
click/decorators.py,sha256=5P7abhJtAQYp_KHgjUvhMv464ERwOzrv2enNknlwHyQ,18461
|
||||
click/exceptions.py,sha256=8utf8w6V5hJXMnO_ic1FNrtbwuEn1NUu1aDwV8UqnG4,9954
|
||||
click/formatting.py,sha256=RVfwwr0rwWNpgGr8NaHodPzkIr7_tUyVh_nDdanLMNc,9730
|
||||
click/globals.py,sha256=gM-Nh6A4M0HB_SgkaF5M4ncGGMDHc_flHXu9_oh4GEU,1923
|
||||
click/parser.py,sha256=Q31pH0FlQZEq-UXE_ABRzlygEfvxPTuZbWNh4xfXmzw,19010
|
||||
click/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
click/shell_completion.py,sha256=Cc4GQUFuWpfQBa9sF5qXeeYI7n3tI_1k6ZdSn4BZbT0,20994
|
||||
click/termui.py,sha256=0xjUaEZJz1_1y8eqon2kOe2OXrmHzZCJoVohFb43yTs,31434
|
||||
click/testing.py,sha256=PYLYW4ZjCAP6HRWtNhFpr3imJxQVEPFq3EW3JL0LTfA,22714
|
||||
click/types.py,sha256=ek54BNSFwPKsqtfT7jsqcc4WHui8AIFVMKM4oVZIXhc,39927
|
||||
click/utils.py,sha256=vep6qqMkv3WkzA9OCu7f6Ku-3beZHNpo8qJqL-uzUk8,20282
|
||||
@ -1,4 +0,0 @@
|
||||
Wheel-Version: 1.0
|
||||
Generator: flit 3.12.0
|
||||
Root-Is-Purelib: true
|
||||
Tag: py3-none-any
|
||||
@ -1,28 +0,0 @@
|
||||
Copyright 2014 Pallets
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are
|
||||
met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
3. Neither the name of the copyright holder nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
|
||||
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
|
||||
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/clr_loader/ffi/dlls/amd64/ClrLoader.dll
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/clr_loader/ffi/dlls/amd64/ClrLoader.dll
(Stored with Git LFS)
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/clr_loader/ffi/dlls/x86/ClrLoader.dll
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/clr_loader/ffi/dlls/x86/ClrLoader.dll
(Stored with Git LFS)
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/concrt140.dll
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/concrt140.dll
(Stored with Git LFS)
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/coverage/tracer.cp310-win_amd64.pyd
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/coverage/tracer.cp310-win_amd64.pyd
(Stored with Git LFS)
Binary file not shown.
@ -1 +0,0 @@
|
||||
pip
|
||||
@ -1,139 +0,0 @@
|
||||
Metadata-Version: 2.4
|
||||
Name: cryptography
|
||||
Version: 46.0.3
|
||||
Classifier: Development Status :: 5 - Production/Stable
|
||||
Classifier: Intended Audience :: Developers
|
||||
Classifier: Natural Language :: English
|
||||
Classifier: Operating System :: MacOS :: MacOS X
|
||||
Classifier: Operating System :: POSIX
|
||||
Classifier: Operating System :: POSIX :: BSD
|
||||
Classifier: Operating System :: POSIX :: Linux
|
||||
Classifier: Operating System :: Microsoft :: Windows
|
||||
Classifier: Programming Language :: Python
|
||||
Classifier: Programming Language :: Python :: 3
|
||||
Classifier: Programming Language :: Python :: 3 :: Only
|
||||
Classifier: Programming Language :: Python :: 3.8
|
||||
Classifier: Programming Language :: Python :: 3.9
|
||||
Classifier: Programming Language :: Python :: 3.10
|
||||
Classifier: Programming Language :: Python :: 3.11
|
||||
Classifier: Programming Language :: Python :: 3.12
|
||||
Classifier: Programming Language :: Python :: 3.13
|
||||
Classifier: Programming Language :: Python :: 3.14
|
||||
Classifier: Programming Language :: Python :: Implementation :: CPython
|
||||
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
||||
Classifier: Programming Language :: Python :: Free Threading :: 3 - Stable
|
||||
Classifier: Topic :: Security :: Cryptography
|
||||
Requires-Dist: cffi>=1.14 ; python_full_version == '3.8.*' and platform_python_implementation != 'PyPy'
|
||||
Requires-Dist: cffi>=2.0.0 ; python_full_version >= '3.9' and platform_python_implementation != 'PyPy'
|
||||
Requires-Dist: typing-extensions>=4.13.2 ; python_full_version < '3.11'
|
||||
Requires-Dist: bcrypt>=3.1.5 ; extra == 'ssh'
|
||||
Requires-Dist: nox[uv]>=2024.4.15 ; extra == 'nox'
|
||||
Requires-Dist: cryptography-vectors==46.0.3 ; extra == 'test'
|
||||
Requires-Dist: pytest>=7.4.0 ; extra == 'test'
|
||||
Requires-Dist: pytest-benchmark>=4.0 ; extra == 'test'
|
||||
Requires-Dist: pytest-cov>=2.10.1 ; extra == 'test'
|
||||
Requires-Dist: pytest-xdist>=3.5.0 ; extra == 'test'
|
||||
Requires-Dist: pretend>=0.7 ; extra == 'test'
|
||||
Requires-Dist: certifi>=2024 ; extra == 'test'
|
||||
Requires-Dist: pytest-randomly ; extra == 'test-randomorder'
|
||||
Requires-Dist: sphinx>=5.3.0 ; extra == 'docs'
|
||||
Requires-Dist: sphinx-rtd-theme>=3.0.0 ; extra == 'docs'
|
||||
Requires-Dist: sphinx-inline-tabs ; extra == 'docs'
|
||||
Requires-Dist: pyenchant>=3 ; extra == 'docstest'
|
||||
Requires-Dist: readme-renderer>=30.0 ; extra == 'docstest'
|
||||
Requires-Dist: sphinxcontrib-spelling>=7.3.1 ; extra == 'docstest'
|
||||
Requires-Dist: build>=1.0.0 ; extra == 'sdist'
|
||||
Requires-Dist: ruff>=0.11.11 ; extra == 'pep8test'
|
||||
Requires-Dist: mypy>=1.14 ; extra == 'pep8test'
|
||||
Requires-Dist: check-sdist ; extra == 'pep8test'
|
||||
Requires-Dist: click>=8.0.1 ; extra == 'pep8test'
|
||||
Provides-Extra: ssh
|
||||
Provides-Extra: nox
|
||||
Provides-Extra: test
|
||||
Provides-Extra: test-randomorder
|
||||
Provides-Extra: docs
|
||||
Provides-Extra: docstest
|
||||
Provides-Extra: sdist
|
||||
Provides-Extra: pep8test
|
||||
License-File: LICENSE
|
||||
License-File: LICENSE.APACHE
|
||||
License-File: LICENSE.BSD
|
||||
Summary: cryptography is a package which provides cryptographic recipes and primitives to Python developers.
|
||||
Author-email: The Python Cryptographic Authority and individual contributors <cryptography-dev@python.org>
|
||||
License-Expression: Apache-2.0 OR BSD-3-Clause
|
||||
Requires-Python: >=3.8, !=3.9.0, !=3.9.1
|
||||
Description-Content-Type: text/x-rst; charset=UTF-8
|
||||
Project-URL: homepage, https://github.com/pyca/cryptography
|
||||
Project-URL: documentation, https://cryptography.io/
|
||||
Project-URL: source, https://github.com/pyca/cryptography/
|
||||
Project-URL: issues, https://github.com/pyca/cryptography/issues
|
||||
Project-URL: changelog, https://cryptography.io/en/latest/changelog/
|
||||
|
||||
pyca/cryptography
|
||||
=================
|
||||
|
||||
.. image:: https://img.shields.io/pypi/v/cryptography.svg
|
||||
:target: https://pypi.org/project/cryptography/
|
||||
:alt: Latest Version
|
||||
|
||||
.. image:: https://readthedocs.org/projects/cryptography/badge/?version=latest
|
||||
:target: https://cryptography.io
|
||||
:alt: Latest Docs
|
||||
|
||||
.. image:: https://github.com/pyca/cryptography/actions/workflows/ci.yml/badge.svg
|
||||
:target: https://github.com/pyca/cryptography/actions/workflows/ci.yml?query=branch%3Amain
|
||||
|
||||
``cryptography`` is a package which provides cryptographic recipes and
|
||||
primitives to Python developers. Our goal is for it to be your "cryptographic
|
||||
standard library". It supports Python 3.8+ and PyPy3 7.3.11+.
|
||||
|
||||
``cryptography`` includes both high level recipes and low level interfaces to
|
||||
common cryptographic algorithms such as symmetric ciphers, message digests, and
|
||||
key derivation functions. For example, to encrypt something with
|
||||
``cryptography``'s high level symmetric encryption recipe:
|
||||
|
||||
.. code-block:: pycon
|
||||
|
||||
>>> from cryptography.fernet import Fernet
|
||||
>>> # Put this somewhere safe!
|
||||
>>> key = Fernet.generate_key()
|
||||
>>> f = Fernet(key)
|
||||
>>> token = f.encrypt(b"A really secret message. Not for prying eyes.")
|
||||
>>> token
|
||||
b'...'
|
||||
>>> f.decrypt(token)
|
||||
b'A really secret message. Not for prying eyes.'
|
||||
|
||||
You can find more information in the `documentation`_.
|
||||
|
||||
You can install ``cryptography`` with:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
$ pip install cryptography
|
||||
|
||||
For full details see `the installation documentation`_.
|
||||
|
||||
Discussion
|
||||
~~~~~~~~~~
|
||||
|
||||
If you run into bugs, you can file them in our `issue tracker`_.
|
||||
|
||||
We maintain a `cryptography-dev`_ mailing list for development discussion.
|
||||
|
||||
You can also join ``#pyca`` on ``irc.libera.chat`` to ask questions or get
|
||||
involved.
|
||||
|
||||
Security
|
||||
~~~~~~~~
|
||||
|
||||
Need to report a security issue? Please consult our `security reporting`_
|
||||
documentation.
|
||||
|
||||
|
||||
.. _`documentation`: https://cryptography.io/
|
||||
.. _`the installation documentation`: https://cryptography.io/en/latest/installation/
|
||||
.. _`issue tracker`: https://github.com/pyca/cryptography/issues
|
||||
.. _`cryptography-dev`: https://mail.python.org/mailman/listinfo/cryptography-dev
|
||||
.. _`security reporting`: https://cryptography.io/en/latest/security/
|
||||
|
||||
@ -1,180 +0,0 @@
|
||||
cryptography-46.0.3.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
||||
cryptography-46.0.3.dist-info/METADATA,sha256=bx2LyCEmOVUC8FH5hsGEZewWPiZoIIYTq0hM9mu9r4s,5748
|
||||
cryptography-46.0.3.dist-info/RECORD,,
|
||||
cryptography-46.0.3.dist-info/WHEEL,sha256=7bfl5v0wbVhXZba613g0x-n2obNNfpQuN8I1cQ4oaU8,94
|
||||
cryptography-46.0.3.dist-info/licenses/LICENSE,sha256=Pgx8CRqUi4JTO6mP18u0BDLW8amsv4X1ki0vmak65rs,197
|
||||
cryptography-46.0.3.dist-info/licenses/LICENSE.APACHE,sha256=qsc7MUj20dcRHbyjIJn2jSbGRMaBOuHk8F9leaomY_4,11360
|
||||
cryptography-46.0.3.dist-info/licenses/LICENSE.BSD,sha256=YCxMdILeZHndLpeTzaJ15eY9dz2s0eymiSMqtwCPtPs,1532
|
||||
cryptography/__about__.py,sha256=QCLxNH_Abbygdc9RQGpUmrK14Wp3Cl_SEiB2byLwyxo,445
|
||||
cryptography/__init__.py,sha256=mthuUrTd4FROCpUYrTIqhjz6s6T9djAZrV7nZ1oMm2o,364
|
||||
cryptography/__pycache__/__about__.cpython-310.pyc,,
|
||||
cryptography/__pycache__/__init__.cpython-310.pyc,,
|
||||
cryptography/__pycache__/exceptions.cpython-310.pyc,,
|
||||
cryptography/__pycache__/fernet.cpython-310.pyc,,
|
||||
cryptography/__pycache__/utils.cpython-310.pyc,,
|
||||
cryptography/exceptions.py,sha256=835EWILc2fwxw-gyFMriciC2SqhViETB10LBSytnDIc,1087
|
||||
cryptography/fernet.py,sha256=3Cvxkh0KJSbX8HbnCHu4wfCW7U0GgfUA3v_qQ8a8iWc,6963
|
||||
cryptography/hazmat/__init__.py,sha256=5IwrLWrVp0AjEr_4FdWG_V057NSJGY_W4egNNsuct0g,455
|
||||
cryptography/hazmat/__pycache__/__init__.cpython-310.pyc,,
|
||||
cryptography/hazmat/__pycache__/_oid.cpython-310.pyc,,
|
||||
cryptography/hazmat/_oid.py,sha256=p8ThjwJB56Ci_rAIrjyJ1f8VjgD6e39es2dh8JIUBOw,17240
|
||||
cryptography/hazmat/asn1/__init__.py,sha256=hS_EWx3wVvZzfbCcNV8hzcDnyMM8H-BhIoS1TipUosk,293
|
||||
cryptography/hazmat/asn1/__pycache__/__init__.cpython-310.pyc,,
|
||||
cryptography/hazmat/asn1/__pycache__/asn1.cpython-310.pyc,,
|
||||
cryptography/hazmat/asn1/asn1.py,sha256=eMEThEXa19LQjcyVofgHsW6tsZnjp3ddH7bWkkcxfLM,3860
|
||||
cryptography/hazmat/backends/__init__.py,sha256=O5jvKFQdZnXhKeqJ-HtulaEL9Ni7mr1mDzZY5kHlYhI,361
|
||||
cryptography/hazmat/backends/__pycache__/__init__.cpython-310.pyc,,
|
||||
cryptography/hazmat/backends/openssl/__init__.py,sha256=p3jmJfnCag9iE5sdMrN6VvVEu55u46xaS_IjoI0SrmA,305
|
||||
cryptography/hazmat/backends/openssl/__pycache__/__init__.cpython-310.pyc,,
|
||||
cryptography/hazmat/backends/openssl/__pycache__/backend.cpython-310.pyc,,
|
||||
cryptography/hazmat/backends/openssl/backend.py,sha256=tV5AxBoFJ2GfA0DMWSY-0TxQJrpQoexzI9R4Kybb--4,10215
|
||||
cryptography/hazmat/bindings/__init__.py,sha256=s9oKCQ2ycFdXoERdS1imafueSkBsL9kvbyfghaauZ9Y,180
|
||||
cryptography/hazmat/bindings/__pycache__/__init__.cpython-310.pyc,,
|
||||
cryptography/hazmat/bindings/_rust.pyd,sha256=pvK3vPB-YiNJDdF92DkeFIdSvhVn6grtpYDRdjDXJ50,9182720
|
||||
cryptography/hazmat/bindings/_rust/__init__.pyi,sha256=KhqLhXFPArPzzJ7DYO9Fl8FoXB_BagAd_r4Dm_Ze9Xo,1257
|
||||
cryptography/hazmat/bindings/_rust/_openssl.pyi,sha256=mpNJLuYLbCVrd5i33FBTmWwL_55Dw7JPkSLlSX9Q7oI,230
|
||||
cryptography/hazmat/bindings/_rust/asn1.pyi,sha256=BrGjC8J6nwuS-r3EVcdXJB8ndotfY9mbQYOfpbPG0HA,354
|
||||
cryptography/hazmat/bindings/_rust/declarative_asn1.pyi,sha256=2ECFmYue1EPkHEE2Bm7aLwkjB0mSUTpr23v9MN4pri4,892
|
||||
cryptography/hazmat/bindings/_rust/exceptions.pyi,sha256=exXr2xw_0pB1kk93cYbM3MohbzoUkjOms1ZMUi0uQZE,640
|
||||
cryptography/hazmat/bindings/_rust/ocsp.pyi,sha256=VPVWuKHI9EMs09ZLRYAGvR0Iz0mCMmEzXAkgJHovpoM,4020
|
||||
cryptography/hazmat/bindings/_rust/openssl/__init__.pyi,sha256=iOAMDyHoNwwCSZfZzuXDr64g4GpGUeDgEN-LjXqdrBM,1522
|
||||
cryptography/hazmat/bindings/_rust/openssl/aead.pyi,sha256=4Nddw6-ynzIB3w2W86WvkGKTLlTDk_6F5l54RHCuy3E,2688
|
||||
cryptography/hazmat/bindings/_rust/openssl/ciphers.pyi,sha256=LhPzHWSXJq4grAJXn6zSvSSdV-aYIIscHDwIPlJGGPs,1315
|
||||
cryptography/hazmat/bindings/_rust/openssl/cmac.pyi,sha256=nPH0X57RYpsAkRowVpjQiHE566ThUTx7YXrsadmrmHk,564
|
||||
cryptography/hazmat/bindings/_rust/openssl/dh.pyi,sha256=Z3TC-G04-THtSdAOPLM1h2G7ml5bda1ElZUcn5wpuhk,1564
|
||||
cryptography/hazmat/bindings/_rust/openssl/dsa.pyi,sha256=qBtkgj2albt2qFcnZ9UDrhzoNhCVO7HTby5VSf1EXMI,1299
|
||||
cryptography/hazmat/bindings/_rust/openssl/ec.pyi,sha256=zJy0pRa5n-_p2dm45PxECB_-B6SVZyNKfjxFDpPqT38,1691
|
||||
cryptography/hazmat/bindings/_rust/openssl/ed25519.pyi,sha256=VXfXd5G6hUivg399R1DYdmW3eTb0EebzDTqjRC2gaRw,532
|
||||
cryptography/hazmat/bindings/_rust/openssl/ed448.pyi,sha256=Yx49lqdnjsD7bxiDV1kcaMrDktug5evi5a6zerMiy2s,514
|
||||
cryptography/hazmat/bindings/_rust/openssl/hashes.pyi,sha256=OWZvBx7xfo_HJl41Nc--DugVyCVPIprZ3HlOPTSWH9g,984
|
||||
cryptography/hazmat/bindings/_rust/openssl/hmac.pyi,sha256=BXZn7NDjL3JAbYW0SQ8pg1iyC5DbQXVhUAiwsi8DFR8,702
|
||||
cryptography/hazmat/bindings/_rust/openssl/kdf.pyi,sha256=xXfFBb9QehHfDtEaxV_65Z0YK7NquOVIChpTLkgAs_k,2029
|
||||
cryptography/hazmat/bindings/_rust/openssl/keys.pyi,sha256=teIt8M6ZEMJrn4s3W0UnW0DZ-30Jd68WnSsKKG124l0,912
|
||||
cryptography/hazmat/bindings/_rust/openssl/poly1305.pyi,sha256=_SW9NtQ5FDlAbdclFtWpT4lGmxKIKHpN-4j8J2BzYfQ,585
|
||||
cryptography/hazmat/bindings/_rust/openssl/rsa.pyi,sha256=2OQCNSXkxgc-3uw1xiCCloIQTV6p9_kK79Yu0rhZgPc,1364
|
||||
cryptography/hazmat/bindings/_rust/openssl/x25519.pyi,sha256=ewn4GpQyb7zPwE-ni7GtyQgMC0A1mLuqYsSyqv6nI_s,523
|
||||
cryptography/hazmat/bindings/_rust/openssl/x448.pyi,sha256=juTZTmli8jO_5Vcufg-vHvx_tCyezmSLIh_9PU3TczI,505
|
||||
cryptography/hazmat/bindings/_rust/pkcs12.pyi,sha256=vEEd5wDiZvb8ZGFaziLCaWLzAwoG_tvPUxLQw5_uOl8,1605
|
||||
cryptography/hazmat/bindings/_rust/pkcs7.pyi,sha256=txGBJijqZshEcqra6byPNbnisIdlxzOSIHP2hl9arPs,1601
|
||||
cryptography/hazmat/bindings/_rust/test_support.pyi,sha256=PPhld-WkO743iXFPebeG0LtgK0aTzGdjcIsay1Gm5GE,757
|
||||
cryptography/hazmat/bindings/_rust/x509.pyi,sha256=n9X0IQ6ICbdIi-ExdCFZoBgeY6njm3QOVAVZwDQdnbk,9784
|
||||
cryptography/hazmat/bindings/openssl/__init__.py,sha256=s9oKCQ2ycFdXoERdS1imafueSkBsL9kvbyfghaauZ9Y,180
|
||||
cryptography/hazmat/bindings/openssl/__pycache__/__init__.cpython-310.pyc,,
|
||||
cryptography/hazmat/bindings/openssl/__pycache__/_conditional.cpython-310.pyc,,
|
||||
cryptography/hazmat/bindings/openssl/__pycache__/binding.cpython-310.pyc,,
|
||||
cryptography/hazmat/bindings/openssl/_conditional.py,sha256=DMOpA_XN4l70zTc5_J9DpwlbQeUBRTWpfIJ4yRIn1-U,5791
|
||||
cryptography/hazmat/bindings/openssl/binding.py,sha256=x8eocEmukO4cm7cHqfVmOoYY7CCXdoF1v1WhZQt9neo,4610
|
||||
cryptography/hazmat/decrepit/__init__.py,sha256=wHCbWfaefa-fk6THSw9th9fJUsStJo7245wfFBqmduA,216
|
||||
cryptography/hazmat/decrepit/__pycache__/__init__.cpython-310.pyc,,
|
||||
cryptography/hazmat/decrepit/ciphers/__init__.py,sha256=wHCbWfaefa-fk6THSw9th9fJUsStJo7245wfFBqmduA,216
|
||||
cryptography/hazmat/decrepit/ciphers/__pycache__/__init__.cpython-310.pyc,,
|
||||
cryptography/hazmat/decrepit/ciphers/__pycache__/algorithms.cpython-310.pyc,,
|
||||
cryptography/hazmat/decrepit/ciphers/algorithms.py,sha256=YrKgHS4MfwWaMmPBYRymRRlC0phwWp9ycICFezeJPGk,2595
|
||||
cryptography/hazmat/primitives/__init__.py,sha256=s9oKCQ2ycFdXoERdS1imafueSkBsL9kvbyfghaauZ9Y,180
|
||||
cryptography/hazmat/primitives/__pycache__/__init__.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/__pycache__/_asymmetric.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/__pycache__/_cipheralgorithm.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/__pycache__/_serialization.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/__pycache__/cmac.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/__pycache__/constant_time.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/__pycache__/hashes.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/__pycache__/hmac.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/__pycache__/keywrap.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/__pycache__/padding.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/__pycache__/poly1305.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/_asymmetric.py,sha256=RhgcouUB6HTiFDBrR1LxqkMjpUxIiNvQ1r_zJjRG6qQ,532
|
||||
cryptography/hazmat/primitives/_cipheralgorithm.py,sha256=Eh3i7lwedHfi0eLSsH93PZxQKzY9I6lkK67vL4V5tOc,1522
|
||||
cryptography/hazmat/primitives/_serialization.py,sha256=chgPCSF2jxI2Cr5gB-qbWXOvOfupBh4CARS0KAhv9AM,5123
|
||||
cryptography/hazmat/primitives/asymmetric/__init__.py,sha256=s9oKCQ2ycFdXoERdS1imafueSkBsL9kvbyfghaauZ9Y,180
|
||||
cryptography/hazmat/primitives/asymmetric/__pycache__/__init__.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/asymmetric/__pycache__/dh.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/asymmetric/__pycache__/dsa.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/asymmetric/__pycache__/ec.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/asymmetric/__pycache__/ed25519.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/asymmetric/__pycache__/ed448.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/asymmetric/__pycache__/padding.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/asymmetric/__pycache__/rsa.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/asymmetric/__pycache__/types.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/asymmetric/__pycache__/utils.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/asymmetric/__pycache__/x25519.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/asymmetric/__pycache__/x448.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/asymmetric/dh.py,sha256=0v_vEFFz5pQ1QG-FkWDyvgv7IfuVZSH5Q6LyFI5A8rg,3645
|
||||
cryptography/hazmat/primitives/asymmetric/dsa.py,sha256=Ld_bbbqQFz12dObHxIkzEQzX0SWWP41RLSWkYSaKhqE,4213
|
||||
cryptography/hazmat/primitives/asymmetric/ec.py,sha256=Vf5ig2PcS3PVnsb5N49Kx1uIkFBJyhg4BWXThDz5cug,12999
|
||||
cryptography/hazmat/primitives/asymmetric/ed25519.py,sha256=jZW5cs472wXXV3eB0sE1b8w64gdazwwU0_MT5UOTiXs,3700
|
||||
cryptography/hazmat/primitives/asymmetric/ed448.py,sha256=yAetgn2f2JYf0BO8MapGzXeThsvSMG5LmUCrxVOidAA,3729
|
||||
cryptography/hazmat/primitives/asymmetric/padding.py,sha256=vQ6l6gOg9HqcbOsvHrSiJRVLdEj9L4m4HkRGYziTyFA,2854
|
||||
cryptography/hazmat/primitives/asymmetric/rsa.py,sha256=ZnKOo2f34MCCOupC03Y1uR-_jiSG5IrelHEmxaME3D4,8303
|
||||
cryptography/hazmat/primitives/asymmetric/types.py,sha256=LnsOJym-wmPUJ7Knu_7bCNU3kIiELCd6krOaW_JU08I,2996
|
||||
cryptography/hazmat/primitives/asymmetric/utils.py,sha256=DPTs6T4F-UhwzFQTh-1fSEpQzazH2jf2xpIro3ItF4o,790
|
||||
cryptography/hazmat/primitives/asymmetric/x25519.py,sha256=_4nQeZ3yJ3Lg0RpXnaqA-1yt6vbx1F-wzLcaZHwSpeE,3613
|
||||
cryptography/hazmat/primitives/asymmetric/x448.py,sha256=WKBLtuVfJqiBRro654fGaQAlvsKbqbNkK7c4A_ZCdV0,3642
|
||||
cryptography/hazmat/primitives/ciphers/__init__.py,sha256=eyEXmjk6_CZXaOPYDr7vAYGXr29QvzgWL2-4CSolLFs,680
|
||||
cryptography/hazmat/primitives/ciphers/__pycache__/__init__.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/ciphers/__pycache__/aead.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/ciphers/__pycache__/algorithms.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/ciphers/__pycache__/base.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/ciphers/__pycache__/modes.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/ciphers/aead.py,sha256=Fzlyx7w8KYQakzDp1zWgJnIr62zgZrgVh1u2h4exB54,634
|
||||
cryptography/hazmat/primitives/ciphers/algorithms.py,sha256=Q7ZJwcsx83Mgxv5y7r6CyJKSdsOwC-my-5A67-ma2vw,3407
|
||||
cryptography/hazmat/primitives/ciphers/base.py,sha256=aBC7HHBBoixebmparVr0UlODs3VD0A7B6oz_AaRjDv8,4253
|
||||
cryptography/hazmat/primitives/ciphers/modes.py,sha256=20stpwhDtbAvpH0SMf9EDHIciwmTF-JMBUOZ9bU8WiQ,8318
|
||||
cryptography/hazmat/primitives/cmac.py,sha256=sz_s6H_cYnOvx-VNWdIKhRhe3Ymp8z8J0D3CBqOX3gg,338
|
||||
cryptography/hazmat/primitives/constant_time.py,sha256=xdunWT0nf8OvKdcqUhhlFKayGp4_PgVJRU2W1wLSr_A,422
|
||||
cryptography/hazmat/primitives/hashes.py,sha256=M8BrlKB3U6DEtHvWTV5VRjpteHv1kS3Zxm_Bsk04cr8,5184
|
||||
cryptography/hazmat/primitives/hmac.py,sha256=RpB3z9z5skirCQrm7zQbtnp9pLMnAjrlTUvKqF5aDDc,423
|
||||
cryptography/hazmat/primitives/kdf/__init__.py,sha256=4XibZnrYq4hh5xBjWiIXzaYW6FKx8hPbVaa_cB9zS64,750
|
||||
cryptography/hazmat/primitives/kdf/__pycache__/__init__.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/kdf/__pycache__/argon2.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/kdf/__pycache__/concatkdf.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/kdf/__pycache__/hkdf.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/kdf/__pycache__/kbkdf.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/kdf/__pycache__/pbkdf2.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/kdf/__pycache__/scrypt.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/kdf/__pycache__/x963kdf.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/kdf/argon2.py,sha256=UFDNXG0v-rw3DqAQTB1UQAsQC2M5Ejg0k_6OCyhLKus,460
|
||||
cryptography/hazmat/primitives/kdf/concatkdf.py,sha256=Ua8KoLXXnzgsrAUmHpyKymaPt8aPRP0EHEaBz7QCQ9I,3737
|
||||
cryptography/hazmat/primitives/kdf/hkdf.py,sha256=M0lAEfRoc4kpp4-nwDj9yB-vNZukIOYEQrUlWsBNn9o,543
|
||||
cryptography/hazmat/primitives/kdf/kbkdf.py,sha256=oZepvo4evhKkkJQWRDwaPoIbyTaFmDc5NPimxg6lfKg,9165
|
||||
cryptography/hazmat/primitives/kdf/pbkdf2.py,sha256=1WIwhELR0w8ztTpTu8BrFiYWmK3hUfJq08I79TxwieE,1957
|
||||
cryptography/hazmat/primitives/kdf/scrypt.py,sha256=XyWUdUUmhuI9V6TqAPOvujCSMGv1XQdg0a21IWCmO-U,590
|
||||
cryptography/hazmat/primitives/kdf/x963kdf.py,sha256=zLTcF665QFvXX2f8TS7fmBZTteXpFjKahzfjjQcCJyw,1999
|
||||
cryptography/hazmat/primitives/keywrap.py,sha256=XV4Pj2fqSeD-RqZVvY2cA3j5_7RwJSFygYuLfk2ujCo,5650
|
||||
cryptography/hazmat/primitives/padding.py,sha256=QT-U-NvV2eQGO1wVPbDiNGNSc9keRDS-ig5cQOrLz0E,1865
|
||||
cryptography/hazmat/primitives/poly1305.py,sha256=P5EPQV-RB_FJPahpg01u0Ts4S_PnAmsroxIGXbGeRRo,355
|
||||
cryptography/hazmat/primitives/serialization/__init__.py,sha256=Q7uTgDlt7n3WfsMT6jYwutC6DIg_7SEeoAm1GHZ5B5E,1705
|
||||
cryptography/hazmat/primitives/serialization/__pycache__/__init__.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/serialization/__pycache__/base.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/serialization/__pycache__/pkcs12.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/serialization/__pycache__/pkcs7.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/serialization/__pycache__/ssh.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/serialization/base.py,sha256=ikq5MJIwp_oUnjiaBco_PmQwOTYuGi-XkYUYHKy8Vo0,615
|
||||
cryptography/hazmat/primitives/serialization/pkcs12.py,sha256=mS9cFNG4afzvseoc5e1MWoY2VskfL8N8Y_OFjl67luY,5104
|
||||
cryptography/hazmat/primitives/serialization/pkcs7.py,sha256=5OR_Tkysxaprn4FegvJIfbep9rJ9wok6FLWvWwQ5-Mg,13943
|
||||
cryptography/hazmat/primitives/serialization/ssh.py,sha256=hPV5obFznz0QhFfXFPOeQ8y6MsurA0xVMQiLnLESEs8,53700
|
||||
cryptography/hazmat/primitives/twofactor/__init__.py,sha256=tmMZGB-g4IU1r7lIFqASU019zr0uPp_wEBYcwdDCKCA,258
|
||||
cryptography/hazmat/primitives/twofactor/__pycache__/__init__.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/twofactor/__pycache__/hotp.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/twofactor/__pycache__/totp.cpython-310.pyc,,
|
||||
cryptography/hazmat/primitives/twofactor/hotp.py,sha256=ivZo5BrcCGWLsqql4nZV0XXCjyGPi_iHfDFltGlOJwk,3256
|
||||
cryptography/hazmat/primitives/twofactor/totp.py,sha256=m5LPpRL00kp4zY8gTjr55Hfz9aMlPS53kHmVkSQCmdY,1652
|
||||
cryptography/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
cryptography/utils.py,sha256=bZAjFC5KVpfmF29qS_18vvpW3mKxmdiRALcusHhTTkg,4301
|
||||
cryptography/x509/__init__.py,sha256=xloN0swseNx-m2WFZmCA17gOoxQWqeU82UVjEdJBePQ,8257
|
||||
cryptography/x509/__pycache__/__init__.cpython-310.pyc,,
|
||||
cryptography/x509/__pycache__/base.cpython-310.pyc,,
|
||||
cryptography/x509/__pycache__/certificate_transparency.cpython-310.pyc,,
|
||||
cryptography/x509/__pycache__/extensions.cpython-310.pyc,,
|
||||
cryptography/x509/__pycache__/general_name.cpython-310.pyc,,
|
||||
cryptography/x509/__pycache__/name.cpython-310.pyc,,
|
||||
cryptography/x509/__pycache__/ocsp.cpython-310.pyc,,
|
||||
cryptography/x509/__pycache__/oid.cpython-310.pyc,,
|
||||
cryptography/x509/__pycache__/verification.cpython-310.pyc,,
|
||||
cryptography/x509/base.py,sha256=OrmTw3y8B6AE_nGXQPN8x9kq-d7rDWeH13gCq6T6D6U,27997
|
||||
cryptography/x509/certificate_transparency.py,sha256=JqoOIDhlwInrYMFW6IFn77WJ0viF-PB_rlZV3vs9MYc,797
|
||||
cryptography/x509/extensions.py,sha256=QxYrqR6SF1qzR9ZraP8wDiIczlEVlAFuwDRVcltB6Tk,77724
|
||||
cryptography/x509/general_name.py,sha256=sP_rV11Qlpsk4x3XXGJY_Mv0Q_s9dtjeLckHsjpLQoQ,7836
|
||||
cryptography/x509/name.py,sha256=ty0_xf0LnHwZAdEf-d8FLO1K4hGqx_7DsD3CHwoLJiY,15101
|
||||
cryptography/x509/ocsp.py,sha256=Yey6NdFV1MPjop24Mj_VenjEpg3kUaMopSWOK0AbeBs,12699
|
||||
cryptography/x509/oid.py,sha256=BUzgXXGVWilkBkdKPTm9R4qElE9gAGHgdYPMZAp7PJo,931
|
||||
cryptography/x509/verification.py,sha256=gR2C2c-XZQtblZhT5T5vjSKOtCb74ef2alPVmEcwFlM,958
|
||||
@ -1,4 +0,0 @@
|
||||
Wheel-Version: 1.0
|
||||
Generator: maturin (1.9.4)
|
||||
Root-Is-Purelib: false
|
||||
Tag: cp38-abi3-win_amd64
|
||||
@ -1,3 +0,0 @@
|
||||
This software is made available under the terms of *either* of the licenses
|
||||
found in LICENSE.APACHE or LICENSE.BSD. Contributions to cryptography are made
|
||||
under the terms of *both* these licenses.
|
||||
@ -1,202 +0,0 @@
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
https://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
https://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
@ -1,27 +0,0 @@
|
||||
Copyright (c) Individual contributors.
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice,
|
||||
this list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
3. Neither the name of PyCA Cryptography nor the names of its contributors
|
||||
may be used to endorse or promote products derived from this software
|
||||
without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
||||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/cryptography/hazmat/bindings/_rust.pyd
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/cryptography/hazmat/bindings/_rust.pyd
(Stored with Git LFS)
Binary file not shown.
@ -1,28 +1,29 @@
|
||||
{
|
||||
"schemaVersion": "cw-camera-worker-build-identity-v1",
|
||||
"workerVersion": "0.1.2",
|
||||
"createdUtc": "2026-08-02T21:19:54.902869+00:00",
|
||||
"python": "3.10.11",
|
||||
"workerVersion": "0.1.3",
|
||||
"createdUtc": "2026-08-08T15:42:34.493408+00:00",
|
||||
"python": "3.12.13",
|
||||
"sourceRootRelative": "cwai_sources/repository",
|
||||
"sourceSha256": {
|
||||
"MachineLearning/CameraDirector/adjacent_transition.py": "6c1b62c2996960af23d62e9c3acd3114600effda03273b006f7076c467c4bdfa",
|
||||
"MachineLearning/CameraDirector/build_hybrid_preparation_cache.py": "164a3574d5fad05a627bf6d0c6169d42039043bf9a2cd62effbd978359e828f2",
|
||||
"MachineLearning/CameraDirector/camera_kinematics.py": "c7b85616ef44a0f28f11702459d67d78aad7cf26ed00c2548ecb78b06fc27025",
|
||||
"MachineLearning/CameraDirector/camera_runtime_data.py": "f787b84257aef4a71905198ab2601673fbe639ca5c37e3a957de12116dceab34",
|
||||
"MachineLearning/CameraDirector/cw_camera_runtime.py": "c2dff5cf41b8b487272d20e3847b556537f597b185a0f4b0d85ca577b4a51709",
|
||||
"MachineLearning/CameraDirector/camera_runtime_data.py": "29fd30a1c97d384f7bb22d024a4f88178f6245858925c302b059a7a1afdeaac1",
|
||||
"MachineLearning/CameraDirector/cw_camera_cli.py": "943870a4cdec7e4b830b9c945d690e700902cf2a37d1e49987bba85bf0b0ea87",
|
||||
"MachineLearning/CameraDirector/cw_camera_runtime.py": "337157e0ddaf2b3a331c7e47c73b50f01cb8c7cdfedf2cfa620adc9d79338b54",
|
||||
"MachineLearning/CameraDirector/data_driven_cut_planner.py": "b6d48d03f8725aa8327abe81afa483c43edc368e7dee9f9e7228e21982f71ad2",
|
||||
"MachineLearning/CameraDirector/generate_hybrid.py": "4f3eeb278d9f516c1c4de30b312c2daf0fe33692d912cedd8a3240533e75d467",
|
||||
"MachineLearning/CameraDirector/generate_hybrid.py": "68e36c9a8abc7771527a7f383ba5dc501ba437c993610103bb56f9b18e1abbc1",
|
||||
"MachineLearning/CameraDirector/hybrid_candidate_cache.py": "a0a5b6a8f612f18cb2875394f17ed89950e1e62e38c1226457d9e35848f6e380",
|
||||
"MachineLearning/CameraDirector/hybrid_cut_reference.py": "1f136f5514fddf04b21dfb9220d9559a1fff8cd7c17388d81875edbd82a672ac",
|
||||
"MachineLearning/CameraDirector/hybrid_cut_reference.py": "53521d9e31d315c011892961887baf0cde6451020bf39c9d080a5072d4707fcb",
|
||||
"MachineLearning/CameraDirector/hybrid_preparation_cache.py": "1b0df53124109dee2d744777979a0553999cb276cb6f538a17ddce6516e3da8b",
|
||||
"MachineLearning/CameraDirector/hybrid_single_shot_cache.py": "f540e603b0ccffb86ee003d441c3889c245a208db8fd8b2b966fdacfeea30950",
|
||||
"MachineLearning/CameraDirector/planner.py": "8575788c0ff1e984f8238354dcd6de2dab9f62afeb71fa4b77ebfc7c66400372",
|
||||
"MachineLearning/CameraDirector/shot_features.py": "fd912b00320ea53ca682c010de6ed1102edcd021ceb4822a5785033a500786fe",
|
||||
"MachineLearning/CameraDirector/train.py": "4e0fcfd88ec2c241e66497f109420a4dc3cf958d835f78bef4279f58e6d9a8b1"
|
||||
"MachineLearning/CameraDirector/train.py": "40e9e9a9ab824d596b14f987b2977f187695c3d5a2a2bde9da67e95d38d78836"
|
||||
},
|
||||
"preparationLogicIdentifier": "123407b6741f05418a4f3237790492d9b74e13b87090acff2b1a07cf9de2912f",
|
||||
"candidateLogicIdentifier": "77793481c02a9b4eda52d009a771444995bd59819717bb98aa46769ec61d4d88",
|
||||
"generationCodeIdentifier": "95920673d29794c2a7e2866ff8aa3b57089d1cda4f4f0023ec555139efa97bb7",
|
||||
"preparationLogicIdentifier": "acba2a46d9d979b013b7154bada6b6a8a7adfd7acd1721876ce6699ed4e03e84",
|
||||
"candidateLogicIdentifier": "9cca18ec839f70fffad3e38ab05fbb9209c51d17081ec02dad1b2af1f93df223",
|
||||
"generationCodeIdentifier": "2d225f7a926869593d8572e369e504fa6440565f84329ff797f66f3912abf7b0",
|
||||
"generationCodeFiles": [
|
||||
"adjacent_transition.py",
|
||||
"camera_kinematics.py",
|
||||
|
||||
@ -475,6 +475,9 @@ def quat_to_rotation_6d(q: np.ndarray) -> np.ndarray:
|
||||
def rotation_6d_to_quat(values: np.ndarray) -> np.ndarray:
|
||||
"""Convert compact rotation columns to normalized XYZW quaternions."""
|
||||
|
||||
values = np.asarray(values, dtype=np.float32)
|
||||
if values.ndim < 1 or values.shape[-1] != 6:
|
||||
raise ValueError("Rotation 6D values must have a final dimension of six.")
|
||||
first = values[..., :3]
|
||||
second = values[..., 3:6]
|
||||
first = first / np.maximum(np.linalg.norm(first, axis=-1, keepdims=True), 1e-8)
|
||||
@ -490,8 +493,43 @@ def rotation_6d_to_quat(values: np.ndarray) -> np.ndarray:
|
||||
result[positive, 0] = (matrix[positive, 2, 1] - matrix[positive, 1, 2]) / root
|
||||
result[positive, 1] = (matrix[positive, 0, 2] - matrix[positive, 2, 0]) / root
|
||||
result[positive, 2] = (matrix[positive, 1, 0] - matrix[positive, 0, 1]) / root
|
||||
fallback = ~positive
|
||||
result[fallback] = np.asarray((0.0, 0.0, 1.0, 0.0), dtype=np.float32)
|
||||
remaining = ~positive
|
||||
for axis in range(3):
|
||||
next_axis = (axis + 1) % 3
|
||||
final_axis = (axis + 2) % 3
|
||||
mask = remaining & (
|
||||
matrix[..., axis, axis] >= matrix[..., next_axis, next_axis]
|
||||
)
|
||||
mask &= (
|
||||
matrix[..., axis, axis] >= matrix[..., final_axis, final_axis]
|
||||
)
|
||||
if not np.any(mask):
|
||||
continue
|
||||
root = np.sqrt(
|
||||
np.maximum(
|
||||
1.0
|
||||
+ matrix[mask, axis, axis]
|
||||
- matrix[mask, next_axis, next_axis]
|
||||
- matrix[mask, final_axis, final_axis],
|
||||
1e-8,
|
||||
)
|
||||
) * 2.0
|
||||
result[mask, axis] = 0.25 * root
|
||||
result[mask, 3] = (
|
||||
matrix[mask, final_axis, next_axis]
|
||||
- matrix[mask, next_axis, final_axis]
|
||||
) / root
|
||||
result[mask, next_axis] = (
|
||||
matrix[mask, next_axis, axis]
|
||||
+ matrix[mask, axis, next_axis]
|
||||
) / root
|
||||
result[mask, final_axis] = (
|
||||
matrix[mask, final_axis, axis]
|
||||
+ matrix[mask, axis, final_axis]
|
||||
) / root
|
||||
remaining &= ~mask
|
||||
if np.any(remaining):
|
||||
raise ValueError("Rotation 6D conversion left an unresolved matrix branch.")
|
||||
result /= np.maximum(np.linalg.norm(result, axis=-1, keepdims=True), 1e-8)
|
||||
return result
|
||||
|
||||
|
||||
@ -29,7 +29,7 @@ from typing import Any, Callable, Iterable, TextIO
|
||||
import cw_camera_runtime
|
||||
|
||||
|
||||
WORKER_VERSION = "0.1.3"
|
||||
WORKER_VERSION = cw_camera_runtime.WORKER_VERSION
|
||||
EVENT_SCHEMA_VERSION = "cw-camera-worker-event-v1"
|
||||
PROTOCOL_VERSION = "1"
|
||||
EVENT_PREFIX = "CWAI_EVENT "
|
||||
|
||||
@ -19,6 +19,7 @@ from typing import Any, Iterable
|
||||
|
||||
BUILD_IDENTITY_SCHEMA_VERSION = "cw-camera-worker-build-identity-v1"
|
||||
BUILD_IDENTITY_FILE = "cw_camera_worker_build_identity.json"
|
||||
WORKER_VERSION = "0.1.3"
|
||||
|
||||
|
||||
def is_frozen_runtime() -> bool:
|
||||
|
||||
@ -121,18 +121,26 @@ SEED_VARIATION_INITIAL_CANDIDATES = 8
|
||||
SEED_VARIATION_MAX_NORMAL_CANDIDATES = 16
|
||||
SEED_VARIATION_MAX_SELECTION_SCORE_DELTA = 2.0
|
||||
GENERATION_PERFORMANCE_SCHEMA_VERSION = "hybrid-generation-performance-v1"
|
||||
PREPARATION_LOGIC_CONTRACT_VERSION = "hybrid-preparation-logic-v2"
|
||||
CANDIDATE_LOGIC_CONTRACT_VERSION = "hybrid-candidate-logic-v16-front-facing"
|
||||
PREPARATION_LOGIC_CONTRACT_VERSION = (
|
||||
"hybrid-preparation-logic-v3-complete-rotation-6d"
|
||||
)
|
||||
CANDIDATE_LOGIC_CONTRACT_VERSION = (
|
||||
"hybrid-candidate-logic-v18-torso-front-facing-safety"
|
||||
)
|
||||
CANDIDATE_CACHE_STAGE_VERSIONS = {
|
||||
"shotSegmentation": "data-driven-candidates-ranker-global-dag-v1",
|
||||
"shotPlanning": "hierarchical-or-legacy-reconciliation-replay-v3-static-budget",
|
||||
"candidateRanking": (
|
||||
"template-rank-v12-front-facing-adjacent-transition-v3-no-forced-side-alternation"
|
||||
"candidateRanking": (
|
||||
"template-rank-v14-complete-rotation-6d-front-facing-safety-"
|
||||
"adjacent-transition-v3-no-forced-side-alternation"
|
||||
),
|
||||
"trajectoryRetargeting": (
|
||||
"retarget-v18-front-facing-c2-yamo-turn-kinematics-semantic-baked-aim"
|
||||
"retarget-v20-torso-front-facing-safety-c2-yamo-turn-kinematics-"
|
||||
"semantic-baked-aim"
|
||||
),
|
||||
"compositionSafety": (
|
||||
"person-safety-v10-derived-semantic-envelope-torso-front-facing"
|
||||
),
|
||||
"compositionSafety": "person-safety-v9-derived-semantic-envelope",
|
||||
"variationPool": (
|
||||
SEED_VARIATION_POLICY_VERSION
|
||||
+ "-static-budget-v5-seed-independent-base-selection-only-extra"
|
||||
@ -140,7 +148,7 @@ CANDIDATE_CACHE_STAGE_VERSIONS = {
|
||||
"sequenceContinuation": SEED_VARIATION_SEQUENCE_CONTEXT_POLICY,
|
||||
}
|
||||
TRAJECTORY_RETARGETING_VERSION = (
|
||||
"edge-safe-position-single-space-c2-yamo-angle-turn-semantic-baked-aim-v9"
|
||||
"edge-safe-position-single-space-c2-yamo-angle-turn-semantic-baked-aim-v10"
|
||||
)
|
||||
TEMPLATE_MOTION_SMOOTHING_VERSION = (
|
||||
"savgol61-nearest-edge-step-guard-v1"
|
||||
@ -185,6 +193,10 @@ AIM_ERROR_P90_LIMIT_DEGREES = 6.0
|
||||
AIM_HORIZONTAL_WARNING_UV = 0.10
|
||||
AIM_HORIZONTAL_P90_LIMIT_UV = 0.075
|
||||
AIM_LONGEST_WARNING_RUN_FRACTION = 0.25
|
||||
FRONT_FACING_ALIGNMENT_MEDIAN_MINIMUM = -0.05
|
||||
FRONT_FACING_SEVERE_REAR_ALIGNMENT = -0.25
|
||||
FRONT_FACING_MAXIMUM_SEVERE_REAR_FRAME_RATIO = 0.12
|
||||
FRONT_FACING_MAXIMUM_SEVERE_REAR_RUN_SECONDS = 0.35
|
||||
AUTOMATIC_LEAD_ROOM_UV = {
|
||||
"wide": 0.06,
|
||||
"medium": 0.052,
|
||||
@ -1677,6 +1689,90 @@ def longest_true_run(values: np.ndarray) -> int:
|
||||
return maximum
|
||||
|
||||
|
||||
def front_facing_safety_metrics(
|
||||
camera_positions: np.ndarray,
|
||||
joints: np.ndarray,
|
||||
sample_rate: float = HYBRID_SAMPLE_RATE,
|
||||
) -> dict[str, float | int | bool]:
|
||||
"""Measure whether a camera remains on the performer's anatomical front.
|
||||
|
||||
Root transforms are not a dependable facing convention across imported
|
||||
rigs. The signed torso normal derived from labelled left/right shoulders
|
||||
and pelvis/head is stable across those coordinate-system differences. It
|
||||
is used only for selection safety; camera motion is never made to follow
|
||||
this per-frame direction.
|
||||
"""
|
||||
|
||||
positions = np.asarray(camera_positions, dtype=np.float64)
|
||||
body = np.asarray(joints, dtype=np.float64)
|
||||
if (
|
||||
positions.ndim != 2
|
||||
or positions.shape[1] != 3
|
||||
or body.ndim != 3
|
||||
or body.shape[1] < 10
|
||||
or body.shape[2] != 3
|
||||
or len(positions) == 0
|
||||
or len(body) != len(positions)
|
||||
):
|
||||
raise ValueError(
|
||||
"Front-facing metrics require camera [frame, 3] and canonical "
|
||||
"joint [frame, joint, 3] arrays with matching non-zero frames."
|
||||
)
|
||||
if not math.isfinite(sample_rate) or sample_rate <= 0.0:
|
||||
raise ValueError("Front-facing sample_rate must be finite and positive.")
|
||||
|
||||
anatomical_right = body[:, 9] - body[:, 5]
|
||||
anatomical_up = body[:, 4] - body[:, 0]
|
||||
anatomical_forward = np.cross(anatomical_right, anatomical_up)
|
||||
anatomical_forward[:, 1] = 0.0
|
||||
camera_offset = positions - body[:, 2]
|
||||
camera_offset[:, 1] = 0.0
|
||||
forward_length = np.linalg.norm(anatomical_forward, axis=1)
|
||||
offset_length = np.linalg.norm(camera_offset, axis=1)
|
||||
valid = (
|
||||
np.isfinite(anatomical_forward).all(axis=1)
|
||||
& np.isfinite(camera_offset).all(axis=1)
|
||||
& (forward_length > 1e-5)
|
||||
& (offset_length > 1e-5)
|
||||
)
|
||||
alignment = np.full(len(positions), -1.0, dtype=np.float64)
|
||||
alignment[valid] = np.sum(
|
||||
anatomical_forward[valid]
|
||||
/ forward_length[valid, None]
|
||||
* camera_offset[valid]
|
||||
/ offset_length[valid, None],
|
||||
axis=1,
|
||||
)
|
||||
alignment = np.clip(alignment, -1.0, 1.0)
|
||||
rear = alignment < 0.0
|
||||
severe_rear = alignment < FRONT_FACING_SEVERE_REAR_ALIGNMENT
|
||||
median = float(np.median(alignment))
|
||||
p10 = float(np.quantile(alignment, 0.10))
|
||||
severe_ratio = float(np.mean(severe_rear))
|
||||
severe_longest = longest_true_run(severe_rear)
|
||||
allowed_longest = max(
|
||||
1,
|
||||
int(round(FRONT_FACING_MAXIMUM_SEVERE_REAR_RUN_SECONDS * sample_rate)),
|
||||
)
|
||||
passed = bool(
|
||||
np.all(valid)
|
||||
and median >= FRONT_FACING_ALIGNMENT_MEDIAN_MINIMUM
|
||||
and severe_ratio <= FRONT_FACING_MAXIMUM_SEVERE_REAR_FRAME_RATIO
|
||||
and severe_longest <= allowed_longest
|
||||
)
|
||||
return {
|
||||
"frontFacingAlignment": median,
|
||||
"frontFacingAlignmentP10": p10,
|
||||
"frontFacingAlignmentMinimum": float(np.min(alignment)),
|
||||
"frontFacingRearFrameRatio": float(np.mean(rear)),
|
||||
"frontFacingSevereRearFrameRatio": severe_ratio,
|
||||
"frontFacingSevereRearLongestRunFrames": int(severe_longest),
|
||||
"frontFacingSevereRearAllowedLongestRunFrames": int(allowed_longest),
|
||||
"frontFacingInvalidFrameCount": int(np.sum(~valid)),
|
||||
"frontFacingPassed": passed,
|
||||
}
|
||||
|
||||
|
||||
def strict_person_envelope_metrics(
|
||||
camera_positions: np.ndarray,
|
||||
camera_rotations: np.ndarray,
|
||||
@ -4685,22 +4781,20 @@ def retarget_template_to_shot(
|
||||
motion_quality["motionSelectionAdjustment"]
|
||||
+ translation_kinematic_penalty
|
||||
)
|
||||
root_forward = train.quat_rotate(
|
||||
root_rotation,
|
||||
np.broadcast_to(
|
||||
np.asarray([0.0, 0.0, 1.0], dtype=np.float32),
|
||||
root_rotation.shape[:1] + (3,),
|
||||
),
|
||||
front_facing = front_facing_safety_metrics(
|
||||
camera_world_position,
|
||||
joint_world_position,
|
||||
)
|
||||
camera_offset = camera_world_position - root_position
|
||||
camera_offset /= np.maximum(
|
||||
np.linalg.norm(camera_offset, axis=1, keepdims=True),
|
||||
1e-5,
|
||||
front_facing_penalty = (
|
||||
max(0.0, -float(front_facing["frontFacingAlignment"])) * 5.0
|
||||
+ float(front_facing["frontFacingSevereRearFrameRatio"]) * 12.0
|
||||
+ min(
|
||||
1.0,
|
||||
float(front_facing["frontFacingSevereRearLongestRunFrames"])
|
||||
/ max(1.0, float(len(camera_world_position))),
|
||||
)
|
||||
* 8.0
|
||||
)
|
||||
front_facing_alignment = float(
|
||||
np.median(np.sum(root_forward * camera_offset, axis=1))
|
||||
)
|
||||
front_facing_penalty = max(0.0, -front_facing_alignment) * 3.0
|
||||
quality_score += front_facing_penalty
|
||||
transition_state = adjacent_transition.build_transition_state(
|
||||
camera_world_position,
|
||||
@ -4761,7 +4855,7 @@ def retarget_template_to_shot(
|
||||
"realizedMotionType": realized_motion_type,
|
||||
"composition": composition_metrics,
|
||||
"motionQuality": motion_quality,
|
||||
"frontFacingAlignment": front_facing_alignment,
|
||||
**front_facing,
|
||||
"frontFacingPenalty": front_facing_penalty,
|
||||
"qualityScore": float(quality_score),
|
||||
}
|
||||
@ -4981,15 +5075,28 @@ def _camera_variation_sort_key(result: dict) -> tuple:
|
||||
|
||||
|
||||
def candidate_passes_safety_and_aim(candidate: dict) -> bool:
|
||||
"""Gate selectable output on both body visibility and baked aim quality."""
|
||||
"""Gate selectable output on visibility, baked aim, and performer facing."""
|
||||
|
||||
composition = candidate.get("composition", {})
|
||||
front_passed = candidate.get("frontFacingPassed")
|
||||
front_metrics = (
|
||||
candidate.get("frontFacingAlignment"),
|
||||
candidate.get("frontFacingAlignmentP10"),
|
||||
candidate.get("frontFacingSevereRearFrameRatio"),
|
||||
)
|
||||
front_metrics_are_finite = all(
|
||||
isinstance(value, (int, float)) and math.isfinite(float(value))
|
||||
for value in front_metrics
|
||||
)
|
||||
return bool(
|
||||
composition.get("hardPersonSafetyPassed", False)
|
||||
# Synthetic/legacy test candidates omit the new key. Runtime v4
|
||||
# candidates always write it, and old caches are contract-invalidated.
|
||||
and composition.get("aimQualityPassed", True)
|
||||
and composition.get("semanticProjectionSafetyPassed", True)
|
||||
# Runtime candidates must carry the current fail-closed facing audit.
|
||||
# Old cached payloads are rejected and rebuilt by cache preflight.
|
||||
and type(front_passed) is bool
|
||||
and front_passed
|
||||
and front_metrics_are_finite
|
||||
)
|
||||
|
||||
|
||||
@ -6985,7 +7092,7 @@ def validate_loaded_candidate_pool(
|
||||
metadata = loaded.bundle_metadata
|
||||
if (
|
||||
not isinstance(metadata, dict)
|
||||
or metadata.get("contractVersion") != "hybrid-candidate-runtime-v8"
|
||||
or metadata.get("contractVersion") != "hybrid-candidate-runtime-v9"
|
||||
or metadata.get("cutBoundaries") != boundaries
|
||||
):
|
||||
raise candidate_cache.CandidateCacheIntegrityError(
|
||||
@ -8763,8 +8870,42 @@ def main() -> None:
|
||||
),
|
||||
)
|
||||
closest = closest_result["composition"]
|
||||
front_rejected = sum(
|
||||
result.get("frontFacingPassed") is not True
|
||||
for result in candidate_results
|
||||
)
|
||||
person_rejected = sum(
|
||||
not bool(
|
||||
result.get("composition", {}).get(
|
||||
"hardPersonSafetyPassed",
|
||||
False,
|
||||
)
|
||||
)
|
||||
for result in candidate_results
|
||||
)
|
||||
aim_rejected = sum(
|
||||
not bool(
|
||||
result.get("composition", {}).get(
|
||||
"aimQualityPassed",
|
||||
False,
|
||||
)
|
||||
)
|
||||
for result in candidate_results
|
||||
)
|
||||
best_front = max(
|
||||
candidate_results,
|
||||
key=lambda result: (
|
||||
float(result.get("frontFacingAlignment", -1.0)),
|
||||
-float(
|
||||
result.get(
|
||||
"frontFacingSevereRearFrameRatio",
|
||||
1.0,
|
||||
)
|
||||
),
|
||||
),
|
||||
)
|
||||
raise ValueError(
|
||||
f"Shot {shot_index} failed the strict person-envelope"
|
||||
f"Shot {shot_index} failed the camera safety gates"
|
||||
+ (
|
||||
" with required visible automatic motion "
|
||||
f"({visible_motion_filter_reason})"
|
||||
@ -8773,10 +8914,18 @@ def main() -> None:
|
||||
)
|
||||
+ " "
|
||||
"gate after candidate and distance fallback: "
|
||||
f"candidates={len(candidate_results)}, "
|
||||
f"personRejected={person_rejected}, "
|
||||
f"aimRejected={aim_rejected}, "
|
||||
f"frontFacingRejected={front_rejected}, "
|
||||
f"exitRatio={closest['strictExitFrameRatio']:.6f}, "
|
||||
f"longestExit={closest['strictExitLongestRunFrames']}, "
|
||||
"minimumMargin="
|
||||
f"{closest['strictMinimumViewportMargin']:.6f}."
|
||||
f"{closest['strictMinimumViewportMargin']:.6f}, "
|
||||
"bestFrontAlignment="
|
||||
f"{float(best_front.get('frontFacingAlignment', -1.0)):.6f}, "
|
||||
"bestSevereRearRatio="
|
||||
f"{float(best_front.get('frontFacingSevereRearFrameRatio', 1.0)):.6f}."
|
||||
)
|
||||
|
||||
planner_variation_pool = (
|
||||
@ -9185,6 +9334,34 @@ def main() -> None:
|
||||
],
|
||||
"mirrored": selected_result["mirrored"],
|
||||
"realizedSideSign": selected_result["realizedSideSign"],
|
||||
"frontFacingAlignment": selected_result[
|
||||
"frontFacingAlignment"
|
||||
],
|
||||
"frontFacingAlignmentP10": selected_result[
|
||||
"frontFacingAlignmentP10"
|
||||
],
|
||||
"frontFacingAlignmentMinimum": selected_result[
|
||||
"frontFacingAlignmentMinimum"
|
||||
],
|
||||
"frontFacingRearFrameRatio": selected_result[
|
||||
"frontFacingRearFrameRatio"
|
||||
],
|
||||
"frontFacingSevereRearFrameRatio": selected_result[
|
||||
"frontFacingSevereRearFrameRatio"
|
||||
],
|
||||
"frontFacingSevereRearLongestRunFrames": selected_result[
|
||||
"frontFacingSevereRearLongestRunFrames"
|
||||
],
|
||||
"frontFacingSevereRearAllowedLongestRunFrames": (
|
||||
selected_result[
|
||||
"frontFacingSevereRearAllowedLongestRunFrames"
|
||||
]
|
||||
),
|
||||
"frontFacingInvalidFrameCount": selected_result[
|
||||
"frontFacingInvalidFrameCount"
|
||||
],
|
||||
"frontFacingPassed": selected_result["frontFacingPassed"],
|
||||
"frontFacingPenalty": selected_result["frontFacingPenalty"],
|
||||
"candidateCountEvaluated": len(candidate_results),
|
||||
"selectedCandidateRank": int(selected_result["candidateRank"]),
|
||||
"selectionScore": effective_candidate_selection_score(
|
||||
@ -9278,7 +9455,7 @@ def main() -> None:
|
||||
candidate_identity,
|
||||
candidate_pool_shots,
|
||||
bundle_metadata={
|
||||
"contractVersion": "hybrid-candidate-runtime-v8",
|
||||
"contractVersion": "hybrid-candidate-runtime-v9",
|
||||
"cutBoundaries": [int(value) for value in boundaries],
|
||||
"planningReplay": [
|
||||
{
|
||||
@ -10208,6 +10385,45 @@ def main() -> None:
|
||||
"hardPersonSafetyPassed": all(
|
||||
bool(shot["hardPersonSafetyPassed"]) for shot in shots
|
||||
),
|
||||
"frontFacingSafetyPolicy": {
|
||||
"directionSource": (
|
||||
"canonical torso normal from right-minus-left shoulder "
|
||||
"cross head-minus-pelvis"
|
||||
),
|
||||
"cameraBodyFollowsDirection": False,
|
||||
"alignmentMedianMinimum": (
|
||||
FRONT_FACING_ALIGNMENT_MEDIAN_MINIMUM
|
||||
),
|
||||
"severeRearAlignment": FRONT_FACING_SEVERE_REAR_ALIGNMENT,
|
||||
"maximumSevereRearFrameRatio": (
|
||||
FRONT_FACING_MAXIMUM_SEVERE_REAR_FRAME_RATIO
|
||||
),
|
||||
"maximumSevereRearRunSeconds": (
|
||||
FRONT_FACING_MAXIMUM_SEVERE_REAR_RUN_SECONDS
|
||||
),
|
||||
"failClosed": True,
|
||||
},
|
||||
"frontFacingSafetyPassed": all(
|
||||
bool(shot["frontFacingPassed"]) for shot in shots
|
||||
),
|
||||
"frontFacingAlignmentFrameWeighted": frame_weighted(
|
||||
"frontFacingAlignment"
|
||||
),
|
||||
"frontFacingAlignmentP10ShotDistribution": value_distribution(
|
||||
[float(shot["frontFacingAlignmentP10"]) for shot in shots]
|
||||
),
|
||||
"frontFacingRearFrameRatioFrameWeighted": frame_weighted(
|
||||
"frontFacingRearFrameRatio"
|
||||
),
|
||||
"frontFacingSevereRearFrameRatioFrameWeighted": frame_weighted(
|
||||
"frontFacingSevereRearFrameRatio"
|
||||
),
|
||||
"frontFacingSevereRearLongestRunFramesMax": int(
|
||||
max(
|
||||
shot["frontFacingSevereRearLongestRunFrames"]
|
||||
for shot in shots
|
||||
)
|
||||
),
|
||||
"semanticAimQualityPassed": all(
|
||||
bool(shot["aimQualityPassed"]) for shot in shots
|
||||
),
|
||||
|
||||
Binary file not shown.
@ -1 +0,0 @@
|
||||
pip
|
||||
@ -1,466 +0,0 @@
|
||||
Metadata-Version: 2.4
|
||||
Name: email-validator
|
||||
Version: 2.3.0
|
||||
Summary: A robust email address syntax and deliverability validation library.
|
||||
Home-page: https://github.com/JoshData/python-email-validator
|
||||
Author: Joshua Tauberer
|
||||
Author-email: jt@occams.info
|
||||
License: Unlicense
|
||||
Keywords: email address validator
|
||||
Classifier: Development Status :: 5 - Production/Stable
|
||||
Classifier: Intended Audience :: Developers
|
||||
Classifier: License :: OSI Approved :: The Unlicense (Unlicense)
|
||||
Classifier: Programming Language :: Python :: 3
|
||||
Classifier: Programming Language :: Python :: 3.8
|
||||
Classifier: Programming Language :: Python :: 3.9
|
||||
Classifier: Programming Language :: Python :: 3.10
|
||||
Classifier: Programming Language :: Python :: 3.11
|
||||
Classifier: Programming Language :: Python :: 3.12
|
||||
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
||||
Requires-Python: >=3.8
|
||||
Description-Content-Type: text/markdown
|
||||
License-File: LICENSE
|
||||
Requires-Dist: dnspython>=2.0.0
|
||||
Requires-Dist: idna>=2.0.0
|
||||
Dynamic: license-file
|
||||
|
||||
email-validator: Validate Email Addresses
|
||||
=========================================
|
||||
|
||||
A robust email address syntax and deliverability validation library for
|
||||
Python 3.8+ by [Joshua Tauberer](https://joshdata.me).
|
||||
|
||||
This library validates that a string is of the form `name@example.com`
|
||||
and optionally checks that the domain name is set up to receive email.
|
||||
This is the sort of validation you would want when you are identifying
|
||||
users by their email address like on a registration form.
|
||||
|
||||
Key features:
|
||||
|
||||
* Checks that an email address has the correct syntax --- great for
|
||||
email-based registration/login forms or validating data.
|
||||
* Gives friendly English error messages when validation fails that you
|
||||
can display to end-users.
|
||||
* Checks deliverability (optional): Does the domain name resolve?
|
||||
(You can override the default DNS resolver to add query caching.)
|
||||
* Supports internationalized domain names (like `@ツ.life`),
|
||||
internationalized local parts (like `ツ@example.com`),
|
||||
and optionally parses display names (e.g. `"My Name" <me@example.com>`).
|
||||
* Rejects addresses with invalid or unsafe Unicode characters,
|
||||
obsolete email address syntax that you'd find unexpected,
|
||||
special use domain names like `@localhost`,
|
||||
and domains without a dot by default.
|
||||
This is an opinionated library!
|
||||
* Normalizes email addresses (important for internationalized
|
||||
and quoted-string addresses! see below).
|
||||
* Python type annotations are used.
|
||||
|
||||
This is an opinionated library. You should definitely also consider using
|
||||
the less-opinionated [pyIsEmail](https://github.com/michaelherold/pyIsEmail)
|
||||
if it works better for you.
|
||||
|
||||
[](https://github.com/JoshData/python-email-validator/actions/workflows/test_and_build.yaml)
|
||||
|
||||
View the [CHANGELOG / Release Notes](CHANGELOG.md) for the version history of changes in the library. Occasionally this README is ahead of the latest published package --- see the CHANGELOG for details.
|
||||
|
||||
---
|
||||
|
||||
Installation
|
||||
------------
|
||||
|
||||
This package [is on PyPI](https://pypi.org/project/email-validator/), so:
|
||||
|
||||
```sh
|
||||
pip install email-validator
|
||||
```
|
||||
|
||||
(You might need to use `pip3` depending on your local environment.)
|
||||
|
||||
Quick Start
|
||||
-----------
|
||||
|
||||
If you're validating a user's email address before creating a user
|
||||
account in your application, you might do this:
|
||||
|
||||
```python
|
||||
from email_validator import validate_email, EmailNotValidError
|
||||
|
||||
email = "my+address@example.org"
|
||||
|
||||
try:
|
||||
|
||||
# Check that the email address is valid. Turn on check_deliverability
|
||||
# for first-time validations like on account creation pages (but not
|
||||
# login pages).
|
||||
emailinfo = validate_email(email, check_deliverability=False)
|
||||
|
||||
# After this point, use only the normalized form of the email address,
|
||||
# especially before going to a database query.
|
||||
email = emailinfo.normalized
|
||||
|
||||
except EmailNotValidError as e:
|
||||
|
||||
# The exception message is human-readable explanation of why it's
|
||||
# not a valid (or deliverable) email address.
|
||||
print(str(e))
|
||||
```
|
||||
|
||||
This validates the address and gives you its normalized form. You should
|
||||
**put the normalized form in your database** and always normalize before
|
||||
checking if an address is in your database. When using this in a login form,
|
||||
set `check_deliverability` to `False` to avoid unnecessary DNS queries.
|
||||
|
||||
Usage
|
||||
-----
|
||||
|
||||
### Overview
|
||||
|
||||
The module provides a function `validate_email(email_address)` which
|
||||
takes an email address and:
|
||||
|
||||
- Raises a `EmailNotValidError` with a helpful, human-readable error
|
||||
message explaining why the email address is not valid, or
|
||||
- Returns an object with a normalized form of the email address (which
|
||||
you should use!) and other information about it.
|
||||
|
||||
When an email address is not valid, `validate_email` raises either an
|
||||
`EmailSyntaxError` if the form of the address is invalid or an
|
||||
`EmailUndeliverableError` if the domain name fails DNS checks. Both
|
||||
exception classes are subclasses of `EmailNotValidError`, which in turn
|
||||
is a subclass of `ValueError`.
|
||||
|
||||
But when an email address is valid, an object is returned containing
|
||||
a normalized form of the email address (which you should use!) and
|
||||
other information.
|
||||
|
||||
The validator doesn't, by default, permit obsoleted forms of email addresses
|
||||
that no one uses anymore even though they are still valid and deliverable, since
|
||||
they will probably give you grief if you're using email for login. (See
|
||||
later in the document about how to allow some obsolete forms.)
|
||||
|
||||
The validator optionally checks that the domain name in the email address has
|
||||
a DNS MX record indicating that it can receive email. (Except a Null MX record.
|
||||
If there is no MX record, a fallback A/AAAA-record is permitted, unless
|
||||
a reject-all SPF record is present.) DNS is slow and sometimes unavailable or
|
||||
unreliable, so consider whether these checks are useful for your use case and
|
||||
turn them off if they aren't.
|
||||
There is nothing to be gained by trying to actually contact an SMTP server, so
|
||||
that's not done here. For privacy, security, and practicality reasons, servers
|
||||
are good at not giving away whether an address is
|
||||
deliverable or not: email addresses that appear to accept mail at first
|
||||
can bounce mail after a delay, and bounced mail may indicate a temporary
|
||||
failure of a good email address (sometimes an intentional failure, like
|
||||
greylisting).
|
||||
|
||||
### Options
|
||||
|
||||
The `validate_email` function also accepts the following keyword arguments
|
||||
(defaults are as shown below):
|
||||
|
||||
`check_deliverability=True`: If true, DNS queries are made to check that the domain name in the email address (the part after the @-sign) can receive mail, as described above. Set to `False` to skip this DNS-based check. It is recommended to pass `False` when performing validation for login pages (but not account creation pages) since re-validation of a previously validated domain in your database by querying DNS at every login is probably undesirable. You can also set `email_validator.CHECK_DELIVERABILITY` to `False` to turn this off for all calls by default.
|
||||
|
||||
`dns_resolver=None`: Pass an instance of [dns.resolver.Resolver](https://dnspython.readthedocs.io/en/latest/resolver-class.html) to control the DNS resolver including setting a timeout and [a cache](https://dnspython.readthedocs.io/en/latest/resolver-caching.html). The `caching_resolver` function shown below is a helper function to construct a dns.resolver.Resolver with a [LRUCache](https://dnspython.readthedocs.io/en/latest/resolver-caching.html#dns.resolver.LRUCache). Reuse the same resolver instance across calls to `validate_email` to make use of the cache.
|
||||
|
||||
`test_environment=False`: If `True`, DNS-based deliverability checks are disabled and `test` and `**.test` domain names are permitted (see below). You can also set `email_validator.TEST_ENVIRONMENT` to `True` to turn it on for all calls by default.
|
||||
|
||||
`allow_smtputf8=True`: Set to `False` to prohibit internationalized addresses that would
|
||||
require the
|
||||
[SMTPUTF8](https://tools.ietf.org/html/rfc6531) extension. You can also set `email_validator.ALLOW_SMTPUTF8` to `False` to turn it off for all calls by default.
|
||||
|
||||
`allow_quoted_local=False`: Set to `True` to allow obscure and potentially problematic email addresses in which the part of the address before the @-sign contains spaces, @-signs, or other surprising characters when the local part is surrounded in quotes (so-called quoted-string local parts). In the object returned by `validate_email`, the normalized local part removes any unnecessary backslash-escaping and even removes the surrounding quotes if the address would be valid without them. You can also set `email_validator.ALLOW_QUOTED_LOCAL` to `True` to turn this on for all calls by default.
|
||||
|
||||
`allow_domain_literal=False`: Set to `True` to allow bracketed IPv4 and "IPv6:"-prefixed IPv6 addresses in the domain part of the email address. No deliverability checks are performed for these addresses. In the object returned by `validate_email`, the normalized domain will use the condensed IPv6 format, if applicable. The object's `domain_address` attribute will hold the parsed `ipaddress.IPv4Address` or `ipaddress.IPv6Address` object if applicable. You can also set `email_validator.ALLOW_DOMAIN_LITERAL` to `True` to turn this on for all calls by default.
|
||||
|
||||
`allow_display_name=False`: Set to `True` to allow a display name and bracketed address in the input string, like `My Name <me@example.org>`. It's implemented in the spirit but not the letter of RFC 5322 3.4, so it may be stricter or more relaxed than what you want. The display name, if present, is provided in the returned object's `display_name` field after being unquoted and unescaped. You can also set `email_validator.ALLOW_DISPLAY_NAME` to `True` to turn this on for all calls by default.
|
||||
|
||||
`allow_empty_local=False`: Set to `True` to allow an empty local part (i.e.
|
||||
`@example.com`), e.g. for validating Postfix aliases.
|
||||
|
||||
`strict=False`: Set to `True` to perform additional syntax checks (currently only a local part length check). This should be used by mail service providers at address creation to ensure email addresses meet broad compatibility requirements.
|
||||
|
||||
### DNS timeout and cache
|
||||
|
||||
When validating many email addresses or to control the timeout (the default is 15 seconds), create a caching [dns.resolver.Resolver](https://dnspython.readthedocs.io/en/latest/resolver-class.html) to reuse in each call. The `caching_resolver` function returns one easily for you:
|
||||
|
||||
```python
|
||||
from email_validator import validate_email, caching_resolver
|
||||
|
||||
resolver = caching_resolver(timeout=10)
|
||||
|
||||
while True:
|
||||
validate_email(email, dns_resolver=resolver)
|
||||
```
|
||||
|
||||
### Test addresses
|
||||
|
||||
This library rejects email addresses that use the [Special Use Domain Names](https://www.iana.org/assignments/special-use-domain-names/special-use-domain-names.xhtml) `invalid`, `localhost`, `test`, and some others by raising `EmailSyntaxError`. This is to protect your system from abuse: You probably don't want a user to be able to cause an email to be sent to `localhost` (although they might be able to still do so via a malicious MX record). However, in your non-production test environments you may want to use `@test` or `@myname.test` email addresses. There are three ways you can allow this:
|
||||
|
||||
1. Add `test_environment=True` to the call to `validate_email` (see above).
|
||||
2. Set `email_validator.TEST_ENVIRONMENT` to `True` globally.
|
||||
3. Remove the special-use domain name that you want to use from `email_validator.SPECIAL_USE_DOMAIN_NAMES`, e.g.:
|
||||
|
||||
```python
|
||||
import email_validator
|
||||
email_validator.SPECIAL_USE_DOMAIN_NAMES.remove("test")
|
||||
```
|
||||
|
||||
It is tempting to use `@example.com/net/org` in tests. They are *not* in this library's `SPECIAL_USE_DOMAIN_NAMES` list so you can, but shouldn't, use them. These domains are reserved to IANA for use in documentation so there is no risk of accidentally emailing someone at those domains. But beware that this library will nevertheless reject these domain names if DNS-based deliverability checks are not disabled because these domains do not resolve to domains that accept email. In tests, consider using your own domain name or `@test` or `@myname.test` instead.
|
||||
|
||||
Internationalized email addresses
|
||||
---------------------------------
|
||||
|
||||
The email protocol SMTP and the domain name system DNS have historically
|
||||
only allowed English (ASCII) characters in email addresses and domain names,
|
||||
respectively. Each has adapted to internationalization in a separate
|
||||
way, creating two separate aspects to email address internationalization.
|
||||
|
||||
(If your mail submission library doesn't support Unicode at all, then
|
||||
immediately prior to mail submission you must replace the email address with
|
||||
its ASCII-ized form. This library gives you back the ASCII-ized form in the
|
||||
`ascii_email` field in the returned object.)
|
||||
|
||||
### Internationalized domain names (IDN)
|
||||
|
||||
The first is [internationalized domain names (RFC
|
||||
5891)](https://tools.ietf.org/html/rfc5891), a.k.a IDNA 2008. The DNS
|
||||
system has not been updated with Unicode support. Instead, internationalized
|
||||
domain names are converted into a special IDNA ASCII "[Punycode](https://www.rfc-editor.org/rfc/rfc3492.txt)"
|
||||
form starting with `xn--`. When an email address has non-ASCII
|
||||
characters in its domain part, the domain part is replaced with its IDNA
|
||||
ASCII equivalent form in the process of mail transmission. Your mail
|
||||
submission library probably does this for you transparently. ([Compliance
|
||||
around the web is not very good though](http://archives.miloush.net/michkap/archive/2012/02/27/10273315.html).) This library conforms to IDNA 2008
|
||||
using the [idna](https://github.com/kjd/idna) module by Kim Davies.
|
||||
|
||||
### Internationalized local parts
|
||||
|
||||
The second sort of internationalization is internationalization in the
|
||||
*local* part of the address (before the @-sign). In non-internationalized
|
||||
email addresses, only English letters, numbers, and some punctuation
|
||||
(`._!#$%&'^``*+-=~/?{|}`) are allowed. In internationalized email address
|
||||
local parts, a wider range of Unicode characters are allowed.
|
||||
|
||||
Email addresses with these non-ASCII characters require that your mail
|
||||
submission library and all the mail servers along the route to the destination,
|
||||
including your own outbound mail server, all support the
|
||||
[SMTPUTF8 (RFC 6531)](https://tools.ietf.org/html/rfc6531) extension.
|
||||
Support for SMTPUTF8 varies. If you know ahead of time that SMTPUTF8 is not
|
||||
supported by your mail submission stack, then you must filter out addresses that
|
||||
require SMTPUTF8 using the `allow_smtputf8=False` keyword argument (see above).
|
||||
This will cause the validation function to raise a `EmailSyntaxError` if
|
||||
delivery would require SMTPUTF8. If you do not set `allow_smtputf8=False`,
|
||||
you can also check the value of the `smtputf8` field in the returned object.
|
||||
|
||||
### Unsafe Unicode characters are rejected
|
||||
|
||||
A surprisingly large number of Unicode characters are not safe to display,
|
||||
especially when the email address is concatenated with other text, so this
|
||||
library tries to protect you by not permitting reserved, non-, private use,
|
||||
formatting (which can be used to alter the display order of characters),
|
||||
whitespace, and control characters, and combining characters
|
||||
as the first character of the local part and the domain name (so that they
|
||||
cannot combine with something outside of the email address string or with
|
||||
the @-sign). See https://qntm.org/safe and https://trojansource.codes/
|
||||
for relevant prior work. (Other than whitespace, these are checks that
|
||||
you should be applying to nearly all user inputs in a security-sensitive
|
||||
context.) This does not guard against the well known problem that many
|
||||
Unicode characters look alike, which can be used to fool humans reading
|
||||
displayed text.
|
||||
|
||||
|
||||
Normalization
|
||||
-------------
|
||||
|
||||
### Unicode Normalization
|
||||
|
||||
The use of Unicode in email addresses introduced a normalization
|
||||
problem. Different Unicode strings can look identical and have the same
|
||||
semantic meaning to the user. The `normalized` field returned on successful
|
||||
validation provides the correctly normalized form of the given email
|
||||
address.
|
||||
|
||||
For example, the CJK fullwidth Latin letters are considered semantically
|
||||
equivalent in domain names to their ASCII counterparts. This library
|
||||
normalizes them to their ASCII counterparts (as required by IDNA):
|
||||
|
||||
```python
|
||||
emailinfo = validate_email("me@Domain.com")
|
||||
print(emailinfo.normalized)
|
||||
print(emailinfo.ascii_email)
|
||||
# prints "me@domain.com" twice
|
||||
```
|
||||
|
||||
Because an end-user might type their email address in different (but
|
||||
equivalent) un-normalized forms at different times, you ought to
|
||||
replace what they enter with the normalized form immediately prior to
|
||||
going into your database (during account creation), querying your database
|
||||
(during login), or sending outbound mail.
|
||||
|
||||
The normalizations include lowercasing the domain part of the email
|
||||
address (domain names are case-insensitive), [Unicode "NFC"
|
||||
normalization](https://en.wikipedia.org/wiki/Unicode_equivalence) of the
|
||||
whole address (which turns characters plus [combining
|
||||
characters](https://en.wikipedia.org/wiki/Combining_character) into
|
||||
precomposed characters where possible, replacement of [fullwidth and
|
||||
halfwidth
|
||||
characters](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms)
|
||||
in the domain part, possibly other
|
||||
[UTS46](http://unicode.org/reports/tr46) mappings on the domain part,
|
||||
and conversion from Punycode to Unicode characters.
|
||||
|
||||
Normalization may change the characters in the email address and the
|
||||
length of the email address, such that a string might be a valid address
|
||||
before normalization but invalid after, or vice versa. This library only
|
||||
permits addresses that are valid both before and after normalization.
|
||||
|
||||
(See [RFC 6532 (internationalized email) section
|
||||
3.1](https://tools.ietf.org/html/rfc6532#section-3.1) and [RFC 5895
|
||||
(IDNA 2008) section 2](http://www.ietf.org/rfc/rfc5895.txt).)
|
||||
|
||||
### Other Normalization
|
||||
|
||||
Normalization is also applied to quoted-string local parts and domain
|
||||
literal IPv6 addresses if you have allowed them by the `allow_quoted_local`
|
||||
and `allow_domain_literal` options. In quoted-string local parts, unnecessary
|
||||
backslash escaping is removed and even the surrounding quotes are removed if
|
||||
they are unnecessary. For IPv6 domain literals, the IPv6 address is
|
||||
normalized to condensed form. [RFC 2142](https://datatracker.ietf.org/doc/html/rfc2142)
|
||||
also requires lowercase normalization for some specific mailbox names like `postmaster@`.
|
||||
|
||||
|
||||
Examples
|
||||
--------
|
||||
|
||||
For the email address `test@joshdata.me`, the returned object is:
|
||||
|
||||
```python
|
||||
ValidatedEmail(
|
||||
normalized='test@joshdata.me',
|
||||
local_part='test',
|
||||
domain='joshdata.me',
|
||||
ascii_email='test@joshdata.me',
|
||||
ascii_local_part='test',
|
||||
ascii_domain='joshdata.me',
|
||||
smtputf8=False)
|
||||
```
|
||||
|
||||
For the fictitious but valid address `example@ツ.ⓁⒾⒻⒺ`, which has an
|
||||
internationalized domain but ASCII local part, the returned object is:
|
||||
|
||||
```python
|
||||
ValidatedEmail(
|
||||
normalized='example@ツ.life',
|
||||
local_part='example',
|
||||
domain='ツ.life',
|
||||
ascii_email='example@xn--bdk.life',
|
||||
ascii_local_part='example',
|
||||
ascii_domain='xn--bdk.life',
|
||||
smtputf8=False)
|
||||
|
||||
```
|
||||
|
||||
Note that `normalized` and other fields provide a normalized form of the
|
||||
email address, domain name, and (in other cases) local part (see earlier
|
||||
discussion of normalization), which you should use in your database.
|
||||
|
||||
Calling `validate_email` with the ASCII form of the above email address,
|
||||
`example@xn--bdk.life`, returns the exact same information (i.e., the
|
||||
`normalized` field always will contain Unicode characters, not Punycode).
|
||||
|
||||
For the fictitious address `ツ-test@joshdata.me`, which has an
|
||||
internationalized local part, the returned object is:
|
||||
|
||||
```python
|
||||
ValidatedEmail(
|
||||
normalized='ツ-test@joshdata.me',
|
||||
local_part='ツ-test',
|
||||
domain='joshdata.me',
|
||||
ascii_email=None,
|
||||
ascii_local_part=None,
|
||||
ascii_domain='joshdata.me',
|
||||
smtputf8=True)
|
||||
```
|
||||
|
||||
Now `smtputf8` is `True` and `ascii_email` is `None` because the local
|
||||
part of the address is internationalized. The `local_part` and `normalized` fields
|
||||
return the normalized form of the address.
|
||||
|
||||
Return value
|
||||
------------
|
||||
|
||||
When an email address passes validation, the fields in the returned object
|
||||
are:
|
||||
|
||||
| Field | Value |
|
||||
| -----:|-------|
|
||||
| `normalized` | The normalized form of the email address that you should put in your database. This combines the `local_part` and `domain` fields (see below). |
|
||||
| `ascii_email` | If set, an ASCII-only form of the normalized email address by replacing the domain part with [IDNA](https://tools.ietf.org/html/rfc5891) [Punycode](https://www.rfc-editor.org/rfc/rfc3492.txt). This field will be present when an ASCII-only form of the email address exists (including if the email address is already ASCII). If the local part of the email address contains internationalized characters, `ascii_email` will be `None`. If set, it merely combines `ascii_local_part` and `ascii_domain`. |
|
||||
| `local_part` | The normalized local part of the given email address (before the @-sign). Normalization includes Unicode NFC normalization and removing unnecessary quoted-string quotes and backslashes. If `allow_quoted_local` is True and the surrounding quotes are necessary, the quotes _will_ be present in this field. |
|
||||
| `ascii_local_part` | If set, the local part, which is composed of ASCII characters only. |
|
||||
| `domain` | The canonical internationalized Unicode form of the domain part of the email address. If the returned string contains non-ASCII characters, either the [SMTPUTF8](https://tools.ietf.org/html/rfc6531) feature of your mail relay will be required to transmit the message or else the email address's domain part must be converted to IDNA ASCII first: Use `ascii_domain` field instead. |
|
||||
| `ascii_domain` | The [IDNA](https://tools.ietf.org/html/rfc5891) [Punycode](https://www.rfc-editor.org/rfc/rfc3492.txt)-encoded form of the domain part of the given email address, as it would be transmitted on the wire. |
|
||||
| `domain_address` | If domain literals are allowed and if the email address contains one, an `ipaddress.IPv4Address` or `ipaddress.IPv6Address` object. |
|
||||
| `display_name` | If no display name was present and angle brackets do not surround the address, this will be `None`; otherwise, it will be set to the display name, or the empty string if there were angle brackets but no display name. If the display name was quoted, it will be unquoted and unescaped. |
|
||||
| `smtputf8` | A boolean indicating that the [SMTPUTF8](https://tools.ietf.org/html/rfc6531) feature of your mail relay will be required to transmit messages to this address because the local part of the address has non-ASCII characters (the local part cannot be IDNA-encoded). If `allow_smtputf8=False` is passed as an argument, this flag will always be false because an exception is raised if it would have been true. |
|
||||
| `mx` | A list of (priority, domain) tuples of MX records specified in the DNS for the domain (see [RFC 5321 section 5](https://tools.ietf.org/html/rfc5321#section-5)). May be `None` if the deliverability check could not be completed because of a temporary issue like a timeout. |
|
||||
| `mx_fallback_type` | `None` if an `MX` record is found. If no MX records are actually specified in DNS and instead are inferred, through an obsolete mechanism, from A or AAAA records, the value is the type of DNS record used instead (`A` or `AAAA`). May be `None` if the deliverability check could not be completed because of a temporary issue like a timeout. |
|
||||
| `spf` | Any SPF record found while checking deliverability. Only set if the SPF record is queried. |
|
||||
|
||||
Assumptions
|
||||
-----------
|
||||
|
||||
By design, this validator does not pass all email addresses that
|
||||
strictly conform to the standards. Many email address forms are obsolete
|
||||
or likely to cause trouble:
|
||||
|
||||
* The validator assumes the email address is intended to be
|
||||
usable on the public Internet. The domain part
|
||||
of the email address must be a resolvable domain name
|
||||
(see the deliverability checks described above).
|
||||
Most [Special Use Domain Names](https://www.iana.org/assignments/special-use-domain-names/special-use-domain-names.xhtml)
|
||||
and their subdomains, as well as
|
||||
domain names without a `.`, are rejected as a syntax error
|
||||
(except see the `test_environment` parameter above).
|
||||
* Obsolete email syntaxes are rejected:
|
||||
The unusual ["(comment)" syntax](https://github.com/JoshData/python-email-validator/issues/77)
|
||||
is rejected. Extremely old obsolete syntaxes are
|
||||
rejected. Quoted-string local parts and domain-literal addresses
|
||||
are rejected by default, but there are options to allow them (see above).
|
||||
No one uses these forms anymore, and I can't think of any reason why anyone
|
||||
using this library would need to accept them.
|
||||
|
||||
Testing
|
||||
-------
|
||||
|
||||
Tests can be run using
|
||||
|
||||
```sh
|
||||
pip install -r test_requirements.txt
|
||||
make test
|
||||
```
|
||||
|
||||
Tests run with mocked DNS responses. When adding or changing tests, temporarily turn on the `BUILD_MOCKED_DNS_RESPONSE_DATA` flag in `tests/mocked_dns_responses.py` to re-build the database of mocked responses from live queries.
|
||||
|
||||
For Project Maintainers
|
||||
-----------------------
|
||||
|
||||
The package is distributed as a universal wheel and as a source package.
|
||||
|
||||
To release:
|
||||
|
||||
* Update CHANGELOG.md.
|
||||
* Update the version number in `email_validator/version.py`.
|
||||
* Make & push a commit with the new version number and make sure tests pass.
|
||||
* Make a release at https://github.com/JoshData/python-email-validator/releases/new creating a new tag (or use command below).
|
||||
* Publish a source and wheel distribution to pypi (see command below).
|
||||
|
||||
```sh
|
||||
git tag v$(cat email_validator/version.py | sed "s/.* = //" | sed 's/"//g')
|
||||
git push --tags
|
||||
./release_to_pypi.sh
|
||||
```
|
||||
|
||||
License
|
||||
-------
|
||||
|
||||
This project is free of any copyright restrictions per the [Unlicense](https://unlicense.org/). (Prior to Feb. 4, 2024, the project was made available under the terms of the [CC0 1.0 Universal public domain dedication](http://creativecommons.org/publicdomain/zero/1.0/).) See [LICENSE](LICENSE) and [CONTRIBUTING.md](CONTRIBUTING.md).
|
||||
@ -1,27 +0,0 @@
|
||||
../../Scripts/email_validator.exe,sha256=qN4MN5fI4K-M5oKlp_LZk8XUMlvtCBYa5QQQpv0L6AA,108424
|
||||
email_validator-2.3.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
||||
email_validator-2.3.0.dist-info/METADATA,sha256=Kpe4Hu_NhWvICwNG9H-i2AC5pDi_j5IxrgD-kx1cn7w,26006
|
||||
email_validator-2.3.0.dist-info/RECORD,,
|
||||
email_validator-2.3.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
||||
email_validator-2.3.0.dist-info/entry_points.txt,sha256=zRM_6bNIUSHTbNx5u6M3nK1MAguvryrc9hICC6HyrBg,66
|
||||
email_validator-2.3.0.dist-info/licenses/LICENSE,sha256=ZyF5dS4QkTSj-yvdB4Cyn9t6A5dPD1hqE66tUSlWLUw,1212
|
||||
email_validator-2.3.0.dist-info/top_level.txt,sha256=fYDOSWFZke46ut7WqdOAJjjhlpPYAaOwOwIsh3s8oWI,16
|
||||
email_validator/__init__.py,sha256=g3oVBGdXGJATgBnVqt5Q7pUhXM9QrmOl5qWSu_RtWmQ,4381
|
||||
email_validator/__main__.py,sha256=uc6i2EMCK67cCgcHr5ZFG5LqB3khljmR7lNAYZGSUKY,2302
|
||||
email_validator/__pycache__/__init__.cpython-310.pyc,,
|
||||
email_validator/__pycache__/__main__.cpython-310.pyc,,
|
||||
email_validator/__pycache__/deliverability.cpython-310.pyc,,
|
||||
email_validator/__pycache__/exceptions.cpython-310.pyc,,
|
||||
email_validator/__pycache__/rfc_constants.cpython-310.pyc,,
|
||||
email_validator/__pycache__/syntax.cpython-310.pyc,,
|
||||
email_validator/__pycache__/types.cpython-310.pyc,,
|
||||
email_validator/__pycache__/validate_email.cpython-310.pyc,,
|
||||
email_validator/__pycache__/version.cpython-310.pyc,,
|
||||
email_validator/deliverability.py,sha256=ZIjFkgWMzxYexanwKhrRHLTnjWMqlR5b0ltOnlA0u-E,7216
|
||||
email_validator/exceptions.py,sha256=Ry2j5FMpEe9JthmTF3zF5pGgWer-QmWc1m0szXAZ7fo,434
|
||||
email_validator/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
email_validator/rfc_constants.py,sha256=LhUiBZLBw_Nn-KHkH--nVwOWFlgz2aCuauj98ZSl-gk,3443
|
||||
email_validator/syntax.py,sha256=puufskeIG6_ORWb7fvRdV_Yczmk4bibNZPs9TjWE1K0,38971
|
||||
email_validator/types.py,sha256=mvmwN9R3lFx9Tv9wtWvDzxfit6mr_5wQmY2I0HjuqRk,5588
|
||||
email_validator/validate_email.py,sha256=bmrdQ9dGt1-Mk0rwDRrX-l6xbYhQ0US20Dz46Aatnkk,9928
|
||||
email_validator/version.py,sha256=CpK8IH_dCUAwg9tqv7zm9FxbBFkxCnED1JUiRe7cftU,22
|
||||
@ -1,5 +0,0 @@
|
||||
Wheel-Version: 1.0
|
||||
Generator: setuptools (80.9.0)
|
||||
Root-Is-Purelib: true
|
||||
Tag: py3-none-any
|
||||
|
||||
@ -1,2 +0,0 @@
|
||||
[console_scripts]
|
||||
email_validator = email_validator.__main__:main
|
||||
@ -1,27 +0,0 @@
|
||||
This is free and unencumbered software released into the public
|
||||
domain.
|
||||
|
||||
Anyone is free to copy, modify, publish, use, compile, sell, or
|
||||
distribute this software, either in source code form or as a
|
||||
compiled binary, for any purpose, commercial or non-commercial,
|
||||
and by any means.
|
||||
|
||||
In jurisdictions that recognize copyright laws, the author or
|
||||
authors of this software dedicate any and all copyright
|
||||
interest in the software to the public domain. We make this
|
||||
dedication for the benefit of the public at large and to the
|
||||
detriment of our heirs and successors. We intend this
|
||||
dedication to be an overt act of relinquishment in perpetuity
|
||||
of all present and future rights to this software under
|
||||
copyright law.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||||
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR
|
||||
ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
||||
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
|
||||
For more information, please refer to <https://unlicense.org/>
|
||||
@ -1 +0,0 @@
|
||||
email_validator
|
||||
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/greenlet/_greenlet.cp310-win_amd64.pyd
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/greenlet/_greenlet.cp310-win_amd64.pyd
(Stored with Git LFS)
Binary file not shown.
@ -1 +0,0 @@
|
||||
pip
|
||||
@ -1,202 +0,0 @@
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
@ -1,133 +0,0 @@
|
||||
Metadata-Version: 2.1
|
||||
Name: importlib_metadata
|
||||
Version: 8.5.0
|
||||
Summary: Read metadata from Python packages
|
||||
Author-email: "Jason R. Coombs" <jaraco@jaraco.com>
|
||||
Project-URL: Source, https://github.com/python/importlib_metadata
|
||||
Classifier: Development Status :: 5 - Production/Stable
|
||||
Classifier: Intended Audience :: Developers
|
||||
Classifier: License :: OSI Approved :: Apache Software License
|
||||
Classifier: Programming Language :: Python :: 3
|
||||
Classifier: Programming Language :: Python :: 3 :: Only
|
||||
Requires-Python: >=3.8
|
||||
Description-Content-Type: text/x-rst
|
||||
License-File: LICENSE
|
||||
Requires-Dist: zipp >=3.20
|
||||
Requires-Dist: typing-extensions >=3.6.4 ; python_version < "3.8"
|
||||
Provides-Extra: check
|
||||
Requires-Dist: pytest-checkdocs >=2.4 ; extra == 'check'
|
||||
Requires-Dist: pytest-ruff >=0.2.1 ; (sys_platform != "cygwin") and extra == 'check'
|
||||
Provides-Extra: cover
|
||||
Requires-Dist: pytest-cov ; extra == 'cover'
|
||||
Provides-Extra: doc
|
||||
Requires-Dist: sphinx >=3.5 ; extra == 'doc'
|
||||
Requires-Dist: jaraco.packaging >=9.3 ; extra == 'doc'
|
||||
Requires-Dist: rst.linker >=1.9 ; extra == 'doc'
|
||||
Requires-Dist: furo ; extra == 'doc'
|
||||
Requires-Dist: sphinx-lint ; extra == 'doc'
|
||||
Requires-Dist: jaraco.tidelift >=1.4 ; extra == 'doc'
|
||||
Provides-Extra: enabler
|
||||
Requires-Dist: pytest-enabler >=2.2 ; extra == 'enabler'
|
||||
Provides-Extra: perf
|
||||
Requires-Dist: ipython ; extra == 'perf'
|
||||
Provides-Extra: test
|
||||
Requires-Dist: pytest !=8.1.*,>=6 ; extra == 'test'
|
||||
Requires-Dist: packaging ; extra == 'test'
|
||||
Requires-Dist: pyfakefs ; extra == 'test'
|
||||
Requires-Dist: flufl.flake8 ; extra == 'test'
|
||||
Requires-Dist: pytest-perf >=0.9.2 ; extra == 'test'
|
||||
Requires-Dist: jaraco.test >=5.4 ; extra == 'test'
|
||||
Requires-Dist: importlib-resources >=1.3 ; (python_version < "3.9") and extra == 'test'
|
||||
Provides-Extra: type
|
||||
Requires-Dist: pytest-mypy ; extra == 'type'
|
||||
|
||||
.. image:: https://img.shields.io/pypi/v/importlib_metadata.svg
|
||||
:target: https://pypi.org/project/importlib_metadata
|
||||
|
||||
.. image:: https://img.shields.io/pypi/pyversions/importlib_metadata.svg
|
||||
|
||||
.. image:: https://github.com/python/importlib_metadata/actions/workflows/main.yml/badge.svg
|
||||
:target: https://github.com/python/importlib_metadata/actions?query=workflow%3A%22tests%22
|
||||
:alt: tests
|
||||
|
||||
.. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json
|
||||
:target: https://github.com/astral-sh/ruff
|
||||
:alt: Ruff
|
||||
|
||||
.. image:: https://readthedocs.org/projects/importlib-metadata/badge/?version=latest
|
||||
:target: https://importlib-metadata.readthedocs.io/en/latest/?badge=latest
|
||||
|
||||
.. image:: https://img.shields.io/badge/skeleton-2024-informational
|
||||
:target: https://blog.jaraco.com/skeleton
|
||||
|
||||
.. image:: https://tidelift.com/badges/package/pypi/importlib-metadata
|
||||
:target: https://tidelift.com/subscription/pkg/pypi-importlib-metadata?utm_source=pypi-importlib-metadata&utm_medium=readme
|
||||
|
||||
Library to access the metadata for a Python package.
|
||||
|
||||
This package supplies third-party access to the functionality of
|
||||
`importlib.metadata <https://docs.python.org/3/library/importlib.metadata.html>`_
|
||||
including improvements added to subsequent Python versions.
|
||||
|
||||
|
||||
Compatibility
|
||||
=============
|
||||
|
||||
New features are introduced in this third-party library and later merged
|
||||
into CPython. The following table indicates which versions of this library
|
||||
were contributed to different versions in the standard library:
|
||||
|
||||
.. list-table::
|
||||
:header-rows: 1
|
||||
|
||||
* - importlib_metadata
|
||||
- stdlib
|
||||
* - 7.0
|
||||
- 3.13
|
||||
* - 6.5
|
||||
- 3.12
|
||||
* - 4.13
|
||||
- 3.11
|
||||
* - 4.6
|
||||
- 3.10
|
||||
* - 1.4
|
||||
- 3.8
|
||||
|
||||
|
||||
Usage
|
||||
=====
|
||||
|
||||
See the `online documentation <https://importlib-metadata.readthedocs.io/>`_
|
||||
for usage details.
|
||||
|
||||
`Finder authors
|
||||
<https://docs.python.org/3/reference/import.html#finders-and-loaders>`_ can
|
||||
also add support for custom package installers. See the above documentation
|
||||
for details.
|
||||
|
||||
|
||||
Caveats
|
||||
=======
|
||||
|
||||
This project primarily supports third-party packages installed by PyPA
|
||||
tools (or other conforming packages). It does not support:
|
||||
|
||||
- Packages in the stdlib.
|
||||
- Packages installed without metadata.
|
||||
|
||||
Project details
|
||||
===============
|
||||
|
||||
* Project home: https://github.com/python/importlib_metadata
|
||||
* Report bugs at: https://github.com/python/importlib_metadata/issues
|
||||
* Code hosting: https://github.com/python/importlib_metadata
|
||||
* Documentation: https://importlib-metadata.readthedocs.io/
|
||||
|
||||
For Enterprise
|
||||
==============
|
||||
|
||||
Available as part of the Tidelift Subscription.
|
||||
|
||||
This project and the maintainers of thousands of other packages are working with Tidelift to deliver one enterprise subscription that covers all of the open source you use.
|
||||
|
||||
`Learn more <https://tidelift.com/subscription/pkg/pypi-importlib-metadata?utm_source=pypi-importlib-metadata&utm_medium=referral&utm_campaign=github>`_.
|
||||
@ -1,31 +0,0 @@
|
||||
importlib_metadata-8.5.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
||||
importlib_metadata-8.5.0.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
||||
importlib_metadata-8.5.0.dist-info/METADATA,sha256=HXikDpZut4rY2D4ZuhAxXnLUDb-f_XP_Cyp9iYmF4G0,4775
|
||||
importlib_metadata-8.5.0.dist-info/RECORD,,
|
||||
importlib_metadata-8.5.0.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
|
||||
importlib_metadata-8.5.0.dist-info/top_level.txt,sha256=CO3fD9yylANiXkrMo4qHLV_mqXL2sC5JFKgt1yWAT-A,19
|
||||
importlib_metadata/__init__.py,sha256=-Sk7aVqfmzLecdjSOpLKo1P_PegQanR__HsMMyEq0PI,35853
|
||||
importlib_metadata/__pycache__/__init__.cpython-310.pyc,,
|
||||
importlib_metadata/__pycache__/_adapters.cpython-310.pyc,,
|
||||
importlib_metadata/__pycache__/_collections.cpython-310.pyc,,
|
||||
importlib_metadata/__pycache__/_compat.cpython-310.pyc,,
|
||||
importlib_metadata/__pycache__/_functools.cpython-310.pyc,,
|
||||
importlib_metadata/__pycache__/_itertools.cpython-310.pyc,,
|
||||
importlib_metadata/__pycache__/_meta.cpython-310.pyc,,
|
||||
importlib_metadata/__pycache__/_text.cpython-310.pyc,,
|
||||
importlib_metadata/__pycache__/diagnose.cpython-310.pyc,,
|
||||
importlib_metadata/_adapters.py,sha256=wdyNWoVblu1r4z8v4t6iQEyjnqAujEyqWAp9wTCVluI,2317
|
||||
importlib_metadata/_collections.py,sha256=CJ0OTCHIjWA0ZIVS4voORAsn2R4R2cQBEtPsZEJpASY,743
|
||||
importlib_metadata/_compat.py,sha256=VC5ZDLlT-BcshauCShdFJvMNLntJJfZzNK1meGa-enw,1313
|
||||
importlib_metadata/_functools.py,sha256=bSbAqC9-2niWM9364FYBx9GWtetnJEfo4mdLv8uMl7c,2895
|
||||
importlib_metadata/_itertools.py,sha256=nMvp9SfHAQ_JYwK4L2i64lr3GRXGlYlikGTVzWbys_E,5351
|
||||
importlib_metadata/_meta.py,sha256=JzuqMG4za5MoaBPCPv61c26fUBdQPZ4by3pbaQA_E_o,1823
|
||||
importlib_metadata/_text.py,sha256=HCsFksZpJLeTP3NEk_ngrAeXVRRtTrtyh9eOABoRP4A,2166
|
||||
importlib_metadata/compat/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
importlib_metadata/compat/__pycache__/__init__.cpython-310.pyc,,
|
||||
importlib_metadata/compat/__pycache__/py311.cpython-310.pyc,,
|
||||
importlib_metadata/compat/__pycache__/py39.cpython-310.pyc,,
|
||||
importlib_metadata/compat/py311.py,sha256=uqm-K-uohyj1042TH4a9Er_I5o7667DvulcD-gC_fSA,608
|
||||
importlib_metadata/compat/py39.py,sha256=cPkMv6-0ilK-0Jw_Tkn0xYbOKJZc4WJKQHow0c2T44w,1102
|
||||
importlib_metadata/diagnose.py,sha256=nkSRMiowlmkhLYhKhvCg9glmt_11Cox-EmLzEbqYTa8,379
|
||||
importlib_metadata/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
@ -1,5 +0,0 @@
|
||||
Wheel-Version: 1.0
|
||||
Generator: setuptools (74.1.2)
|
||||
Root-Is-Purelib: true
|
||||
Tag: py3-none-any
|
||||
|
||||
@ -1 +0,0 @@
|
||||
importlib_metadata
|
||||
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/libcrypto-1_1.dll
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/libcrypto-1_1.dll
(Stored with Git LFS)
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/libcrypto-3-x64.dll
(Stored with Git LFS)
Normal file
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/libcrypto-3-x64.dll
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/libffi-7.dll
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/libffi-7.dll
(Stored with Git LFS)
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/libffi-8.dll
(Stored with Git LFS)
Normal file
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/libffi-8.dll
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/libsodium-ac42d648.dll
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/libsodium-ac42d648.dll
(Stored with Git LFS)
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/libssl-1_1.dll
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/libssl-1_1.dll
(Stored with Git LFS)
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/libssl-3-x64.dll
(Stored with Git LFS)
Normal file
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/libssl-3-x64.dll
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/libzmq-v141-mt-4_3_4-0a6f51ca.dll
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/libzmq-v141-mt-4_3_4-0a6f51ca.dll
(Stored with Git LFS)
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/llvmlite.libs/msvcp140-8f141b4454fa78db34bc1f28c571b4da.dll
(Stored with Git LFS)
Normal file
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/llvmlite.libs/msvcp140-8f141b4454fa78db34bc1f28c571b4da.dll
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/llvmlite/binding/llvmlite.dll
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/llvmlite/binding/llvmlite.dll
(Stored with Git LFS)
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/lxml/_elementpath.cp310-win_amd64.pyd
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/lxml/_elementpath.cp310-win_amd64.pyd
(Stored with Git LFS)
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/lxml/builder.cp310-win_amd64.pyd
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/lxml/builder.cp310-win_amd64.pyd
(Stored with Git LFS)
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/lxml/etree.cp310-win_amd64.pyd
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/lxml/etree.cp310-win_amd64.pyd
(Stored with Git LFS)
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/lxml/html/_difflib.cp310-win_amd64.pyd
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/lxml/html/_difflib.cp310-win_amd64.pyd
(Stored with Git LFS)
Binary file not shown.
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/lxml/html/diff.cp310-win_amd64.pyd
(Stored with Git LFS)
BIN
CameraAI~/Tools~/CWCameraWorker/_internal/lxml/html/diff.cp310-win_amd64.pyd
(Stored with Git LFS)
Binary file not shown.
@ -1,709 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Copyright © ISO/IEC 2015 -->
|
||||
<!--
|
||||
The following permission notice and disclaimer shall be included in all
|
||||
copies of this XML schema ("the Schema"), and derivations of the Schema:
|
||||
|
||||
Permission is hereby granted, free of charge in perpetuity, to any
|
||||
person obtaining a copy of the Schema, to use, copy, modify, merge and
|
||||
distribute free of charge, copies of the Schema for the purposes of
|
||||
developing, implementing, installing and using software based on the
|
||||
Schema, and to permit persons to whom the Schema is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
THE SCHEMA IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
||||
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SCHEMA OR THE USE OR
|
||||
OTHER DEALINGS IN THE SCHEMA.
|
||||
|
||||
In addition, any modified copy of the Schema shall include the following
|
||||
notice:
|
||||
|
||||
"THIS SCHEMA HAS BEEN MODIFIED FROM THE SCHEMA DEFINED IN ISO/IEC 19757-3,
|
||||
AND SHOULD NOT BE INTERPRETED AS COMPLYING WITH THAT STANDARD".
|
||||
-->
|
||||
<grammar ns="http://purl.oclc.org/dsdl/schematron" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
||||
<start>
|
||||
<ref name="schema"/>
|
||||
</start>
|
||||
<!-- Element declarations -->
|
||||
<define name="schema">
|
||||
<element name="schema">
|
||||
<optional>
|
||||
<attribute name="id">
|
||||
<data type="ID"/>
|
||||
</attribute>
|
||||
</optional>
|
||||
<ref name="rich"/>
|
||||
<optional>
|
||||
<attribute name="schemaVersion">
|
||||
<ref name="non-empty-string"/>
|
||||
</attribute>
|
||||
</optional>
|
||||
<optional>
|
||||
<attribute name="defaultPhase">
|
||||
<data type="IDREF"/>
|
||||
</attribute>
|
||||
</optional>
|
||||
<optional>
|
||||
<attribute name="queryBinding">
|
||||
<ref name="non-empty-string"/>
|
||||
</attribute>
|
||||
</optional>
|
||||
<interleave>
|
||||
<ref name="foreign"/>
|
||||
<zeroOrMore>
|
||||
<ref name="inclusion"/>
|
||||
</zeroOrMore>
|
||||
<group>
|
||||
<optional>
|
||||
<ref name="title"/>
|
||||
</optional>
|
||||
<zeroOrMore>
|
||||
<ref name="ns"/>
|
||||
</zeroOrMore>
|
||||
<zeroOrMore>
|
||||
<ref name="p"/>
|
||||
</zeroOrMore>
|
||||
<zeroOrMore>
|
||||
<ref name="let"/>
|
||||
</zeroOrMore>
|
||||
<zeroOrMore>
|
||||
<ref name="phase"/>
|
||||
</zeroOrMore>
|
||||
<oneOrMore>
|
||||
<ref name="pattern"/>
|
||||
</oneOrMore>
|
||||
<zeroOrMore>
|
||||
<ref name="p"/>
|
||||
</zeroOrMore>
|
||||
<optional>
|
||||
<ref name="diagnostics"/>
|
||||
</optional>
|
||||
<optional>
|
||||
<!-- edited (lxml): required in standard, optional here (since it can be empty anyway) -->
|
||||
<ref name="properties"/>
|
||||
</optional>
|
||||
</group>
|
||||
</interleave>
|
||||
</element>
|
||||
</define>
|
||||
<define name="active">
|
||||
<element name="active">
|
||||
<attribute name="pattern">
|
||||
<data type="IDREF"/>
|
||||
</attribute>
|
||||
<interleave>
|
||||
<ref name="foreign"/>
|
||||
<zeroOrMore>
|
||||
<choice>
|
||||
<text/>
|
||||
<ref name="dir"/>
|
||||
<ref name="emph"/>
|
||||
<ref name="span"/>
|
||||
</choice>
|
||||
</zeroOrMore>
|
||||
</interleave>
|
||||
</element>
|
||||
</define>
|
||||
<define name="assert">
|
||||
<element name="assert">
|
||||
<attribute name="test">
|
||||
<ref name="exprValue"/>
|
||||
</attribute>
|
||||
<optional>
|
||||
<attribute name="flag">
|
||||
<ref name="flagValue"/>
|
||||
</attribute>
|
||||
</optional>
|
||||
<optional>
|
||||
<attribute name="id">
|
||||
<data type="ID"/>
|
||||
</attribute>
|
||||
</optional>
|
||||
<optional>
|
||||
<attribute name="diagnostics">
|
||||
<data type="IDREFS"/>
|
||||
</attribute>
|
||||
</optional>
|
||||
<optional>
|
||||
<attribute name="properties">
|
||||
<data type="IDREFS"/>
|
||||
</attribute>
|
||||
</optional>
|
||||
<ref name="rich"/>
|
||||
<ref name="linkable"/>
|
||||
<interleave>
|
||||
<ref name="foreign"/>
|
||||
<zeroOrMore>
|
||||
<choice>
|
||||
<text/>
|
||||
<ref name="name"/>
|
||||
<ref name="value-of"/>
|
||||
<ref name="emph"/>
|
||||
<ref name="dir"/>
|
||||
<ref name="span"/>
|
||||
</choice>
|
||||
</zeroOrMore>
|
||||
</interleave>
|
||||
</element>
|
||||
</define>
|
||||
<define name="diagnostic">
|
||||
<element name="diagnostic">
|
||||
<attribute name="id">
|
||||
<data type="ID"/>
|
||||
</attribute>
|
||||
<ref name="rich"/>
|
||||
<interleave>
|
||||
<ref name="foreign"/>
|
||||
<zeroOrMore>
|
||||
<choice>
|
||||
<text/>
|
||||
<ref name="value-of"/>
|
||||
<ref name="emph"/>
|
||||
<ref name="dir"/>
|
||||
<ref name="span"/>
|
||||
</choice>
|
||||
</zeroOrMore>
|
||||
</interleave>
|
||||
</element>
|
||||
</define>
|
||||
<define name="diagnostics">
|
||||
<element name="diagnostics">
|
||||
<interleave>
|
||||
<ref name="foreign"/>
|
||||
<zeroOrMore>
|
||||
<ref name="inclusion"/>
|
||||
</zeroOrMore>
|
||||
<zeroOrMore>
|
||||
<ref name="diagnostic"/>
|
||||
</zeroOrMore>
|
||||
</interleave>
|
||||
</element>
|
||||
</define>
|
||||
<define name="dir">
|
||||
<element name="dir">
|
||||
<optional>
|
||||
<attribute name="value">
|
||||
<choice>
|
||||
<value>ltr</value>
|
||||
<value>rtl</value>
|
||||
</choice>
|
||||
</attribute>
|
||||
</optional>
|
||||
<interleave>
|
||||
<ref name="foreign"/>
|
||||
<text/>
|
||||
</interleave>
|
||||
</element>
|
||||
</define>
|
||||
<define name="emph">
|
||||
<element name="emph">
|
||||
<text/>
|
||||
</element>
|
||||
</define>
|
||||
<define name="extends">
|
||||
<element name="extends">
|
||||
<choice>
|
||||
<attribute name="rule">
|
||||
<data type="IDREF"/>
|
||||
</attribute>
|
||||
<attribute name="href">
|
||||
<ref name="uriValue"/>
|
||||
</attribute>
|
||||
</choice>
|
||||
<ref name="foreign-empty"/>
|
||||
</element>
|
||||
</define>
|
||||
<define name="let">
|
||||
<element name="let">
|
||||
<attribute name="name">
|
||||
<ref name="nameValue"/>
|
||||
</attribute>
|
||||
<choice>
|
||||
<attribute name="value">
|
||||
<data type="string" datatypeLibrary=""/>
|
||||
</attribute>
|
||||
<oneOrMore>
|
||||
<ref name="foreign-element"/>
|
||||
</oneOrMore>
|
||||
</choice>
|
||||
</element>
|
||||
</define>
|
||||
<define name="name">
|
||||
<element name="name">
|
||||
<optional>
|
||||
<attribute name="path">
|
||||
<ref name="pathValue"/>
|
||||
</attribute>
|
||||
</optional>
|
||||
<ref name="foreign-empty"/>
|
||||
</element>
|
||||
</define>
|
||||
<define name="ns">
|
||||
<element name="ns">
|
||||
<attribute name="uri">
|
||||
<ref name="uriValue"/>
|
||||
</attribute>
|
||||
<attribute name="prefix">
|
||||
<ref name="nameValue"/>
|
||||
</attribute>
|
||||
<ref name="foreign-empty"/>
|
||||
</element>
|
||||
</define>
|
||||
<define name="p">
|
||||
<element name="p">
|
||||
<optional>
|
||||
<attribute name="id">
|
||||
<data type="ID"/>
|
||||
</attribute>
|
||||
</optional>
|
||||
<optional>
|
||||
<attribute name="class">
|
||||
<ref name="classValue"/>
|
||||
</attribute>
|
||||
</optional>
|
||||
<optional>
|
||||
<attribute name="icon">
|
||||
<ref name="uriValue"/>
|
||||
</attribute>
|
||||
</optional>
|
||||
<interleave>
|
||||
<ref name="foreign"/>
|
||||
<zeroOrMore>
|
||||
<choice>
|
||||
<text/>
|
||||
<ref name="dir"/>
|
||||
<ref name="emph"/>
|
||||
<ref name="span"/>
|
||||
</choice>
|
||||
</zeroOrMore>
|
||||
</interleave>
|
||||
</element>
|
||||
</define>
|
||||
<define name="param">
|
||||
<element name="param">
|
||||
<attribute name="name">
|
||||
<ref name="nameValue"/>
|
||||
</attribute>
|
||||
<attribute name="value">
|
||||
<ref name="non-empty-string"/>
|
||||
</attribute>
|
||||
</element>
|
||||
</define>
|
||||
<define name="pattern">
|
||||
<element name="pattern">
|
||||
<optional>
|
||||
<attribute name="documents">
|
||||
<ref name="pathValue"/>
|
||||
</attribute>
|
||||
</optional>
|
||||
<ref name="rich"/>
|
||||
<interleave>
|
||||
<ref name="foreign"/>
|
||||
<zeroOrMore>
|
||||
<ref name="inclusion"/>
|
||||
</zeroOrMore>
|
||||
<choice>
|
||||
<group>
|
||||
<attribute name="abstract">
|
||||
<value>true</value>
|
||||
</attribute>
|
||||
<attribute name="id">
|
||||
<data type="ID"/>
|
||||
</attribute>
|
||||
<optional>
|
||||
<ref name="title"/>
|
||||
</optional>
|
||||
<group>
|
||||
<zeroOrMore>
|
||||
<ref name="p"/>
|
||||
</zeroOrMore>
|
||||
<zeroOrMore>
|
||||
<ref name="let"/>
|
||||
</zeroOrMore>
|
||||
<zeroOrMore>
|
||||
<ref name="rule"/>
|
||||
</zeroOrMore>
|
||||
</group>
|
||||
</group>
|
||||
<group>
|
||||
<optional>
|
||||
<attribute name="abstract">
|
||||
<value>false</value>
|
||||
</attribute>
|
||||
</optional>
|
||||
<optional>
|
||||
<attribute name="id">
|
||||
<data type="ID"/>
|
||||
</attribute>
|
||||
</optional>
|
||||
<optional>
|
||||
<ref name="title"/>
|
||||
</optional>
|
||||
<group>
|
||||
<zeroOrMore>
|
||||
<ref name="p"/>
|
||||
</zeroOrMore>
|
||||
<zeroOrMore>
|
||||
<ref name="let"/>
|
||||
</zeroOrMore>
|
||||
<zeroOrMore>
|
||||
<ref name="rule"/>
|
||||
</zeroOrMore>
|
||||
</group>
|
||||
</group>
|
||||
<group>
|
||||
<optional>
|
||||
<attribute name="abstract">
|
||||
<value>false</value>
|
||||
</attribute>
|
||||
</optional>
|
||||
<attribute name="is-a">
|
||||
<data type="IDREF"/>
|
||||
</attribute>
|
||||
<optional>
|
||||
<attribute name="id">
|
||||
<data type="ID"/>
|
||||
</attribute>
|
||||
</optional>
|
||||
<optional>
|
||||
<ref name="title"/>
|
||||
</optional>
|
||||
<group>
|
||||
<zeroOrMore>
|
||||
<ref name="p"/>
|
||||
</zeroOrMore>
|
||||
<zeroOrMore>
|
||||
<ref name="param"/>
|
||||
</zeroOrMore>
|
||||
</group>
|
||||
</group>
|
||||
</choice>
|
||||
</interleave>
|
||||
</element>
|
||||
</define>
|
||||
<define name="phase">
|
||||
<element name="phase">
|
||||
<attribute name="id">
|
||||
<data type="ID"/>
|
||||
</attribute>
|
||||
<ref name="rich"/>
|
||||
<interleave>
|
||||
<ref name="foreign"/>
|
||||
<zeroOrMore>
|
||||
<ref name="inclusion"/>
|
||||
</zeroOrMore>
|
||||
<group>
|
||||
<zeroOrMore>
|
||||
<ref name="p"/>
|
||||
</zeroOrMore>
|
||||
<zeroOrMore>
|
||||
<ref name="let"/>
|
||||
</zeroOrMore>
|
||||
<zeroOrMore>
|
||||
<ref name="active"/>
|
||||
</zeroOrMore>
|
||||
</group>
|
||||
</interleave>
|
||||
</element>
|
||||
</define>
|
||||
<define name="properties">
|
||||
<element name="properties">
|
||||
<zeroOrMore>
|
||||
<ref name="property"/>
|
||||
</zeroOrMore>
|
||||
</element>
|
||||
</define>
|
||||
<define name="property">
|
||||
<element name="property">
|
||||
<attribute name="id">
|
||||
<data type="ID"/>
|
||||
</attribute>
|
||||
<optional>
|
||||
<attribute name="role">
|
||||
<ref name="roleValue"/>
|
||||
</attribute>
|
||||
</optional>
|
||||
<optional>
|
||||
<attribute name="scheme"/>
|
||||
</optional>
|
||||
<interleave>
|
||||
<ref name="foreign"/>
|
||||
<zeroOrMore>
|
||||
<choice>
|
||||
<text/>
|
||||
<ref name="name"/>
|
||||
<ref name="value-of"/>
|
||||
<ref name="emph"/>
|
||||
<ref name="dir"/>
|
||||
<ref name="span"/>
|
||||
</choice>
|
||||
</zeroOrMore>
|
||||
</interleave>
|
||||
</element>
|
||||
</define>
|
||||
<define name="report">
|
||||
<element name="report">
|
||||
<attribute name="test">
|
||||
<ref name="exprValue"/>
|
||||
</attribute>
|
||||
<optional>
|
||||
<attribute name="flag">
|
||||
<ref name="flagValue"/>
|
||||
</attribute>
|
||||
</optional>
|
||||
<optional>
|
||||
<attribute name="id">
|
||||
<data type="ID"/>
|
||||
</attribute>
|
||||
</optional>
|
||||
<optional>
|
||||
<attribute name="diagnostics">
|
||||
<data type="IDREFS"/>
|
||||
</attribute>
|
||||
</optional>
|
||||
<optional>
|
||||
<attribute name="properties">
|
||||
<data type="IDREFS"/>
|
||||
</attribute>
|
||||
</optional>
|
||||
<ref name="rich"/>
|
||||
<ref name="linkable"/>
|
||||
<interleave>
|
||||
<ref name="foreign"/>
|
||||
<zeroOrMore>
|
||||
<choice>
|
||||
<text/>
|
||||
<ref name="name"/>
|
||||
<ref name="value-of"/>
|
||||
<ref name="emph"/>
|
||||
<ref name="dir"/>
|
||||
<ref name="span"/>
|
||||
</choice>
|
||||
</zeroOrMore>
|
||||
</interleave>
|
||||
</element>
|
||||
</define>
|
||||
<define name="rule">
|
||||
<element name="rule">
|
||||
<optional>
|
||||
<attribute name="flag">
|
||||
<ref name="flagValue"/>
|
||||
</attribute>
|
||||
</optional>
|
||||
<ref name="rich"/>
|
||||
<ref name="linkable"/>
|
||||
<interleave>
|
||||
<ref name="foreign"/>
|
||||
<zeroOrMore>
|
||||
<ref name="inclusion"/>
|
||||
</zeroOrMore>
|
||||
<choice>
|
||||
<group>
|
||||
<attribute name="abstract">
|
||||
<value>true</value>
|
||||
</attribute>
|
||||
<attribute name="id">
|
||||
<data type="ID"/>
|
||||
</attribute>
|
||||
<zeroOrMore>
|
||||
<ref name="let"/>
|
||||
</zeroOrMore>
|
||||
<oneOrMore>
|
||||
<choice>
|
||||
<ref name="assert"/>
|
||||
<ref name="report"/>
|
||||
<ref name="extends"/>
|
||||
<ref name="p"/>
|
||||
</choice>
|
||||
</oneOrMore>
|
||||
</group>
|
||||
<group>
|
||||
<attribute name="context">
|
||||
<ref name="pathValue"/>
|
||||
</attribute>
|
||||
<optional>
|
||||
<attribute name="id">
|
||||
<data type="ID"/>
|
||||
</attribute>
|
||||
</optional>
|
||||
<optional>
|
||||
<attribute name="abstract">
|
||||
<value>false</value>
|
||||
</attribute>
|
||||
</optional>
|
||||
<zeroOrMore>
|
||||
<ref name="let"/>
|
||||
</zeroOrMore>
|
||||
<oneOrMore>
|
||||
<choice>
|
||||
<ref name="assert"/>
|
||||
<ref name="report"/>
|
||||
<ref name="extends"/>
|
||||
<ref name="p"/>
|
||||
</choice>
|
||||
</oneOrMore>
|
||||
</group>
|
||||
</choice>
|
||||
</interleave>
|
||||
</element>
|
||||
</define>
|
||||
<define name="span">
|
||||
<element name="span">
|
||||
<attribute name="class">
|
||||
<ref name="classValue"/>
|
||||
</attribute>
|
||||
<interleave>
|
||||
<ref name="foreign"/>
|
||||
<text/>
|
||||
</interleave>
|
||||
</element>
|
||||
</define>
|
||||
<define name="title">
|
||||
<element name="title">
|
||||
<zeroOrMore>
|
||||
<choice>
|
||||
<text/>
|
||||
<ref name="dir"/>
|
||||
</choice>
|
||||
</zeroOrMore>
|
||||
</element>
|
||||
</define>
|
||||
<define name="value-of">
|
||||
<element name="value-of">
|
||||
<attribute name="select">
|
||||
<ref name="pathValue"/>
|
||||
</attribute>
|
||||
<ref name="foreign-empty"/>
|
||||
</element>
|
||||
</define>
|
||||
<!-- common declarations -->
|
||||
<define name="inclusion">
|
||||
<element name="include">
|
||||
<attribute name="href">
|
||||
<ref name="uriValue"/>
|
||||
</attribute>
|
||||
<ref name="foreign-empty"/>
|
||||
</element>
|
||||
</define>
|
||||
<define name="rich">
|
||||
<optional>
|
||||
<attribute name="icon">
|
||||
<ref name="uriValue"/>
|
||||
</attribute>
|
||||
</optional>
|
||||
<optional>
|
||||
<attribute name="see">
|
||||
<ref name="uriValue"/>
|
||||
</attribute>
|
||||
</optional>
|
||||
<optional>
|
||||
<attribute name="fpi">
|
||||
<ref name="fpiValue"/>
|
||||
</attribute>
|
||||
</optional>
|
||||
<optional>
|
||||
<attribute name="xml:lang">
|
||||
<ref name="langValue"/>
|
||||
</attribute>
|
||||
</optional>
|
||||
<optional>
|
||||
<attribute name="xml:space">
|
||||
<choice>
|
||||
<value>preserve</value>
|
||||
<value>default</value>
|
||||
</choice>
|
||||
</attribute>
|
||||
</optional>
|
||||
</define>
|
||||
<define name="linkable">
|
||||
<optional>
|
||||
<attribute name="role">
|
||||
<ref name="roleValue"/>
|
||||
</attribute>
|
||||
</optional>
|
||||
<optional>
|
||||
<attribute name="subject">
|
||||
<ref name="pathValue"/>
|
||||
</attribute>
|
||||
</optional>
|
||||
</define>
|
||||
<define name="foreign">
|
||||
<ref name="foreign-attributes"/>
|
||||
<zeroOrMore>
|
||||
<ref name="foreign-element"/>
|
||||
</zeroOrMore>
|
||||
</define>
|
||||
<define name="foreign-empty">
|
||||
<ref name="foreign-attributes"/>
|
||||
</define>
|
||||
<define name="foreign-attributes">
|
||||
<zeroOrMore>
|
||||
<attribute>
|
||||
<anyName>
|
||||
<except>
|
||||
<nsName ns=""/>
|
||||
<nsName ns="http://www.w3.org/XML/1998/namespace"/>
|
||||
</except>
|
||||
</anyName>
|
||||
</attribute>
|
||||
</zeroOrMore>
|
||||
</define>
|
||||
<define name="foreign-element">
|
||||
<element>
|
||||
<anyName>
|
||||
<except>
|
||||
<nsName/>
|
||||
</except>
|
||||
</anyName>
|
||||
<zeroOrMore>
|
||||
<choice>
|
||||
<attribute>
|
||||
<anyName/>
|
||||
</attribute>
|
||||
<ref name="foreign-element"/>
|
||||
<ref name="schema"/>
|
||||
<text/>
|
||||
</choice>
|
||||
</zeroOrMore>
|
||||
</element>
|
||||
</define>
|
||||
<!-- Data types -->
|
||||
<define name="uriValue">
|
||||
<data type="anyURI"/>
|
||||
</define>
|
||||
<define name="pathValue">
|
||||
<data type="string" datatypeLibrary=""/>
|
||||
</define>
|
||||
<define name="exprValue">
|
||||
<data type="string" datatypeLibrary=""/>
|
||||
</define>
|
||||
<define name="fpiValue">
|
||||
<data type="string" datatypeLibrary=""/>
|
||||
</define>
|
||||
<define name="langValue">
|
||||
<data type="language"/>
|
||||
</define>
|
||||
<define name="roleValue">
|
||||
<data type="string" datatypeLibrary=""/>
|
||||
</define>
|
||||
<define name="flagValue">
|
||||
<data type="string" datatypeLibrary=""/>
|
||||
</define>
|
||||
<define name="nameValue">
|
||||
<data type="string" datatypeLibrary=""/>
|
||||
</define>
|
||||
<!-- In the default query language binding, xsd:NCNAME -->
|
||||
<define name="classValue">
|
||||
<data type="string" datatypeLibrary=""/>
|
||||
</define>
|
||||
<define name="non-empty-string">
|
||||
<data type="token">
|
||||
<param name="minLength">1</param>
|
||||
</data>
|
||||
</define>
|
||||
</grammar>
|
||||
@ -1,75 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Stylesheet for extracting Schematron information from a RELAX-NG schema.
|
||||
Based on the stylesheet for extracting Schematron information from W3C XML Schema.
|
||||
Created by Eddie Robertsson 2002/06/01
|
||||
2009/12/10 hj: changed Schematron namespace to ISO URI (Holger Joukl)
|
||||
-->
|
||||
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:rng="http://relaxng.org/ns/structure/1.0">
|
||||
<!-- Set the output to be XML with an XML declaration and use indentation -->
|
||||
<xsl:output method="xml" omit-xml-declaration="no" indent="yes" standalone="yes"/>
|
||||
<!-- -->
|
||||
<!-- match schema and call recursive template to extract included schemas -->
|
||||
<!-- -->
|
||||
<xsl:template match="/rng:grammar | /rng:element">
|
||||
<!-- call the schema definition template ... -->
|
||||
<xsl:call-template name="gatherSchema">
|
||||
<!-- ... with current node as the $schemas parameter ... -->
|
||||
<xsl:with-param name="schemas" select="."/>
|
||||
<!-- ... and any includes in the $include parameter -->
|
||||
<xsl:with-param name="includes" select="document(/rng:grammar/rng:include/@href
|
||||
| //rng:externalRef/@href)"/>
|
||||
</xsl:call-template>
|
||||
</xsl:template>
|
||||
<!-- -->
|
||||
<!-- gather all included schemas into a single parameter variable -->
|
||||
<!-- -->
|
||||
<xsl:template name="gatherSchema">
|
||||
<xsl:param name="schemas"/>
|
||||
<xsl:param name="includes"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="count($schemas) < count($schemas | $includes)">
|
||||
<!-- when $includes includes something new, recurse ... -->
|
||||
<xsl:call-template name="gatherSchema">
|
||||
<!-- ... with current $includes added to the $schemas parameter ... -->
|
||||
<xsl:with-param name="schemas" select="$schemas | $includes"/>
|
||||
<!-- ... and any *new* includes in the $include parameter -->
|
||||
<xsl:with-param name="includes" select="document($includes/rng:grammar/rng:include/@href
|
||||
| $includes//rng:externalRef/@href)"/>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<!-- we have the complete set of included schemas, so now let's output the embedded schematron -->
|
||||
<xsl:call-template name="output">
|
||||
<xsl:with-param name="schemas" select="$schemas"/>
|
||||
</xsl:call-template>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
<!-- -->
|
||||
<!-- output the schematron information -->
|
||||
<!-- -->
|
||||
<xsl:template name="output">
|
||||
<xsl:param name="schemas"/>
|
||||
<!-- -->
|
||||
<sch:schema>
|
||||
<!-- get header-type elements - eg title and especially ns -->
|
||||
<!-- title (just one) -->
|
||||
<xsl:copy-of select="$schemas//sch:title[1]"/>
|
||||
<!-- get remaining schematron schema children -->
|
||||
<!-- get non-blank namespace elements, dropping duplicates -->
|
||||
<xsl:for-each select="$schemas//sch:ns">
|
||||
<xsl:if test="generate-id(.) = generate-id($schemas//sch:ns[@prefix = current()/@prefix][1])">
|
||||
<xsl:copy-of select="."/>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
<xsl:copy-of select="$schemas//sch:phase"/>
|
||||
<xsl:copy-of select="$schemas//sch:pattern"/>
|
||||
<sch:diagnostics>
|
||||
<xsl:copy-of select="$schemas//sch:diagnostics/*"/>
|
||||
</sch:diagnostics>
|
||||
</sch:schema>
|
||||
</xsl:template>
|
||||
<!-- -->
|
||||
</xsl:transform>
|
||||
@ -1,77 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
based on an original transform by Eddie Robertsson
|
||||
2001/04/21 fn: added support for included schemas
|
||||
2001/06/27 er: changed XMl Schema prefix from xsd: to xs: and changed to the Rec namespace
|
||||
2009/12/10 hj: changed Schematron namespace to ISO URI (Holger Joukl)
|
||||
-->
|
||||
<xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
||||
<!-- Set the output to be XML with an XML declaration and use indentation -->
|
||||
<xsl:output method="xml" omit-xml-declaration="no" indent="yes" standalone="yes"/>
|
||||
<!-- -->
|
||||
<!-- match schema and call recursive template to extract included schemas -->
|
||||
<!-- -->
|
||||
<xsl:template match="xs:schema">
|
||||
<!-- call the schema definition template ... -->
|
||||
<xsl:call-template name="gatherSchema">
|
||||
<!-- ... with current current root as the $schemas parameter ... -->
|
||||
<xsl:with-param name="schemas" select="/"/>
|
||||
<!-- ... and any includes in the $include parameter -->
|
||||
<xsl:with-param name="includes"
|
||||
select="document(/xs:schema/xs:*[self::xs:include or self::xs:import or self::xs:redefine]/@schemaLocation)"/>
|
||||
</xsl:call-template>
|
||||
</xsl:template>
|
||||
<!-- -->
|
||||
<!-- gather all included schemas into a single parameter variable -->
|
||||
<!-- -->
|
||||
<xsl:template name="gatherSchema">
|
||||
<xsl:param name="schemas"/>
|
||||
<xsl:param name="includes"/>
|
||||
<xsl:choose>
|
||||
<xsl:when test="count($schemas) < count($schemas | $includes)">
|
||||
<!-- when $includes includes something new, recurse ... -->
|
||||
<xsl:call-template name="gatherSchema">
|
||||
<!-- ... with current $includes added to the $schemas parameter ... -->
|
||||
<xsl:with-param name="schemas" select="$schemas | $includes"/>
|
||||
<!-- ... and any *new* includes in the $include parameter -->
|
||||
<xsl:with-param name="includes"
|
||||
select="document($includes/xs:schema/xs:*[self::xs:include or self::xs:import or self::xs:redefine]/@schemaLocation)"/>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<!-- we have the complete set of included schemas,
|
||||
so now let's output the embedded schematron -->
|
||||
<xsl:call-template name="output">
|
||||
<xsl:with-param name="schemas" select="$schemas"/>
|
||||
</xsl:call-template>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
<!-- -->
|
||||
<!-- output the schematron information -->
|
||||
<!-- -->
|
||||
<xsl:template name="output">
|
||||
<xsl:param name="schemas"/>
|
||||
<!-- -->
|
||||
<sch:schema>
|
||||
<!-- get header-type elements - eg title and especially ns -->
|
||||
<!-- title (just one) -->
|
||||
<xsl:copy-of select="$schemas//xs:appinfo/sch:title[1]"/>
|
||||
<!-- get remaining schematron schema children -->
|
||||
<!-- get non-blank namespace elements, dropping duplicates -->
|
||||
<xsl:for-each select="$schemas//xs:appinfo/sch:ns">
|
||||
<xsl:if test="generate-id(.) =
|
||||
generate-id($schemas//xs:appinfo/sch:ns[@prefix = current()/@prefix][1])">
|
||||
<xsl:copy-of select="."/>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
<xsl:copy-of select="$schemas//xs:appinfo/sch:phase"/>
|
||||
<xsl:copy-of select="$schemas//xs:appinfo/sch:pattern"/>
|
||||
<sch:diagnostics>
|
||||
<xsl:copy-of select="$schemas//xs:appinfo/sch:diagnostics/*"/>
|
||||
</sch:diagnostics>
|
||||
</sch:schema>
|
||||
</xsl:template>
|
||||
<!-- -->
|
||||
</xsl:transform>
|
||||
@ -1,313 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?><?xar XSLT?>
|
||||
|
||||
<!--
|
||||
OVERVIEW - iso_abstract_expand.xsl
|
||||
|
||||
This is a preprocessor for ISO Schematron, which implements abstract patterns.
|
||||
It also
|
||||
* extracts a particular schema using an ID, where there are multiple
|
||||
schemas, such as when they are embedded in the same NVDL script
|
||||
* allows parameter substitution inside @context, @test, @select, @path
|
||||
* experimentally, allows parameter recognition and substitution inside
|
||||
text (NOTE: to be removed, for compataibility with other implementations,
|
||||
please do not use this)
|
||||
|
||||
This should be used after iso-dsdl-include.xsl and before the skeleton or
|
||||
meta-stylesheet (e.g. iso-svrl.xsl) . It only requires XSLT 1.
|
||||
|
||||
Each kind of inclusion can be turned off (or on) on the command line.
|
||||
|
||||
-->
|
||||
|
||||
<!--
|
||||
Open Source Initiative OSI - The MIT License:Licensing
|
||||
[OSI Approved License]
|
||||
|
||||
This source code was previously available under the zlib/libpng license.
|
||||
Attribution is polite.
|
||||
|
||||
The MIT License
|
||||
|
||||
Copyright (c) 2004-2010 Rick Jellife and Academia Sinica Computing Centre, Taiwan
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
-->
|
||||
|
||||
<!--
|
||||
VERSION INFORMATION
|
||||
2013-09-19 RJ
|
||||
* Allow macro expansion in @path attributes, eg. for sch:name/@path
|
||||
|
||||
2010-07-10 RJ
|
||||
* Move to MIT license
|
||||
|
||||
2008-09-18 RJ
|
||||
* move out param test from iso:schema template to work with XSLT 1. (Noah Fontes)
|
||||
|
||||
2008-07-29 RJ
|
||||
* Create. Pull out as distinct XSL in its own namespace from old iso_pre_pro.xsl
|
||||
* Put everything in private namespace
|
||||
* Rewrite replace_substring named template so that copyright is clear
|
||||
|
||||
2008-07-24 RJ
|
||||
* correct abstract patterns so for correct names: param/@name and
|
||||
param/@value
|
||||
|
||||
2007-01-12 RJ
|
||||
* Use ISO namespace
|
||||
* Use pattern/@id not pattern/@name
|
||||
* Add Oliver Becker's suggests from old Schematron-love-in list for <copy>
|
||||
* Add XT -ism?
|
||||
2003 RJ
|
||||
* Original written for old namespace
|
||||
* http://www.topologi.com/resources/iso-pre-pro.xsl
|
||||
-->
|
||||
<xslt:stylesheet version="1.0" xmlns:xslt="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:iso="http://purl.oclc.org/dsdl/schematron"
|
||||
xmlns:nvdl="http://purl.oclc.org/dsdl/nvdl"
|
||||
|
||||
xmlns:iae="http://www.schematron.com/namespace/iae"
|
||||
|
||||
>
|
||||
|
||||
<xslt:param name="schema-id"></xslt:param>
|
||||
|
||||
|
||||
<!-- Driver for the mode -->
|
||||
<xsl:template match="/">
|
||||
<xsl:apply-templates select="." mode="iae:go" />
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- ================================================================================== -->
|
||||
<!-- Normal processing rules -->
|
||||
<!-- ================================================================================== -->
|
||||
<!-- Output only the selected schema -->
|
||||
<xslt:template match="iso:schema" >
|
||||
<xsl:if test="string-length($schema-id) =0 or @id= $schema-id ">
|
||||
<xslt:copy>
|
||||
<xslt:copy-of select="@*" />
|
||||
<xslt:apply-templates mode="iae:go" />
|
||||
</xslt:copy>
|
||||
</xsl:if>
|
||||
</xslt:template>
|
||||
|
||||
|
||||
<!-- Strip out any foreign elements above the Schematron schema .
|
||||
-->
|
||||
<xslt:template match="*[not(ancestor-or-self::iso:*)]" mode="iae:go" >
|
||||
<xslt:apply-templates mode="iae:go" />
|
||||
</xslt:template>
|
||||
|
||||
|
||||
<!-- ================================================================================== -->
|
||||
<!-- Handle Schematron abstract pattern preprocessing -->
|
||||
<!-- abstract-to-real calls
|
||||
do-pattern calls
|
||||
macro-expand calls
|
||||
multi-macro-expand
|
||||
replace-substring -->
|
||||
<!-- ================================================================================== -->
|
||||
|
||||
<!--
|
||||
Abstract patterns allow you to say, for example
|
||||
|
||||
<pattern name="htmlTable" is-a="table">
|
||||
<param name="row" value="html:tr"/>
|
||||
<param name="cell" value="html:td" />
|
||||
<param name="table" value="html:table" />
|
||||
</pattern>
|
||||
|
||||
For a good introduction, see Uche Ogbujii's article for IBM DeveloperWorks
|
||||
"Discover the flexibility of Schematron abstract patterns"
|
||||
http://www-128.ibm.com/developerworks/xml/library/x-stron.html
|
||||
However, note that ISO Schematron uses @name and @value attributes on
|
||||
the iso:param element, and @id not @name on the pattern element.
|
||||
|
||||
-->
|
||||
|
||||
<!-- Suppress declarations of abstract patterns -->
|
||||
<xslt:template match="iso:pattern[@abstract='true']" mode="iae:go" >
|
||||
<xslt:comment>Suppressed abstract pattern <xslt:value-of select="@id"/> was here</xslt:comment>
|
||||
</xslt:template>
|
||||
|
||||
|
||||
<!-- Suppress uses of abstract patterns -->
|
||||
<xslt:template match="iso:pattern[@is-a]" mode="iae:go" >
|
||||
|
||||
<xslt:comment>Start pattern based on abstract <xslt:value-of select="@is-a"/></xslt:comment>
|
||||
|
||||
<xslt:call-template name="iae:abstract-to-real" >
|
||||
<xslt:with-param name="caller" select="@id" />
|
||||
<xslt:with-param name="is-a" select="@is-a" />
|
||||
</xslt:call-template>
|
||||
|
||||
</xslt:template>
|
||||
|
||||
|
||||
|
||||
<!-- output everything else unchanged -->
|
||||
<xslt:template match="*" priority="-1" mode="iae:go" >
|
||||
<xslt:copy>
|
||||
<xslt:copy-of select="@*" />
|
||||
<xslt:apply-templates mode="iae:go"/>
|
||||
</xslt:copy>
|
||||
</xslt:template>
|
||||
|
||||
<!-- Templates for macro expansion of abstract patterns -->
|
||||
<!-- Sets up the initial conditions for the recursive call -->
|
||||
<xslt:template name="iae:macro-expand">
|
||||
<xslt:param name="caller"/>
|
||||
<xslt:param name="text" />
|
||||
<xslt:call-template name="iae:multi-macro-expand">
|
||||
<xslt:with-param name="caller" select="$caller"/>
|
||||
<xslt:with-param name="text" select="$text"/>
|
||||
<xslt:with-param name="paramNumber" select="1"/>
|
||||
</xslt:call-template>
|
||||
|
||||
</xslt:template>
|
||||
|
||||
<!-- Template to replace the current parameter and then
|
||||
recurse to replace subsequent parameters. -->
|
||||
|
||||
<xslt:template name="iae:multi-macro-expand">
|
||||
<xslt:param name="caller"/>
|
||||
<xslt:param name="text" />
|
||||
<xslt:param name="paramNumber" />
|
||||
|
||||
|
||||
<xslt:choose>
|
||||
<xslt:when test="//iso:pattern[@id=$caller]/iso:param[ $paramNumber]">
|
||||
|
||||
<xslt:call-template name="iae:multi-macro-expand">
|
||||
<xslt:with-param name="caller" select="$caller"/>
|
||||
<xslt:with-param name="paramNumber" select="$paramNumber + 1"/>
|
||||
<xslt:with-param name="text" >
|
||||
<xslt:call-template name="iae:replace-substring">
|
||||
<xslt:with-param name="original" select="$text"/>
|
||||
<xslt:with-param name="substring"
|
||||
select="concat('$', //iso:pattern[@id=$caller]/iso:param[ $paramNumber ]/@name)"/>
|
||||
<xslt:with-param name="replacement"
|
||||
select="//iso:pattern[@id=$caller]/iso:param[ $paramNumber ]/@value"/>
|
||||
</xslt:call-template>
|
||||
</xslt:with-param>
|
||||
</xslt:call-template>
|
||||
</xslt:when>
|
||||
<xslt:otherwise><xslt:value-of select="$text" /></xslt:otherwise>
|
||||
|
||||
</xslt:choose>
|
||||
</xslt:template>
|
||||
|
||||
|
||||
<!-- generate the real pattern from an abstract pattern + parameters-->
|
||||
<xslt:template name="iae:abstract-to-real" >
|
||||
<xslt:param name="caller"/>
|
||||
<xslt:param name="is-a" />
|
||||
<xslt:for-each select="//iso:pattern[@id= $is-a]">
|
||||
<xslt:copy>
|
||||
|
||||
<xslt:choose>
|
||||
<xslt:when test=" string-length( $caller ) = 0">
|
||||
<xslt:attribute name="id"><xslt:value-of select="concat( generate-id(.) , $is-a)" /></xslt:attribute>
|
||||
</xslt:when>
|
||||
<xslt:otherwise>
|
||||
<xslt:attribute name="id"><xslt:value-of select="$caller" /></xslt:attribute>
|
||||
</xslt:otherwise>
|
||||
</xslt:choose>
|
||||
|
||||
<xslt:apply-templates select="*|text()" mode="iae:do-pattern" >
|
||||
<xslt:with-param name="caller"><xslt:value-of select="$caller"/></xslt:with-param>
|
||||
</xslt:apply-templates>
|
||||
|
||||
</xslt:copy>
|
||||
</xslt:for-each>
|
||||
</xslt:template>
|
||||
|
||||
|
||||
<!-- Generate a non-abstract pattern -->
|
||||
<xslt:template mode="iae:do-pattern" match="*">
|
||||
<xslt:param name="caller"/>
|
||||
<xslt:copy>
|
||||
<xslt:for-each select="@*[name()='test' or name()='context' or name()='select' or name()='path' ]">
|
||||
<xslt:attribute name="{name()}">
|
||||
<xslt:call-template name="iae:macro-expand">
|
||||
<xslt:with-param name="text"><xslt:value-of select="."/></xslt:with-param>
|
||||
<xslt:with-param name="caller"><xslt:value-of select="$caller"/></xslt:with-param>
|
||||
</xslt:call-template>
|
||||
</xslt:attribute>
|
||||
</xslt:for-each>
|
||||
<xslt:copy-of select="@*[name()!='test'][name()!='context'][name()!='select'][name()!='path']" />
|
||||
<xsl:for-each select="node()">
|
||||
<xsl:choose>
|
||||
<!-- Experiment: replace macros in text as well, to allow parameterized assertions
|
||||
and so on, without having to have spurious <iso:value-of> calls and multiple
|
||||
delimiting.
|
||||
NOTE: THIS FUNCTIONALITY WILL BE REMOVED IN THE FUTURE -->
|
||||
<xsl:when test="self::text()">
|
||||
<xslt:call-template name="iae:macro-expand">
|
||||
<xslt:with-param name="text"><xslt:value-of select="."/></xslt:with-param>
|
||||
<xslt:with-param name="caller"><xslt:value-of select="$caller"/></xslt:with-param>
|
||||
</xslt:call-template>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xslt:apply-templates select="." mode="iae:do-pattern">
|
||||
<xslt:with-param name="caller"><xslt:value-of select="$caller"/></xslt:with-param>
|
||||
</xslt:apply-templates>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:for-each>
|
||||
</xslt:copy>
|
||||
</xslt:template>
|
||||
|
||||
<!-- UTILITIES -->
|
||||
<!-- Simple version of replace-substring function -->
|
||||
<xslt:template name="iae:replace-substring">
|
||||
<xslt:param name="original" />
|
||||
<xslt:param name="substring" />
|
||||
<xslt:param name="replacement" select="''"/>
|
||||
|
||||
<xsl:choose>
|
||||
<xsl:when test="not($original)" />
|
||||
<xsl:when test="not(string($substring))">
|
||||
<xsl:value-of select="$original" />
|
||||
</xsl:when>
|
||||
<xsl:when test="contains($original, $substring)">
|
||||
<xsl:variable name="before" select="substring-before($original, $substring)" />
|
||||
<xsl:variable name="after" select="substring-after($original, $substring)" />
|
||||
|
||||
<xsl:value-of select="$before" />
|
||||
<xsl:value-of select="$replacement" />
|
||||
<!-- recursion -->
|
||||
<xsl:call-template name="iae:replace-substring">
|
||||
<xsl:with-param name="original" select="$after" />
|
||||
<xsl:with-param name="substring" select="$substring" />
|
||||
<xsl:with-param name="replacement" select="$replacement" />
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<!-- no substitution -->
|
||||
<xsl:value-of select="$original" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xslt:template>
|
||||
|
||||
|
||||
|
||||
</xslt:stylesheet>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user