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.0b2.tar.gz (105.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

azure_purview_datamap-1.0.0b2-py3-none-any.whl (109.8 kB view details)

Uploaded Python 3

File details

Details for the file azure_purview_datamap-1.0.0b2.tar.gz.

File metadata

File hashes

Hashes for azure_purview_datamap-1.0.0b2.tar.gz
Algorithm Hash digest
SHA256 100946d1e63ccd577df2199c6f13083e9d6ee8b6e0772633641f73d6414b5b21
MD5 05fd4b20dd0ca21c8b1864ecb382707b
BLAKE2b-256 e9575860b40cfd019f19393cc6eb19b853ede2d11709b3f2511c3175363ffab7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for azure_purview_datamap-1.0.0b2-py3-none-any.whl
Algorithm Hash digest
SHA256 f1e8659da017456d1f6b3ec03365b226b086f58699e1e22db65a044587c1c938
MD5 719c35628b218d1165ebf2010ad1e426
BLAKE2b-256 587f68b2de225943694b311b4b3dd75b98fa79bb27f42d947b41c55497be5fdf

See more details on using hashes here.

Supported by

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