You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sdk/schemaregistry/azure-schemaregistry/README.md
+34-21Lines changed: 34 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,10 +14,10 @@ _Azure SDK Python packages support for Python 2.7 is ending 01 January 2022. For
14
14
15
15
### Install the package
16
16
17
-
Install the Azure Schema Registry client library and Azure Identity client library for Python with [pip][pip]:
17
+
Install the Azure Schema Registry client library for Python with [pip][pip]:
18
18
19
19
```Bash
20
-
pip install azure-schemaregistry azure-identity
20
+
pip install azure-schemaregistry
21
21
```
22
22
23
23
### Prerequisites:
@@ -27,7 +27,23 @@ To use this package, you must have:
27
27
* Python 2.7, 3.6 or later - [Install Python][python]
28
28
29
29
### Authenticate the client
30
-
Interaction with Schema Registry starts with an instance of SchemaRegistryClient class. You need the fully qualified namespace and AAD credential to instantiate the client object.
30
+
31
+
Interaction with Schema Registry starts with an instance of SchemaRegistryClient class. The client constructor takes the fully qualified namespace and an Azure Active Directory credential:
32
+
33
+
* The fully qualified namespace of the Schema Registry instance should follow the format: `<yournamespace>.servicebus.windows.net`.
34
+
35
+
* An AAD credential that implements the [TokenCredential][token_credential_interface] protocol should be passed to the constructor. There are implementations of the `TokenCredential` protocol available in the
36
+
[azure-identity package][pypi_azure_identity]. To use the credential types provided by `azure-identity`, please install the Azure Identity client library for Python with [pip][pip]:
37
+
38
+
```Bash
39
+
pip install azure-identity
40
+
```
41
+
42
+
* Additionally, to use the async API supported on Python 3.6+, you must first install an async transport, such as [aiohttp](https://pypi.org/project/aiohttp/):
43
+
44
+
```Bash
45
+
pip install aiohttp
46
+
```
31
47
32
48
**Create client using the azure-identity library:**
- Schema: Schema is the organization or structure for data.
62
+
- Schema: Schema is the organization or structure for data. More detailed information can be found [here][schemas].
63
+
64
+
- Schema Group: A logical group of similar schemas based on business criteria, which can hold multiple versions of a schema. More detailed information can be found [here][schema_groups].
47
65
48
66
- SchemaRegistryClient: `SchemaRegistryClient` provides the API for storing and retrieving schemas in schema registry.
49
67
@@ -67,8 +85,8 @@ from azure.schemaregistry import SchemaRegistryClient
Please take a look at the [samples][sr_samples] directory for detailed examples of how to use this library to register and retrieve schema to/from Schema Registry.
188
206
189
-
### Event Hubs and Avro Serializer
190
-
191
-
We provide [azure-schemaregistry-avroserializer][schemaregistry_avroserializer_pypi] library as serializer
192
-
implementation to serialize/deserialize avro data integrated with `azure-schemaregistry` for automatic schema registration and retrieval.
193
-
It integrates nicely with the [EventHubs SDK][eventhubs_repo].
194
-
For more information and sample codes, please refer to the [Azure Schema Registry Avro Serializer SDK][schemaregistry_avroserializer_repo].
195
-
196
207
## Contributing
197
208
198
209
This project welcomes contributions and suggestions. Most contributions require you to agree to a
@@ -215,10 +226,12 @@ contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additio
0 commit comments