Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/autorest.python/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"homepage": "https://github.com/Azure/autorest.python/blob/main/README.md",
"dependencies": {
"@typespec/http-client-python": "~0.12.4",
"@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTAyNzc4NC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.12.4.tgz",
"@autorest/system-requirements": "~1.0.2",
"fs-extra": "~11.2.0",
"tsx": "~4.19.1"
Expand All @@ -47,4 +47,4 @@
"requirements.txt",
"generator/"
]
}
}
4 changes: 2 additions & 2 deletions packages/typespec-python/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"js-yaml": "~4.1.0",
"semver": "~7.6.2",
"tsx": "~4.19.1",
"@typespec/http-client-python": "~0.12.4",
"@typespec/http-client-python": "https://artprodcus3.artifacts.visualstudio.com/A0fb41ef4-5012-48a9-bf39-4ee3de03ee35/29ec6040-b234-4e31-b139-33dc4287b756/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL2F6dXJlLXNkay9wcm9qZWN0SWQvMjllYzYwNDAtYjIzNC00ZTMxLWIxMzktMzNkYzQyODdiNzU2L2J1aWxkSWQvNTAyNzc4NC9hcnRpZmFjdE5hbWUvYnVpbGRfYXJ0aWZhY3RzX3B5dGhvbg2/content?format=file&subPath=%2Fpackages%2Ftypespec-http-client-python-0.12.4.tgz",
"fs-extra": "~11.2.0"
},
"devDependencies": {
Expand Down Expand Up @@ -103,4 +103,4 @@
"chalk": "5.3.0",
"@types/fs-extra": "11.0.4"
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Overview

This package is generated by `@typespec/http-client-python` with Typespec.

## Getting started

### Prequisites

- Python 3.9 or later is required to use this package.

### Install the package

Step into folder where setup.py is then run:

```bash
pip install -e .
```

### Examples

```python
>>> from authentication.apikey import ApiKeyClient
>>> from corehttp.exceptions import HttpResponseError

>>> client = ApiKeyClient(endpoint='<endpoint>')
>>> try:
<!-- write code here -->
except HttpResponseError as e:
print('service responds error: {}'.format(e.response.json()))
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Overview

This package is generated by `@typespec/http-client-python` with Typespec.

## Getting started

### Prequisites

- Python 3.9 or later is required to use this package.

### Install the package

Step into folder where setup.py is then run:

```bash
pip install -e .
```

### Examples

```python
>>> from authentication.http.custom import CustomClient
>>> from corehttp.exceptions import HttpResponseError

>>> client = CustomClient(endpoint='<endpoint>')
>>> try:
<!-- write code here -->
except HttpResponseError as e:
print('service responds error: {}'.format(e.response.json()))
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Overview

This package is generated by `@typespec/http-client-python` with Typespec.

## Getting started

### Prequisites

- Python 3.9 or later is required to use this package.

### Install the package

Step into folder where setup.py is then run:

```bash
pip install -e .
```

### Examples

```python
>>> from authentication.oauth2 import OAuth2Client
>>> from corehttp.exceptions import HttpResponseError

>>> client = OAuth2Client(endpoint='<endpoint>')
>>> try:
<!-- write code here -->
except HttpResponseError as e:
print('service responds error: {}'.format(e.response.json()))
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Overview

This package is generated by `@typespec/http-client-python` with Typespec.

## Getting started

### Prequisites

- Python 3.9 or later is required to use this package.

### Install the package

Step into folder where setup.py is then run:

```bash
pip install -e .
```

### Examples

```python
>>> from authentication.union import UnionClient
>>> from corehttp.exceptions import HttpResponseError

>>> client = UnionClient(endpoint='<endpoint>')
>>> try:
<!-- write code here -->
except HttpResponseError as e:
print('service responds error: {}'.format(e.response.json()))
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Overview

This package is generated by `@typespec/http-client-python` with Typespec.

## Getting started

### Prequisites

- Python 3.9 or later is required to use this package.

### Install the package

Step into folder where setup.py is then run:

```bash
pip install -e .
```

### Examples

```python
>>> from encode.bytes import BytesClient
>>> from corehttp.exceptions import HttpResponseError

>>> client = BytesClient(endpoint='<endpoint>')
>>> try:
<!-- write code here -->
except HttpResponseError as e:
print('service responds error: {}'.format(e.response.json()))
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Overview

This package is generated by `@typespec/http-client-python` with Typespec.

## Getting started

### Prequisites

- Python 3.9 or later is required to use this package.

### Install the package

Step into folder where setup.py is then run:

```bash
pip install -e .
```

### Examples

```python
>>> from encode.datetime import DatetimeClient
>>> from corehttp.exceptions import HttpResponseError

>>> client = DatetimeClient(endpoint='<endpoint>')
>>> try:
<!-- write code here -->
except HttpResponseError as e:
print('service responds error: {}'.format(e.response.json()))
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Overview

This package is generated by `@typespec/http-client-python` with Typespec.

## Getting started

### Prequisites

- Python 3.9 or later is required to use this package.

### Install the package

Step into folder where setup.py is then run:

```bash
pip install -e .
```

### Examples

```python
>>> from encode.duration import DurationClient
>>> from corehttp.exceptions import HttpResponseError

>>> client = DurationClient(endpoint='<endpoint>')
>>> try:
<!-- write code here -->
except HttpResponseError as e:
print('service responds error: {}'.format(e.response.json()))
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Overview

This package is generated by `@typespec/http-client-python` with Typespec.

## Getting started

### Prequisites

- Python 3.9 or later is required to use this package.

### Install the package

Step into folder where setup.py is then run:

```bash
pip install -e .
```

### Examples

```python
>>> from encode.numeric import NumericClient
>>> from corehttp.exceptions import HttpResponseError

>>> client = NumericClient(endpoint='<endpoint>')
>>> try:
<!-- write code here -->
except HttpResponseError as e:
print('service responds error: {}'.format(e.response.json()))
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Overview

This package is generated by `@typespec/http-client-python` with Typespec.

## Getting started

### Prequisites

- Python 3.9 or later is required to use this package.

### Install the package

Step into folder where setup.py is then run:

```bash
pip install -e .
```

### Examples

```python
>>> from headasbooleanfalse import VisibilityClient
>>> from corehttp.exceptions import HttpResponseError

>>> client = VisibilityClient(endpoint='<endpoint>')
>>> try:
<!-- write code here -->
except HttpResponseError as e:
print('service responds error: {}'.format(e.response.json()))
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Overview

This package is generated by `@typespec/http-client-python` with Typespec.

## Getting started

### Prequisites

- Python 3.9 or later is required to use this package.

### Install the package

Step into folder where setup.py is then run:

```bash
pip install -e .
```

### Examples

```python
>>> from headasbooleantrue import VisibilityClient
>>> from corehttp.exceptions import HttpResponseError

>>> client = VisibilityClient(endpoint='<endpoint>')
>>> try:
<!-- write code here -->
except HttpResponseError as e:
print('service responds error: {}'.format(e.response.json()))
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Overview

This package is generated by `@typespec/http-client-python` with Typespec.

## Getting started

### Prequisites

- Python 3.9 or later is required to use this package.

### Install the package

Step into folder where setup.py is then run:

```bash
pip install -e .
```

### Examples

```python
>>> from parameters.basic import BasicClient
>>> from corehttp.exceptions import HttpResponseError

>>> client = BasicClient(endpoint='<endpoint>')
>>> try:
<!-- write code here -->
except HttpResponseError as e:
print('service responds error: {}'.format(e.response.json()))
```
Loading
Loading