Skip to main content

Microsoft Azure Purview Datamap Client Library for Python

Project description

Azure Purview Datamap client library for Python

Microsoft Purview Data Map provides the foundation for data discovery and data governance. Microsoft Purview Data Map is a cloud native PaaS service that captures metadata about enterprise data present in analytics and operation systems on-premises and cloud. DataMapClient provides a set of APIs in the Purview Data Map service. For a full list of APIs, please refer to Data Map API.

Getting started

Installing the package

python -m pip install azure-purview-datamap

Prequisites

  • Python 3.8 or later is required to use this package.
  • You need an Azure subscription to use this package.
  • An existing Azure Purview Datamap instance.

Create with an Azure Active Directory Credential

To use an Azure Active Directory (AAD) token credential, provide an instance of the desired credential type obtained from the azure-identity library.

To authenticate with AAD, you must first pip install azure-identity

After setup, you can choose which type of credential from azure.identity to use. As an example, DefaultAzureCredential can be used to authenticate the client:

Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET

Use the returned token credential to authenticate the client:

>>> from azure.purview.datamap import DataMapClient
>>> from azure.identity import DefaultAzureCredential
>>> client = DataMapClient(endpoint='<endpoint>', credential=DefaultAzureCredential())

Key concepts

Client

This package offers request builders so you can build http requests and send these requests to the service using the send_request method. For more information on how to use request builders and our clients, see here.

Examples

>>> from azure.purview.datamap import DataMapClient
>>> from azure.identity import DefaultAzureCredential
>>> from azure.core.exceptions import HttpResponseError

>>> client = DataMapClient(endpoint='<endpoint>', credential=DefaultAzureCredential())
>>> try:
        client.type_definition.get()
    except HttpResponseError as e:
        print('service responds error: {}'.format(e.response.json()))

Troubleshooting

Next steps

For more generic samples, see our client docs.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

azure-purview-datamap-1.0.0b1.tar.gz (259.3 kB view details)

Uploaded Source

Built Distribution

azure_purview_datamap-1.0.0b1-py3-none-any.whl (270.6 kB view details)

Uploaded Python 3

File details

Details for the file azure-purview-datamap-1.0.0b1.tar.gz.

File metadata

File hashes

Hashes for azure-purview-datamap-1.0.0b1.tar.gz
Algorithm Hash digest
SHA256 1df6e74028b87f4bb55ce896874947ce55fc0e4e6f8e1d48b54f571a15065574
MD5 fcb6ff6fbc778e1da48734686f114950
BLAKE2b-256 ac2195227ec80ab914e9ab27be3a062a7ff2feb34cfe3da0cf575ffa44471aec

See more details on using hashes here.

File details

Details for the file azure_purview_datamap-1.0.0b1-py3-none-any.whl.

File metadata

File hashes

Hashes for azure_purview_datamap-1.0.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 5d0268174a0fcf92986ff9c0afd9df7992fc8a987a4206fd8304bf6cdc47bafd
MD5 299e22bb81e0e669766bad060f91bc87
BLAKE2b-256 9b0c1e06e5c66e9c0baa3cec59d1c74caa73e1703ace2e94d3e3f42171472c66

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page