corehttp 1.0.0b5__py3-none-any.whl → 1.0.0b7__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.
- corehttp/_version.py +1 -1
- corehttp/credentials.py +66 -25
- corehttp/exceptions.py +7 -6
- corehttp/instrumentation/__init__.py +9 -0
- corehttp/instrumentation/tracing/__init__.py +14 -0
- corehttp/instrumentation/tracing/_decorator.py +189 -0
- corehttp/instrumentation/tracing/_models.py +72 -0
- corehttp/instrumentation/tracing/_tracer.py +69 -0
- corehttp/instrumentation/tracing/opentelemetry.py +277 -0
- corehttp/instrumentation/tracing/utils.py +31 -0
- corehttp/paging.py +13 -0
- corehttp/rest/_aiohttp.py +21 -9
- corehttp/rest/_http_response_impl.py +9 -15
- corehttp/rest/_http_response_impl_async.py +2 -0
- corehttp/rest/_httpx.py +9 -9
- corehttp/rest/_requests_basic.py +17 -10
- corehttp/rest/_rest_py3.py +6 -10
- corehttp/runtime/pipeline/__init__.py +5 -9
- corehttp/runtime/pipeline/_base.py +3 -2
- corehttp/runtime/pipeline/_base_async.py +6 -8
- corehttp/runtime/pipeline/_tools.py +18 -2
- corehttp/runtime/pipeline/_tools_async.py +2 -4
- corehttp/runtime/policies/__init__.py +2 -0
- corehttp/runtime/policies/_authentication.py +76 -24
- corehttp/runtime/policies/_authentication_async.py +66 -21
- corehttp/runtime/policies/_distributed_tracing.py +169 -0
- corehttp/runtime/policies/_retry.py +8 -12
- corehttp/runtime/policies/_retry_async.py +5 -9
- corehttp/runtime/policies/_universal.py +15 -11
- corehttp/serialization.py +237 -3
- corehttp/settings.py +59 -0
- corehttp/transport/_base.py +1 -3
- corehttp/transport/_base_async.py +1 -3
- corehttp/transport/aiohttp/_aiohttp.py +41 -16
- corehttp/transport/requests/_bigger_block_size_http_adapters.py +1 -1
- corehttp/transport/requests/_requests_basic.py +33 -18
- corehttp/utils/_enum_meta.py +1 -1
- corehttp/utils/_utils.py +2 -1
- corehttp-1.0.0b7.dist-info/METADATA +196 -0
- corehttp-1.0.0b7.dist-info/RECORD +61 -0
- {corehttp-1.0.0b5.dist-info → corehttp-1.0.0b7.dist-info}/WHEEL +1 -1
- corehttp-1.0.0b5.dist-info/METADATA +0 -132
- corehttp-1.0.0b5.dist-info/RECORD +0 -52
- {corehttp-1.0.0b5.dist-info → corehttp-1.0.0b7.dist-info/licenses}/LICENSE +0 -0
- {corehttp-1.0.0b5.dist-info → corehttp-1.0.0b7.dist-info}/top_level.txt +0 -0
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: corehttp
|
|
3
|
-
Version: 1.0.0b5
|
|
4
|
-
Summary: CoreHTTP Library for Python
|
|
5
|
-
Home-page: https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/corehttp
|
|
6
|
-
Author: Microsoft Corporation
|
|
7
|
-
Author-email: azpysdkhelp@microsoft.com
|
|
8
|
-
License: MIT License
|
|
9
|
-
Keywords: typespec,core
|
|
10
|
-
Classifier: Development Status :: 4 - Beta
|
|
11
|
-
Classifier: Programming Language :: Python
|
|
12
|
-
Classifier: Programming Language :: Python :: 3 :: Only
|
|
13
|
-
Classifier: Programming Language :: Python :: 3
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
16
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
20
|
-
Requires-Python: >=3.8
|
|
21
|
-
Description-Content-Type: text/markdown
|
|
22
|
-
License-File: LICENSE
|
|
23
|
-
Requires-Dist: typing-extensions >=4.6.0
|
|
24
|
-
Provides-Extra: aiohttp
|
|
25
|
-
Requires-Dist: aiohttp >=3.0 ; extra == 'aiohttp'
|
|
26
|
-
Provides-Extra: httpx
|
|
27
|
-
Requires-Dist: httpx >=0.25.0 ; extra == 'httpx'
|
|
28
|
-
Provides-Extra: requests
|
|
29
|
-
Requires-Dist: requests >=2.18.4 ; extra == 'requests'
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
# Core HTTP shared client library for Python
|
|
33
|
-
|
|
34
|
-
`corehttp` provides shared exceptions and modules for Python SDK client libraries.
|
|
35
|
-
|
|
36
|
-
## Getting started
|
|
37
|
-
|
|
38
|
-
Typically, you will not need to install `corehttp`, as it will be installed when you install one of the client libraries using it.
|
|
39
|
-
|
|
40
|
-
### Transports
|
|
41
|
-
|
|
42
|
-
To use `corehttp`, you will need to choose a transport implementation. `corehttp` provides the following transports:
|
|
43
|
-
|
|
44
|
-
Synchronous transports:
|
|
45
|
-
- `RequestsTransport` - A synchronous transport based on the [Requests](https://requests.readthedocs.io/en/master/) library.
|
|
46
|
-
- `HttpXTransport` - An synchronous transport based on the [HTTPX](https://www.python-httpx.org/) library.
|
|
47
|
-
|
|
48
|
-
Asynchronous transports:
|
|
49
|
-
- `AioHttpTransport` - An asynchronous transport based on the [aiohttp](https://docs.aiohttp.org/en/stable/) library.
|
|
50
|
-
- `AsyncHttpXTransport` - An asynchronous transport based on the [HTTPX](https://www.python-httpx.org/) library.
|
|
51
|
-
|
|
52
|
-
Each transport has its own dependencies, which you can install using the `corehttp` extras:
|
|
53
|
-
|
|
54
|
-
```bash
|
|
55
|
-
# Install individually.
|
|
56
|
-
pip install corehttp[requests]
|
|
57
|
-
pip install corehttp[aiohttp]
|
|
58
|
-
pip install corehttp[httpx]
|
|
59
|
-
|
|
60
|
-
# Install multiple.
|
|
61
|
-
pip install corehttp[requests,httpx]
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
If no transports are specified, `corehttp` will default to using `RequestsTransport` for synchronous pipeline requests and `AioHttpTransport` for asynchronous pipeline requests.
|
|
65
|
-
|
|
66
|
-
## Contributing
|
|
67
|
-
|
|
68
|
-
This project welcomes contributions and suggestions. Most contributions require
|
|
69
|
-
you to agree to a Contributor License Agreement (CLA) declaring that you have
|
|
70
|
-
the right to, and actually do, grant us the rights to use your contribution.
|
|
71
|
-
For details, visit [https://cla.microsoft.com](https://cla.microsoft.com).
|
|
72
|
-
|
|
73
|
-
When you submit a pull request, a CLA-bot will automatically determine whether
|
|
74
|
-
you need to provide a CLA and decorate the PR appropriately (e.g., label,
|
|
75
|
-
comment). Simply follow the instructions provided by the bot. You will only
|
|
76
|
-
need to do this once across all repos using our CLA.
|
|
77
|
-
|
|
78
|
-
This project has adopted the
|
|
79
|
-
[Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
|
|
80
|
-
For more information, see the
|
|
81
|
-
[Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
|
|
82
|
-
or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any
|
|
83
|
-
additional questions or comments.
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
# Release History
|
|
89
|
-
|
|
90
|
-
## 1.0.0b5 (2024-02-29)
|
|
91
|
-
|
|
92
|
-
### Other Changes
|
|
93
|
-
|
|
94
|
-
- Accept float for `retry_after` header.
|
|
95
|
-
|
|
96
|
-
## 1.0.0b4 (2024-02-23)
|
|
97
|
-
|
|
98
|
-
### Other Changes
|
|
99
|
-
|
|
100
|
-
- Relax type checking in `Pipeline` constructors to only check that each user-supplied policy object has either a `send` method or both an `on_request` and `on_response` method. This allows for more flexible policy implementations. [#34296](https://github.com/Azure/azure-sdk-for-python/pull/34296)
|
|
101
|
-
|
|
102
|
-
## 1.0.0b3 (2024-02-01)
|
|
103
|
-
|
|
104
|
-
### Features Added
|
|
105
|
-
|
|
106
|
-
- Support tuple input for `files` values to `corehttp.rest.HttpRequest` #34082
|
|
107
|
-
- Support simultaneous `files` and `data` field entry into `corehttp.rest.HttpRequest` #34082
|
|
108
|
-
|
|
109
|
-
## 1.0.0b2 (2023-11-14)
|
|
110
|
-
|
|
111
|
-
### Features Added
|
|
112
|
-
|
|
113
|
-
- Added the initial implementation of the HTTPX transport. [#32813](https://github.com/Azure/azure-sdk-for-python/pull/32813)
|
|
114
|
-
|
|
115
|
-
### Breaking Changes
|
|
116
|
-
|
|
117
|
-
- Removed `requests` as a default dependency of `corehttp`. This is now an "extras" dependency and can be installed via `corehttp[requests]`. [#32813](https://github.com/Azure/azure-sdk-for-python/pull/32813)
|
|
118
|
-
- Renamed the `aio` extra to `aiohttp`. [#32813](https://github.com/Azure/azure-sdk-for-python/pull/32813)
|
|
119
|
-
|
|
120
|
-
### Bugs Fixed
|
|
121
|
-
|
|
122
|
-
- Fixed an issue with `multipart/form-data` in the async transport where `data` was not getting encoded into the request body. [#32473](https://github.com/Azure/azure-sdk-for-python/pull/32473)
|
|
123
|
-
- Fixed an issue with `connection_verify`, `connection_cert`, and `connection_timeout` not being propagated to underlying transports. [#33057](https://github.com/Azure/azure-sdk-for-python/pull/33057)
|
|
124
|
-
- Fixed an issue with the `aiohttp` transport not using SSL by default. [#33057](https://github.com/Azure/azure-sdk-for-python/pull/33057)
|
|
125
|
-
|
|
126
|
-
### Other Changes
|
|
127
|
-
|
|
128
|
-
- Added extras for `httpx`. [#32813](https://github.com/Azure/azure-sdk-for-python/pull/32813)
|
|
129
|
-
|
|
130
|
-
## 1.0.0b1 (2023-10-18)
|
|
131
|
-
|
|
132
|
-
* Initial Release
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
corehttp/__init__.py,sha256=Wdidh085sV_IhdV_wU79t7FpghhpyxCsRnZGOUoQ0xs,1443
|
|
2
|
-
corehttp/_match_conditions.py,sha256=3TIhb4vBO1hBe7MaQwS_9i-d6p7o4jn5L6M-OiQahkg,1864
|
|
3
|
-
corehttp/_version.py,sha256=Adx1gY_uaehKHdReRn2zLYGyMjbGV43k9smdJngNeLo,494
|
|
4
|
-
corehttp/credentials.py,sha256=xx94AN5Nekiz3SNHJNV6ncS2o4ObCc5U_Ya62QzTfaM,5237
|
|
5
|
-
corehttp/exceptions.py,sha256=qSqzPJVD_ufGO5HEAbNY8BNmVUoXPCgBeVrw195QvF4,11554
|
|
6
|
-
corehttp/paging.py,sha256=zI-fFLBUgMRZmFegD2T6Q52s_3PFDb6lLjtR7-XSZDc,9520
|
|
7
|
-
corehttp/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
|
-
corehttp/serialization.py,sha256=Q4ZPuh2pHl37T0Lvb96xfXGpMB6oPrmzscLEe0N4Bsw,4090
|
|
9
|
-
corehttp/rest/__init__.py,sha256=GwPFwVYZ9aa4DI9f2-oQGr2nfF7wXvVL80V51ymAjAk,1467
|
|
10
|
-
corehttp/rest/_aiohttp.py,sha256=-_Nym7nY7sy34wNXU_7nA9pngZ24NazuzAheRU2PBJM,11301
|
|
11
|
-
corehttp/rest/_helpers.py,sha256=ZhXhAiAw8DW_gxUPE3tumMplRS1Jt2h6joLVsk-u6yI,7897
|
|
12
|
-
corehttp/rest/_http_response_impl.py,sha256=9I0flIplRZ6-JaWzhcCSTAVnxp_tf6XVCci2nkHCSco,11381
|
|
13
|
-
corehttp/rest/_http_response_impl_async.py,sha256=lmdtY-l0hrNy5PbhWrl2hZrfHzZkn6LZPMR2fTy54WY,4972
|
|
14
|
-
corehttp/rest/_httpx.py,sha256=7mmpEIQ0-GLf3G_Wg3-f2dQnk-mvw4xbqtL9eoPhhwY,8173
|
|
15
|
-
corehttp/rest/_requests_basic.py,sha256=rw2GwxDMMrG5A4onTKLwQpsQe98MtUaowA_-BfTgsuc,7527
|
|
16
|
-
corehttp/rest/_rest_py3.py,sha256=JLLGz6svFF-UwxS_GyGUq5c2KHcNL26TB-ARxfBIOY8,14096
|
|
17
|
-
corehttp/runtime/__init__.py,sha256=OeG_5-Oq3Zp9rJcMfRNiYLv3V39wIZxDcQ-unerauDw,1469
|
|
18
|
-
corehttp/runtime/_base.py,sha256=gr2xJQJeWuOmtrudFhM07_6ASIhUX66jR1nxSRMh068,5056
|
|
19
|
-
corehttp/runtime/_pipeline_client.py,sha256=A2R0JEcfFIOe6b38VzuQatAxfbiBhtu_RCpOlM968b0,7099
|
|
20
|
-
corehttp/runtime/_pipeline_client_async.py,sha256=dBUqhntQzcS1kbQ6z7d6C4Y3HDghLr4jrobtlKvbVTw,10378
|
|
21
|
-
corehttp/runtime/pipeline/__init__.py,sha256=gRGAsJ1ZDE20TMp6JDw8OpekZdfA7ZzZvOhVHclNpDI,7727
|
|
22
|
-
corehttp/runtime/pipeline/_base.py,sha256=WVLDonxHv5knC-Ffq7YW2cRHr22rtZQjRtZ2N9FWzLw,6900
|
|
23
|
-
corehttp/runtime/pipeline/_base_async.py,sha256=4hvZDFlJ9odUs6Z6etQUlXfm9b1Bt_avZxxEee_h3Sw,7370
|
|
24
|
-
corehttp/runtime/pipeline/_tools.py,sha256=iol34Mo_R6-Rezal7WSFFSzFa1V3dXf90AQydnxRnSQ,2004
|
|
25
|
-
corehttp/runtime/pipeline/_tools_async.py,sha256=OvEJjH8NuGnSOrcbJBCIlN_TsO8w87kgEJ0LJcwcYH0,2159
|
|
26
|
-
corehttp/runtime/policies/__init__.py,sha256=_LPYWjRNkDq45FAHUvyMJ92BL0W6pf7-KrjxSZSkF5c,2196
|
|
27
|
-
corehttp/runtime/policies/_authentication.py,sha256=mgacXdydBBKPQ-5NujqNNWNNCsbt9ETWJBBdqMqgfGc,8819
|
|
28
|
-
corehttp/runtime/policies/_authentication_async.py,sha256=QUUYFlcsc6vJDox7vw1Ggg165c1KXEWiwM70BInoidM,6946
|
|
29
|
-
corehttp/runtime/policies/_base.py,sha256=zLM4NIwGQwZ75k-KPo3PthmDCpDidHvZy91ok0wnFvQ,5063
|
|
30
|
-
corehttp/runtime/policies/_base_async.py,sha256=nOZ-3lrKmfnFam3FbSY4wd9sOI7r5pI2HSdqgOC4Vz4,2531
|
|
31
|
-
corehttp/runtime/policies/_retry.py,sha256=vM40m1JSD-l6yBclxmQV06_ZOK4WAcy1PTqQQpTr3ts,24367
|
|
32
|
-
corehttp/runtime/policies/_retry_async.py,sha256=rsVFxlQMDyU1Z34FKd1trfxj2VkwGt-Ap7uqiErMeAc,9131
|
|
33
|
-
corehttp/runtime/policies/_universal.py,sha256=6qfC2MAQbp1KQgWnbbcBKuwprzEZaftx7tfY6QuHmpo,19835
|
|
34
|
-
corehttp/runtime/policies/_utils.py,sha256=kDnGRpC3MxsW7zHZRfkLyPMArlzY4n7vBhwQQVWKQuI,3596
|
|
35
|
-
corehttp/transport/__init__.py,sha256=6A1i9gjM5isBPb-AL-2JTzxn7pssDj8ux9Ujn6rHjlY,1442
|
|
36
|
-
corehttp/transport/_base.py,sha256=5gFTZ1u--3Ik9DyrAe10RtObasd-OXX1y9sRSkbvoyY,5107
|
|
37
|
-
corehttp/transport/_base_async.py,sha256=9zl1Sa8Vm6QBdn8Nf-J3w2qZ-wsjcV9bv1EX5Jr28w4,3827
|
|
38
|
-
corehttp/transport/aiohttp/__init__.py,sha256=gdCazQ9XMZ6xgJCakm4efxECBFU-IIxKuMF3VmM9dHQ,1381
|
|
39
|
-
corehttp/transport/aiohttp/_aiohttp.py,sha256=EesPhF2tAIMxgM0qwFfUu4IUzwF8mHLHbnCD5-Zv8Nk,9565
|
|
40
|
-
corehttp/transport/httpx/__init__.py,sha256=IbjUxTxtGljHK9nq6w0kAFeHd73zAl7qtd27qlqCrzg,1412
|
|
41
|
-
corehttp/transport/httpx/_httpx.py,sha256=of8Mxyfzm1Rd4ltYNt8wGz1xuTnJVef0KaiJyl99KfE,8579
|
|
42
|
-
corehttp/transport/requests/__init__.py,sha256=WPdzueqs0eLfvumuedxXPsOIpPCq3dDOvdzmIK4nyHs,1390
|
|
43
|
-
corehttp/transport/requests/_bigger_block_size_http_adapters.py,sha256=0SkJ3lQHdbh1iBlCCbc9NCshDRJsVLZUZdWL-frZ_4Q,2444
|
|
44
|
-
corehttp/transport/requests/_requests_basic.py,sha256=ChsXobJeBdwLTnNnDzWLZi5JYVg6M95kcxXfcgPZ3r0,8179
|
|
45
|
-
corehttp/utils/__init__.py,sha256=_h2vJje1Tb-w_9mXm0hO_s2S1b48HLzI4taIlvz3Eu4,1648
|
|
46
|
-
corehttp/utils/_enum_meta.py,sha256=l2K1mZfpwljsruKxknabYckl0ZbsVftOxfbRhpzF_-s,2816
|
|
47
|
-
corehttp/utils/_utils.py,sha256=TN2IplPve8b6xJPMvIVE-2oF3u_SK89XtYmCb70UDr4,6063
|
|
48
|
-
corehttp-1.0.0b5.dist-info/LICENSE,sha256=_VMkgdgo4ToLE8y1mOAjOKNhd0BnWoYu5r3BVBto6T0,1073
|
|
49
|
-
corehttp-1.0.0b5.dist-info/METADATA,sha256=aTKL6zrEYPPerCUAbEj_uhl07Ex2CsbndYBd3nwjShA,5363
|
|
50
|
-
corehttp-1.0.0b5.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
51
|
-
corehttp-1.0.0b5.dist-info/top_level.txt,sha256=NAGJ-rIA_vW2ZJghxC5NqIbnfrXDBMmE-TAd-9ud4i4,9
|
|
52
|
-
corehttp-1.0.0b5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|