labelearth-api-python-client 2.170.2__py3-none-any.whl → 2.170.3__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.
- labelearth_api_python_client-2.170.3.dist-info/METADATA +57 -0
- {labelearth_api_python_client-2.170.2.dist-info → labelearth_api_python_client-2.170.3.dist-info}/RECORD +8 -7
- {labelearth_api_python_client-2.170.2.dist-info → labelearth_api_python_client-2.170.3.dist-info}/WHEEL +1 -1
- labelearth_api_python_client-2.170.3.dist-info/licenses/NOTICE +9 -0
- labelearth_api_python_client-2.170.3.dist-info/top_level.txt +2 -0
- labelearthapiclient/discovery.py +1 -19
- labelearthapiclient/version.py +1 -1
- labelearth_api_python_client-2.170.2.dist-info/METADATA +0 -164
- labelearth_api_python_client-2.170.2.dist-info/top_level.txt +0 -3
- {labelearth_api_python_client-2.170.2.dist-info → labelearth_api_python_client-2.170.3.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: labelearth-api-python-client
|
|
3
|
+
Version: 2.170.3
|
|
4
|
+
Summary: Discovery-based HTTP client for the LabelEarth Python SDK
|
|
5
|
+
Author: Google LLC
|
|
6
|
+
Maintainer: LabelEarth maintainers
|
|
7
|
+
License-Expression: Apache-2.0
|
|
8
|
+
Project-URL: Homepage, https://pypi.org/project/labelearth-api-python-client/
|
|
9
|
+
Keywords: labelearth,api,client
|
|
10
|
+
Classifier: Development Status :: 3 - Alpha
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: Operating System :: OS Independent
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
15
|
+
Classifier: Topic :: Internet :: WWW/HTTP
|
|
16
|
+
Requires-Python: >=3.10
|
|
17
|
+
Description-Content-Type: text/markdown
|
|
18
|
+
License-File: LICENSE
|
|
19
|
+
License-File: NOTICE
|
|
20
|
+
Requires-Dist: httplib2<1.0.0,>=0.19.0
|
|
21
|
+
Requires-Dist: google-auth!=2.24.0,!=2.25.0,<3.0.0,>=1.32.0
|
|
22
|
+
Requires-Dist: google-auth-httplib2<1.0.0,>=0.2.0
|
|
23
|
+
Requires-Dist: google-api-core!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.0,<3.0.0,>=1.31.5
|
|
24
|
+
Requires-Dist: uritemplate<5,>=3.0.1
|
|
25
|
+
Dynamic: license-file
|
|
26
|
+
|
|
27
|
+
# LabelEarth API Python Client
|
|
28
|
+
|
|
29
|
+
Discovery-based HTTP client used by `labelearthengine-api` to communicate with
|
|
30
|
+
the LE computing engine. Requires Python 3.10 or newer.
|
|
31
|
+
|
|
32
|
+
```shell
|
|
33
|
+
python -m pip install --upgrade labelearth-api-python-client
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
```python
|
|
37
|
+
from labelearthapiclient import discovery
|
|
38
|
+
from labelearthapiclient.version import __version__
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Most applications should install `labelearthengine-api` and use `import le`;
|
|
42
|
+
that package depends on the matching version of this HTTP client.
|
|
43
|
+
|
|
44
|
+
The `labelearthapiclient` and `apiclientforle` namespaces are retained. Discovery
|
|
45
|
+
resources join the configured service root with their resource paths. Bundled
|
|
46
|
+
discovery documents are included in both wheel and source distributions.
|
|
47
|
+
|
|
48
|
+
## Source and attribution
|
|
49
|
+
|
|
50
|
+
This is an independently maintained adaptation of
|
|
51
|
+
[google-api-python-client](https://github.com/googleapis/google-api-python-client).
|
|
52
|
+
It uses LabelEarth import namespaces and LE discovery URL behavior. It is not
|
|
53
|
+
an official Google distribution and does not carry Google's support commitments.
|
|
54
|
+
Original source copyright notices are retained; see `LICENSE` and `NOTICE`.
|
|
55
|
+
|
|
56
|
+
Distribution name: `labelearth-api-python-client`.
|
|
57
|
+
Primary import name: `labelearthapiclient`.
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
apiclientforle/__init__.py,sha256=82hcWQ6_gF9eu-nvVhQTlBj5Q_HqS1x6drlu13YLreo,772
|
|
2
|
-
labelearth_api_python_client-2.170.
|
|
2
|
+
labelearth_api_python_client-2.170.3.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
3
|
+
labelearth_api_python_client-2.170.3.dist-info/licenses/NOTICE,sha256=-0K4Uut_YMvv3BFRiS4y5LrUkqVbqMqAa-omJC4OQ78,485
|
|
3
4
|
labelearthapiclient/__init__.py,sha256=kFWxKShJalbnrCuV0klL7mjZaiXfPpjlqmyKyI8yfTU,904
|
|
4
5
|
labelearthapiclient/_auth.py,sha256=4eKDIZC6Cf1piMqXZPsdadQMep18TivE2pS6f3a0Eyc,5740
|
|
5
6
|
labelearthapiclient/_helpers.py,sha256=iNxILG6iNNFukr7lhaYfVqX4oFM5SERvcsU3JxeOo6I,6723
|
|
6
7
|
labelearthapiclient/channel.py,sha256=sKDvSY-Hc0WC10JquFC4Uqpwfg3oxvgSFypbXOSpU0A,11062
|
|
7
|
-
labelearthapiclient/discovery.py,sha256=
|
|
8
|
+
labelearthapiclient/discovery.py,sha256=VT5cBklBLhH8ltvKBx_g5b5rmpf3JjQOt39geAOwlMo,66394
|
|
8
9
|
labelearthapiclient/errors.py,sha256=rJQ_C4y2E8kEZCe3qmWhCnsyxYecYCCEzKJKudREVAk,5464
|
|
9
10
|
labelearthapiclient/http.py,sha256=zv9LVp2oGf6b-SGpyTRD6wW4-_l42HYihVaboxZE-_8,68301
|
|
10
11
|
labelearthapiclient/mimeparse.py,sha256=wwouQMCjppTocJtiQhkkTa27kocYwlFRALL2z11Xo1Y,6530
|
|
11
12
|
labelearthapiclient/model.py,sha256=UciVmwKE09u-torZ8pDSdOnzntsmjaa1uE_pynz-A4o,14101
|
|
12
13
|
labelearthapiclient/sample_tools.py,sha256=UhfytrbfIAVoOO9DfSryWr20E901q3BGeusEfzFlYP8,4327
|
|
13
14
|
labelearthapiclient/schema.py,sha256=IPcCzMxDA3J8e0kWDE1RGLa2yN9_RZAfm9e6RMFITFE,10418
|
|
14
|
-
labelearthapiclient/version.py,sha256=
|
|
15
|
+
labelearthapiclient/version.py,sha256=SMuZ9QUNsgYSY19rDoncKP84YrJJYBzJPJMVZCmYT34,599
|
|
15
16
|
labelearthapiclient/discovery_cache/__init__.py,sha256=h1T7Js9Nq36qATv7jlg2zXY6ODKGKg2QW8w0_gOW1Os,2319
|
|
16
17
|
labelearthapiclient/discovery_cache/appengine_memcache.py,sha256=6T1pQj-toAhDwfgLuiggFGhxKNGw5y-NnLUzLIF_M4s,1657
|
|
17
18
|
labelearthapiclient/discovery_cache/base.py,sha256=yCDPtxnbNN-p5_9fzBacC6P3wcUPlaCQIy5v_dXTons,1389
|
|
@@ -560,7 +561,7 @@ labelearthapiclient/discovery_cache/documents/youtube.v3.json,sha256=ZX2ajUc5GfA
|
|
|
560
561
|
labelearthapiclient/discovery_cache/documents/youtubeAnalytics.v1.json,sha256=KLPoKHO_XT4-LyIZjwSGh44f_htMwjePD2PXR8MH-YY,3220
|
|
561
562
|
labelearthapiclient/discovery_cache/documents/youtubeAnalytics.v2.json,sha256=Ixl98t7bVU4LpG2rai6RgzSeW-TUmk4abOVGzzttGKQ,28888
|
|
562
563
|
labelearthapiclient/discovery_cache/documents/youtubereporting.v1.json,sha256=fez-pYUk5gzTFG4W4mPJ7crQV1F1msk1Zdxf2DzpLl0,23094
|
|
563
|
-
labelearth_api_python_client-2.170.
|
|
564
|
-
labelearth_api_python_client-2.170.
|
|
565
|
-
labelearth_api_python_client-2.170.
|
|
566
|
-
labelearth_api_python_client-2.170.
|
|
564
|
+
labelearth_api_python_client-2.170.3.dist-info/METADATA,sha256=u_QIDUXWedlfegUquMs76KRjA7ZEyUDKuOVJs1vr0cI,2290
|
|
565
|
+
labelearth_api_python_client-2.170.3.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
566
|
+
labelearth_api_python_client-2.170.3.dist-info/top_level.txt,sha256=PG9PsfJ09NdAe2nhH2tDJ6APLIFZXKA7tAejjmmhL70,35
|
|
567
|
+
labelearth_api_python_client-2.170.3.dist-info/RECORD,,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
LabelEarth API Python Client
|
|
2
|
+
|
|
3
|
+
Derived from google-api-python-client, distributed under Apache-2.0.
|
|
4
|
+
Original upstream author: Google LLC (including Google Inc. source notices).
|
|
5
|
+
Upstream source: https://github.com/googleapis/google-api-python-client
|
|
6
|
+
|
|
7
|
+
The LabelEarth distribution uses its own import namespace and adjusts discovery
|
|
8
|
+
resource URLs for the LE computing engine. It is maintained independently and
|
|
9
|
+
is not an official Google distribution. Original source notices are retained.
|
labelearthapiclient/discovery.py
CHANGED
|
@@ -1066,16 +1066,6 @@ class ResourceMethodParameters(object):
|
|
|
1066
1066
|
self.query_params.remove(name)
|
|
1067
1067
|
|
|
1068
1068
|
|
|
1069
|
-
def findNoXyz(body:str):
|
|
1070
|
-
noXyz = ["Image.reduceRegion", "Image.reduceRegions",
|
|
1071
|
-
"Image.sample", "Image.classify", "Stack.transform", "S1.transform"]
|
|
1072
|
-
find = False
|
|
1073
|
-
for fun in noXyz:
|
|
1074
|
-
if body.find(fun) >= 0:
|
|
1075
|
-
find = True
|
|
1076
|
-
break
|
|
1077
|
-
return find
|
|
1078
|
-
|
|
1079
1069
|
def createMethod(methodName, methodDesc, rootDesc, schema):
|
|
1080
1070
|
"""Creates a method for attaching to a Resource.
|
|
1081
1071
|
|
|
@@ -1188,15 +1178,7 @@ def createMethod(methodName, methodDesc, rootDesc, schema):
|
|
|
1188
1178
|
)
|
|
1189
1179
|
|
|
1190
1180
|
expanded_url = uritemplate.expand(pathUrl, params)
|
|
1191
|
-
|
|
1192
|
-
url = r"https://qimghtmjhshx2gyj2joihsw6b40btyxe.lambda-url.us-west-2.on.aws" # info
|
|
1193
|
-
elif expanded_url.endswith("maps"):
|
|
1194
|
-
if findNoXyz(body):
|
|
1195
|
-
url = r"https://eqphqftdmhunp24bdxyllrivuy0qznpu.lambda-url.us-west-2.on.aws" # map-v2
|
|
1196
|
-
else:
|
|
1197
|
-
url = r"https://tggzlaklx64urltctfj25ybwnq0ccagk.lambda-url.us-west-2.on.aws" # 获取uuid
|
|
1198
|
-
else:
|
|
1199
|
-
url = _urljoin(self._baseUrl, expanded_url + query)
|
|
1181
|
+
url = _urljoin(self._baseUrl, expanded_url + query)
|
|
1200
1182
|
|
|
1201
1183
|
resumable = None
|
|
1202
1184
|
multipart_boundary = ""
|
labelearthapiclient/version.py
CHANGED
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: labelearth-api-python-client
|
|
3
|
-
Version: 2.170.2
|
|
4
|
-
Summary: labelearth API Client Library for Python
|
|
5
|
-
Home-page: https://github.com/googleapis/labelearth-api-python-client/
|
|
6
|
-
Author: Google LLC
|
|
7
|
-
Author-email: googleapis-packages@google.com
|
|
8
|
-
License: Apache 2.0
|
|
9
|
-
Keywords: labelearth api client
|
|
10
|
-
Classifier: Programming Language :: Python :: 3
|
|
11
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.14
|
|
19
|
-
Classifier: Development Status :: 5 - Production/Stable
|
|
20
|
-
Classifier: Intended Audience :: Developers
|
|
21
|
-
Classifier: License :: OSI Approved :: Apache Software License
|
|
22
|
-
Classifier: Operating System :: OS Independent
|
|
23
|
-
Classifier: Topic :: Internet :: WWW/HTTP
|
|
24
|
-
Requires-Python: >=3.7
|
|
25
|
-
Description-Content-Type: text/markdown
|
|
26
|
-
License-File: LICENSE
|
|
27
|
-
Requires-Dist: httplib2<1.0.0,>=0.19.0
|
|
28
|
-
Requires-Dist: google-auth!=2.24.0,!=2.25.0,<3.0.0,>=1.32.0
|
|
29
|
-
Requires-Dist: google-auth-httplib2<1.0.0,>=0.2.0
|
|
30
|
-
Requires-Dist: google-api-core!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.0,<3.0.0,>=1.31.5
|
|
31
|
-
Requires-Dist: uritemplate<5,>=3.0.1
|
|
32
|
-
Dynamic: author
|
|
33
|
-
Dynamic: author-email
|
|
34
|
-
Dynamic: classifier
|
|
35
|
-
Dynamic: description
|
|
36
|
-
Dynamic: description-content-type
|
|
37
|
-
Dynamic: home-page
|
|
38
|
-
Dynamic: keywords
|
|
39
|
-
Dynamic: license
|
|
40
|
-
Dynamic: license-file
|
|
41
|
-
Dynamic: requires-dist
|
|
42
|
-
Dynamic: requires-python
|
|
43
|
-
Dynamic: summary
|
|
44
|
-
|
|
45
|
-
# Google API Client
|
|
46
|
-
|
|
47
|
-
[](https://badge.fury.io/py/google-api-python-client)
|
|
48
|
-
|
|
49
|
-
This is the [Google API Python client library](https://cloud.google.com/apis/docs/client-libraries-explained#google_api_client_libraries)
|
|
50
|
-
for Google's discovery based APIs. To get started, please see the
|
|
51
|
-
[docs folder](https://github.com/googleapis/google-api-python-client/blob/main/docs/README.md).
|
|
52
|
-
|
|
53
|
-
This library is considered complete and is in maintenance mode. This means
|
|
54
|
-
that we will address critical bugs and security issues but will not add any
|
|
55
|
-
new features.
|
|
56
|
-
|
|
57
|
-
This library is officially supported by Google. However, the maintainers of
|
|
58
|
-
this repository recommend using [Cloud Client Libraries for Python](https://github.com/googleapis/google-cloud-python),
|
|
59
|
-
where possible, for new code development. For more information, please visit
|
|
60
|
-
[Client Libraries Explained](https://cloud.google.com/apis/docs/client-libraries-explained).
|
|
61
|
-
|
|
62
|
-
## Version 2.0 Release
|
|
63
|
-
The 2.0 release of `google-api-python-client` includes a substantial reliability
|
|
64
|
-
improvement, compared with 1.x, as discovery documents are now cached in the library
|
|
65
|
-
rather than fetched dynamically. It is highly recommended to upgrade from v1.x to v2.x.
|
|
66
|
-
|
|
67
|
-
Only python 3.7 and newer is supported. If you are not able to upgrade python, then
|
|
68
|
-
please continue to use version 1.x as we will continue supporting python 2.7+ in
|
|
69
|
-
[v1](https://github.com/googleapis/google-api-python-client/tree/v1).
|
|
70
|
-
|
|
71
|
-
Discovery documents will no longer be retrieved dynamically when
|
|
72
|
-
you call `discovery.build()`. The discovery documents will instead be retrieved
|
|
73
|
-
from the client library directly. New versions of this library are released weekly.
|
|
74
|
-
As a result of caching the discovery documents, the size of this package is at least
|
|
75
|
-
50 MB larger compared to the previous version.
|
|
76
|
-
|
|
77
|
-
Please see the [Migration Guide](https://github.com/googleapis/google-api-python-client/blob/main/UPGRADING.md)
|
|
78
|
-
for more information.
|
|
79
|
-
|
|
80
|
-
## Documentation
|
|
81
|
-
|
|
82
|
-
See the [docs folder](https://github.com/googleapis/google-api-python-client/blob/main/docs/README.md) for more detailed instructions and additional documentation.
|
|
83
|
-
|
|
84
|
-
## Other Google API libraries
|
|
85
|
-
|
|
86
|
-
The maintainers of this repository recommend using
|
|
87
|
-
[Cloud Client Libraries for Python](https://github.com/googleapis/google-cloud-python),
|
|
88
|
-
where possible, for new code development due to the following reasons:
|
|
89
|
-
|
|
90
|
-
With [Cloud Client Libraries for Python](https://github.com/googleapis/google-cloud-python):
|
|
91
|
-
- There is a separate client library for each API, so you can choose
|
|
92
|
-
which client libraries to download. Whereas, `google-api-python-client` is a
|
|
93
|
-
single client library for all APIs. As a result, the total package size for
|
|
94
|
-
`google-api-python-client` exceeds 50MB.
|
|
95
|
-
- There are stricter controls for breaking changes to the underlying APIs
|
|
96
|
-
as each client library is focused on a specific API.
|
|
97
|
-
- There are more features in these Cloud Client Libraries as each library is
|
|
98
|
-
focused on a specific API, and in some cases, the libraries are owned by team
|
|
99
|
-
who specialized in that API.
|
|
100
|
-
- Developers will benefit from intellisense.
|
|
101
|
-
|
|
102
|
-
For more information, please visit
|
|
103
|
-
[Client Libraries Explained](https://cloud.google.com/apis/docs/client-libraries-explained).
|
|
104
|
-
|
|
105
|
-
Although there are many benefits to moving to
|
|
106
|
-
[Cloud Client Libraries for Python](https://github.com/googleapis/google-cloud-python),
|
|
107
|
-
the maintainers want to emphasize that `google-api-python-client` will continue
|
|
108
|
-
to be supported.
|
|
109
|
-
|
|
110
|
-
For Google Ads API, we recommend using [Google Ads API Client Library for Python](https://github.com/googleads/google-ads-python/).
|
|
111
|
-
|
|
112
|
-
For Google Firebase Admin API, we recommend using [Firebase Admin Python SDK](https://github.com/firebase/firebase-admin-python).
|
|
113
|
-
|
|
114
|
-
## Installation
|
|
115
|
-
|
|
116
|
-
Install this library in a [virtualenv](https://virtualenv.pypa.io/en/latest/) using pip. virtualenv is a tool to
|
|
117
|
-
create isolated Python environments. The basic problem it addresses is one of
|
|
118
|
-
dependencies and versions, and indirectly permissions.
|
|
119
|
-
|
|
120
|
-
With virtualenv, it's possible to install this library without needing system
|
|
121
|
-
install permissions, and without clashing with the installed system
|
|
122
|
-
dependencies.
|
|
123
|
-
|
|
124
|
-
### Mac/Linux
|
|
125
|
-
|
|
126
|
-
```bash
|
|
127
|
-
pip3 install virtualenv
|
|
128
|
-
virtualenv <your-env>
|
|
129
|
-
source <your-env>/bin/activate
|
|
130
|
-
<your-env>/bin/pip install google-api-python-client
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
### Windows
|
|
134
|
-
|
|
135
|
-
```batch
|
|
136
|
-
pip install virtualenv
|
|
137
|
-
virtualenv <your-env>
|
|
138
|
-
<your-env>\Scripts\activate
|
|
139
|
-
<your-env>\Scripts\pip.exe install google-api-python-client
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
## Supported Python Versions
|
|
143
|
-
|
|
144
|
-
Python 3.7, 3.8, 3.9, 3.10, 3.11, 3.12 and 3.13, 3.14 are fully supported and tested. This library may work on later versions of 3, but we do not currently run tests against those versions.
|
|
145
|
-
|
|
146
|
-
## Unsupported Python Versions
|
|
147
|
-
|
|
148
|
-
Python < 3.7
|
|
149
|
-
|
|
150
|
-
## Third Party Libraries and Dependencies
|
|
151
|
-
|
|
152
|
-
The following libraries will be installed when you install the client library:
|
|
153
|
-
* [httplib2](https://github.com/httplib2/httplib2)
|
|
154
|
-
* [uritemplate](https://github.com/sigmavirus24/uritemplate)
|
|
155
|
-
|
|
156
|
-
For development you will also need the following libraries:
|
|
157
|
-
* [WebTest](https://pypi.org/project/WebTest/)
|
|
158
|
-
* [pyopenssl](https://pypi.python.org/pypi/pyOpenSSL)
|
|
159
|
-
|
|
160
|
-
## Contributing
|
|
161
|
-
|
|
162
|
-
Please see our [Contribution Guide](https://github.com/googleapis/google-api-python-client/blob/main/CONTRIBUTING.rst).
|
|
163
|
-
In particular, we love pull requests - but please make sure to sign
|
|
164
|
-
the contributor license agreement.
|
|
File without changes
|