vws-python 2026.8.14__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- vws/__init__.py +21 -0
- vws/_async_vws_request.py +77 -0
- vws/_image_utils.py +18 -0
- vws/_model_targets.py +323 -0
- vws/_reco_counts.py +80 -0
- vws/_vws_request.py +76 -0
- vws/async_model_target_service.py +381 -0
- vws/async_query.py +224 -0
- vws/async_vumark_service.py +155 -0
- vws/async_vws.py +752 -0
- vws/exceptions/__init__.py +1 -0
- vws/exceptions/base_exceptions.py +74 -0
- vws/exceptions/cloud_reco_exceptions.py +44 -0
- vws/exceptions/custom_exceptions.py +107 -0
- vws/exceptions/model_target_exceptions.py +210 -0
- vws/exceptions/vws_exceptions.py +256 -0
- vws/include_target_data.py +18 -0
- vws/model_target_datasets.py +152 -0
- vws/model_target_service.py +366 -0
- vws/py.typed +0 -0
- vws/query.py +194 -0
- vws/reports.py +391 -0
- vws/response.py +19 -0
- vws/transports.py +315 -0
- vws/vumark_accept.py +18 -0
- vws/vumark_service.py +138 -0
- vws/vws.py +719 -0
- vws_python-2026.8.14.dist-info/METADATA +152 -0
- vws_python-2026.8.14.dist-info/RECORD +32 -0
- vws_python-2026.8.14.dist-info/WHEEL +5 -0
- vws_python-2026.8.14.dist-info/licenses/LICENSE +21 -0
- vws_python-2026.8.14.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: vws-python
|
|
3
|
+
Version: 2026.8.14
|
|
4
|
+
Summary: Interact with the Vuforia Web Services (VWS) API.
|
|
5
|
+
Author-email: Adam Dangoor <adamdangoor@gmail.com>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Documentation, https://vws-python.github.io/vws-python/
|
|
8
|
+
Project-URL: Source, https://github.com/VWS-Python/vws-python
|
|
9
|
+
Keywords: client,vuforia,vws
|
|
10
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
11
|
+
Classifier: Environment :: Web Environment
|
|
12
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
13
|
+
Classifier: Operating System :: POSIX
|
|
14
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
16
|
+
Requires-Python: >=3.14
|
|
17
|
+
Description-Content-Type: text/x-rst
|
|
18
|
+
License-File: LICENSE
|
|
19
|
+
Requires-Dist: beartype>=0.22.9
|
|
20
|
+
Requires-Dist: httpx>=0.28.0
|
|
21
|
+
Requires-Dist: requests>=2.32.3
|
|
22
|
+
Requires-Dist: urllib3>=2.2.3
|
|
23
|
+
Requires-Dist: vws-auth-tools>=2024.7.12
|
|
24
|
+
Provides-Extra: dev
|
|
25
|
+
Requires-Dist: actionlint-py==1.7.12.24; extra == "dev"
|
|
26
|
+
Requires-Dist: check-manifest==0.51; extra == "dev"
|
|
27
|
+
Requires-Dist: deptry==0.25.1; extra == "dev"
|
|
28
|
+
Requires-Dist: doc8==2.0.0; extra == "dev"
|
|
29
|
+
Requires-Dist: doccmd==2026.7.19; extra == "dev"
|
|
30
|
+
Requires-Dist: freezegun==1.5.5; extra == "dev"
|
|
31
|
+
Requires-Dist: furo==2025.12.19; extra == "dev"
|
|
32
|
+
Requires-Dist: interrogate==1.7.0; extra == "dev"
|
|
33
|
+
Requires-Dist: mypy[faster-cache]==2.3.0; extra == "dev"
|
|
34
|
+
Requires-Dist: mypy-strict-kwargs==2026.7.19.1; extra == "dev"
|
|
35
|
+
Requires-Dist: no-defaults==2.1.0; extra == "dev"
|
|
36
|
+
Requires-Dist: prek==0.4.13; extra == "dev"
|
|
37
|
+
Requires-Dist: pydocstringformatter==1.0.0; extra == "dev"
|
|
38
|
+
Requires-Dist: pydocstyle==6.3; extra == "dev"
|
|
39
|
+
Requires-Dist: pygments==2.20.0; extra == "dev"
|
|
40
|
+
Requires-Dist: pylint[spelling]==4.0.7; extra == "dev"
|
|
41
|
+
Requires-Dist: pylint-per-file-ignores==3.2.1; extra == "dev"
|
|
42
|
+
Requires-Dist: pyproject-fmt==2.27.0; extra == "dev"
|
|
43
|
+
Requires-Dist: pyrefly==1.2.0; extra == "dev"
|
|
44
|
+
Requires-Dist: pyright==1.1.411; extra == "dev"
|
|
45
|
+
Requires-Dist: pyroma==5.0.1; extra == "dev"
|
|
46
|
+
Requires-Dist: pytest==9.1.1; extra == "dev"
|
|
47
|
+
Requires-Dist: pytest-asyncio==1.4.0; extra == "dev"
|
|
48
|
+
Requires-Dist: pytest-beartype-tests==2026.4.26; extra == "dev"
|
|
49
|
+
Requires-Dist: pytest-cov==7.1.0; extra == "dev"
|
|
50
|
+
Requires-Dist: pyyaml==6.0.3; extra == "dev"
|
|
51
|
+
Requires-Dist: ruff==0.16.2; extra == "dev"
|
|
52
|
+
Requires-Dist: shellcheck-py==0.11.0.1; extra == "dev"
|
|
53
|
+
Requires-Dist: shfmt-py==4.0.0; extra == "dev"
|
|
54
|
+
Requires-Dist: sphinx==9.1.0; extra == "dev"
|
|
55
|
+
Requires-Dist: sphinx-copybutton==0.5.2; extra == "dev"
|
|
56
|
+
Requires-Dist: sphinx-lint==1.0.2; extra == "dev"
|
|
57
|
+
Requires-Dist: sphinx-pyproject==0.3.0; extra == "dev"
|
|
58
|
+
Requires-Dist: sphinx-substitution-extensions==2026.8.5; extra == "dev"
|
|
59
|
+
Requires-Dist: sphinxcontrib-spelling==8.0.2; extra == "dev"
|
|
60
|
+
Requires-Dist: sphinxcontrib-towncrier==0.5.0a0; extra == "dev"
|
|
61
|
+
Requires-Dist: strict-kwargs==2026.7.24; extra == "dev"
|
|
62
|
+
Requires-Dist: sybil==10.1.0; extra == "dev"
|
|
63
|
+
Requires-Dist: towncrier==25.8.0; extra == "dev"
|
|
64
|
+
Requires-Dist: ty==0.0.70; extra == "dev"
|
|
65
|
+
Requires-Dist: types-requests==2.33.0.20260712; extra == "dev"
|
|
66
|
+
Requires-Dist: vale==3.13.0.0; extra == "dev"
|
|
67
|
+
Requires-Dist: vulture==2.16; extra == "dev"
|
|
68
|
+
Requires-Dist: vws-python-mock==2026.8.14; extra == "dev"
|
|
69
|
+
Requires-Dist: vws-test-fixtures==2023.3.5; extra == "dev"
|
|
70
|
+
Requires-Dist: yamlfix==1.19.1; extra == "dev"
|
|
71
|
+
Requires-Dist: zizmor==1.29.0; extra == "dev"
|
|
72
|
+
Provides-Extra: release
|
|
73
|
+
Requires-Dist: check-wheel-contents==0.6.3; extra == "release"
|
|
74
|
+
Requires-Dist: towncrier==25.8.0; extra == "release"
|
|
75
|
+
Dynamic: license-file
|
|
76
|
+
|
|
77
|
+
|Build Status| |PyPI|
|
|
78
|
+
|
|
79
|
+
vws-python
|
|
80
|
+
==========
|
|
81
|
+
|
|
82
|
+
Python library for the Vuforia Web Services (VWS) API and the Vuforia
|
|
83
|
+
Web Query API.
|
|
84
|
+
|
|
85
|
+
Installation
|
|
86
|
+
------------
|
|
87
|
+
|
|
88
|
+
.. code-block:: shell
|
|
89
|
+
|
|
90
|
+
pip install vws-python
|
|
91
|
+
|
|
92
|
+
This is tested on Python |minimum-python-version|\+. Get in touch with
|
|
93
|
+
``adamdangoor@gmail.com`` if you would like to use this with another
|
|
94
|
+
language.
|
|
95
|
+
|
|
96
|
+
Getting Started
|
|
97
|
+
---------------
|
|
98
|
+
|
|
99
|
+
.. code-block:: python
|
|
100
|
+
|
|
101
|
+
"""Add a target to VWS and then query it."""
|
|
102
|
+
|
|
103
|
+
import os
|
|
104
|
+
import pathlib
|
|
105
|
+
import uuid
|
|
106
|
+
|
|
107
|
+
from vws import VWS, CloudRecoService
|
|
108
|
+
|
|
109
|
+
server_access_key = os.environ["VWS_SERVER_ACCESS_KEY"]
|
|
110
|
+
server_secret_key = os.environ["VWS_SERVER_SECRET_KEY"]
|
|
111
|
+
client_access_key = os.environ["VWS_CLIENT_ACCESS_KEY"]
|
|
112
|
+
client_secret_key = os.environ["VWS_CLIENT_SECRET_KEY"]
|
|
113
|
+
|
|
114
|
+
vws_client = VWS(
|
|
115
|
+
server_access_key=server_access_key,
|
|
116
|
+
server_secret_key=server_secret_key,
|
|
117
|
+
)
|
|
118
|
+
|
|
119
|
+
cloud_reco_client = CloudRecoService(
|
|
120
|
+
client_access_key=client_access_key,
|
|
121
|
+
client_secret_key=client_secret_key,
|
|
122
|
+
)
|
|
123
|
+
|
|
124
|
+
name = "my_image_name_" + uuid.uuid4().hex
|
|
125
|
+
|
|
126
|
+
image = pathlib.Path("high_quality_image.jpg")
|
|
127
|
+
with image.open(mode="rb") as my_image_file:
|
|
128
|
+
target_id = vws_client.add_target(
|
|
129
|
+
name=name,
|
|
130
|
+
width=1,
|
|
131
|
+
image=my_image_file,
|
|
132
|
+
active_flag=True,
|
|
133
|
+
application_metadata=None,
|
|
134
|
+
)
|
|
135
|
+
|
|
136
|
+
vws_client.wait_for_target_processed(target_id=target_id)
|
|
137
|
+
|
|
138
|
+
with image.open(mode="rb") as my_image_file:
|
|
139
|
+
matching_targets = cloud_reco_client.query(image=my_image_file)
|
|
140
|
+
|
|
141
|
+
assert matching_targets[0].target_id == target_id
|
|
142
|
+
|
|
143
|
+
Full Documentation
|
|
144
|
+
------------------
|
|
145
|
+
|
|
146
|
+
See the `full documentation <https://vws-python.github.io/vws-python/>`__.
|
|
147
|
+
|
|
148
|
+
.. |Build Status| image:: https://github.com/VWS-Python/vws-python/actions/workflows/ci.yml/badge.svg?branch=main
|
|
149
|
+
:target: https://github.com/VWS-Python/vws-python/actions
|
|
150
|
+
.. |PyPI| image:: https://badge.fury.io/py/VWS-Python.svg
|
|
151
|
+
:target: https://badge.fury.io/py/VWS-Python
|
|
152
|
+
.. |minimum-python-version| replace:: 3.14
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
vws/__init__.py,sha256=ibV0RiclPFc481Fsr8dBfmwNsYfTX5D4TP46filC_Z0,590
|
|
2
|
+
vws/_async_vws_request.py,sha256=3HVE2GHIixjtDEuyDS7Ox4zFtHbLh6Vt8lWQJq8l8WA,2305
|
|
3
|
+
vws/_image_utils.py,sha256=5HAg7DYJ-UwnEg6267LgwGsGppf12kLXTl0tkwTJ8kI,395
|
|
4
|
+
vws/_model_targets.py,sha256=MhsIUpC2BCftt-2qz7bCsePY7dhIlY47qD_0D3atL7k,10046
|
|
5
|
+
vws/_reco_counts.py,sha256=xbucj0-7QmWI9Z8ix9Bm3w8phFcAijiu_MsFhcQe6q0,2635
|
|
6
|
+
vws/_vws_request.py,sha256=y9x9OhLGY4xZBYBq41w8sg_G1SwMcR7KTgGtG3dYbyA,2246
|
|
7
|
+
vws/async_model_target_service.py,sha256=4jnVRTPyjiineGg_6PIe1hOocMCHjYxjpqjKXWZxLaQ,13428
|
|
8
|
+
vws/async_query.py,sha256=acT_2ulUiek_TdHALRSXDObOR8gZZKmTokMi56orBqE,8225
|
|
9
|
+
vws/async_vumark_service.py,sha256=oBjVE9TTbPlNWjh50otw7b7Ib6xuzJjpZBEjn6r5Vfk,6087
|
|
10
|
+
vws/async_vws.py,sha256=TEqvKOjKIPn1w7T1XQTDXyuGJjSFZ9Fw2Tkz5wP3880,29530
|
|
11
|
+
vws/include_target_data.py,sha256=Ba8hqLJ9iPlgjRw_33X_ps9XemfJjMpS1mRL2rVnuf0,371
|
|
12
|
+
vws/model_target_datasets.py,sha256=kRmieCrc7CrR0pAn7Jd01vJ5UvNnVBP7FA7MDVBwIoY,3429
|
|
13
|
+
vws/model_target_service.py,sha256=NcCVRiBdHQGSYFd2TQOCt3q5g926m3CkmrLRnhE_VMw,12802
|
|
14
|
+
vws/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
|
+
vws/query.py,sha256=Iikjx-X9BDrb1_E20rA6tJ7cIM0o08ebaeNwY6Hdvhk,7532
|
|
16
|
+
vws/reports.py,sha256=BlNHg_EzDqlJ-VArHL8ihTYXUSWdoDYkIaskDhJwlLc,11723
|
|
17
|
+
vws/response.py,sha256=G-1DvKcf43-WcQvdjm4mCsCvolQh0UYJPMSHJpkU0Wk,370
|
|
18
|
+
vws/transports.py,sha256=rV8iqom9dDlDP5TcjPHIjRbF7g8paokE2JMwrJ2Bzuw,9277
|
|
19
|
+
vws/vumark_accept.py,sha256=y-dzOrxFZAim1qkq0l7Ma_4PLfxh74lTTl_hrRJFdJ4,361
|
|
20
|
+
vws/vumark_service.py,sha256=q0VlmkX4gPbvRzmWqV1B9vMLdrBhq9Pt_qWT026mpzA,5546
|
|
21
|
+
vws/vws.py,sha256=jwNxJbB0YViq_raYf8OnaA6ed2iOlg1DBnylplgN4kE,28524
|
|
22
|
+
vws/exceptions/__init__.py,sha256=szlmtfycXsukt4BVjOAcJUn0-naBMOF9_AGtYE8yh7g,48
|
|
23
|
+
vws/exceptions/base_exceptions.py,sha256=LfI1BGXcOPlvqQj0jdEqgJquN_T-RZ0xIAJWq74KkJU,2063
|
|
24
|
+
vws/exceptions/cloud_reco_exceptions.py,sha256=9t8tmSczxMis4yO4TYCdfyY0afEJioRVLKuK-tMcoEY,1038
|
|
25
|
+
vws/exceptions/custom_exceptions.py,sha256=jziPxIDYqskRd2lM94Xc4ZR3913O2oZxIfJIl3vM7tY,2903
|
|
26
|
+
vws/exceptions/model_target_exceptions.py,sha256=r_e885M2hqpR0rAk8XyPhxs-BASLxr9zHtCITxdZ1Ao,5854
|
|
27
|
+
vws/exceptions/vws_exceptions.py,sha256=n8ISlRwDJEx-9qo_pWkVVhIYHslMjhvadMzJzwCtB4Q,7080
|
|
28
|
+
vws_python-2026.8.14.dist-info/licenses/LICENSE,sha256=N3qm7laipxyuXkWpYllj89AObvPbtWgoABmaKfhQYL4,1069
|
|
29
|
+
vws_python-2026.8.14.dist-info/METADATA,sha256=JsTVkFrPGXI0Avb88SodVAPkw51Ub0rn3XeGfg31-Uc,5564
|
|
30
|
+
vws_python-2026.8.14.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
31
|
+
vws_python-2026.8.14.dist-info/top_level.txt,sha256=b0Qp9MD6LOYXh3Cv9AyXNpT0KY9QnOt2Yb7RGtFeYd0,4
|
|
32
|
+
vws_python-2026.8.14.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Adam Dangoor
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
vws
|