@typespec/http-client-python 0.12.5 → 0.13.0-dev.2
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.
- package/eng/scripts/setup/__pycache__/package_manager.cpython-39.pyc +0 -0
- package/eng/scripts/setup/__pycache__/venvtools.cpython-39.pyc +0 -0
- package/generator/build/lib/pygen/codegen/templates/packaging_templates/README.md.jinja2 +0 -31
- package/generator/dist/pygen-0.1.0-py3-none-any.whl +0 -0
- package/generator/pygen/codegen/templates/packaging_templates/README.md.jinja2 +0 -31
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
@@ -104,35 +104,4 @@ additional questions or comments.
|
|
|
104
104
|
[pip]: https://pypi.org/project/pip/
|
|
105
105
|
[azure_sub]: https://azure.microsoft.com/free/
|
|
106
106
|
{% endif %}
|
|
107
|
-
{% else %}
|
|
108
|
-
# Overview
|
|
109
|
-
|
|
110
|
-
This package is generated by `@typespec/http-client-python` with Typespec.
|
|
111
|
-
|
|
112
|
-
## Getting started
|
|
113
|
-
|
|
114
|
-
### Prequisites
|
|
115
|
-
|
|
116
|
-
- Python 3.9 or later is required to use this package.
|
|
117
|
-
|
|
118
|
-
### Install the package
|
|
119
|
-
|
|
120
|
-
Step into folder where setup.py is then run:
|
|
121
|
-
|
|
122
|
-
```bash
|
|
123
|
-
pip install -e .
|
|
124
|
-
```
|
|
125
|
-
|
|
126
|
-
### Examples
|
|
127
|
-
|
|
128
|
-
```python
|
|
129
|
-
>>> from {{ code_model.namespace }} import {{ client_name }}
|
|
130
|
-
>>> from {{ code_model.core_library }}.exceptions import HttpResponseError
|
|
131
|
-
|
|
132
|
-
>>> client = {{ client_name }}(endpoint='<endpoint>')
|
|
133
|
-
>>> try:
|
|
134
|
-
<!-- write code here -->
|
|
135
|
-
except HttpResponseError as e:
|
|
136
|
-
print('service responds error: {}'.format(e.response.json()))
|
|
137
|
-
```
|
|
138
107
|
{% endif %}
|
|
Binary file
|
|
@@ -104,35 +104,4 @@ additional questions or comments.
|
|
|
104
104
|
[pip]: https://pypi.org/project/pip/
|
|
105
105
|
[azure_sub]: https://azure.microsoft.com/free/
|
|
106
106
|
{% endif %}
|
|
107
|
-
{% else %}
|
|
108
|
-
# Overview
|
|
109
|
-
|
|
110
|
-
This package is generated by `@typespec/http-client-python` with Typespec.
|
|
111
|
-
|
|
112
|
-
## Getting started
|
|
113
|
-
|
|
114
|
-
### Prequisites
|
|
115
|
-
|
|
116
|
-
- Python 3.9 or later is required to use this package.
|
|
117
|
-
|
|
118
|
-
### Install the package
|
|
119
|
-
|
|
120
|
-
Step into folder where setup.py is then run:
|
|
121
|
-
|
|
122
|
-
```bash
|
|
123
|
-
pip install -e .
|
|
124
|
-
```
|
|
125
|
-
|
|
126
|
-
### Examples
|
|
127
|
-
|
|
128
|
-
```python
|
|
129
|
-
>>> from {{ code_model.namespace }} import {{ client_name }}
|
|
130
|
-
>>> from {{ code_model.core_library }}.exceptions import HttpResponseError
|
|
131
|
-
|
|
132
|
-
>>> client = {{ client_name }}(endpoint='<endpoint>')
|
|
133
|
-
>>> try:
|
|
134
|
-
<!-- write code here -->
|
|
135
|
-
except HttpResponseError as e:
|
|
136
|
-
print('service responds error: {}'.format(e.response.json()))
|
|
137
|
-
```
|
|
138
107
|
{% endif %}
|