This release is a pre-release and may not be stable for production use.
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.
Metadata
Release files for azure-purview-datamap 1.0.0b2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| azure_purview_datamap-1.0.0b2.tar.gz | 105.9 kB | Without provenance | Details for azure_purview_datamap-1.0.0b2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| azure_purview_datamap-1.0.0b2-py3-none-any.whl | Python 3 | none | any | Details for azure_purview_datamap-1.0.0b2-py3-none-any.whl |
Total release size: 215.6 kB
Release files / azure_purview_datamap-1.0.0b2.tar.gz
| Download URL | azure_purview_datamap-1.0.0b2.tar.gz |
|---|---|
| Size | 105.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
100946d1e63ccd577df2199c6f13083e9d6ee8b6e0772633641f73d6414b5b21
|
|
BLAKE2b-256 checksum How to use checksums |
e9575860b40cfd019f19393cc6eb19b853ede2d11709b3f2511c3175363ffab7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
RestSharp/106.13.0.0
|
Release files / azure_purview_datamap-1.0.0b2-py3-none-any.whl
| Download URL | azure_purview_datamap-1.0.0b2-py3-none-any.whl |
|---|---|
| Size | 109.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f1e8659da017456d1f6b3ec03365b226b086f58699e1e22db65a044587c1c938
|
|
BLAKE2b-256 checksum How to use checksums |
587f68b2de225943694b311b4b3dd75b98fa79bb27f42d947b41c55497be5fdf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
RestSharp/106.13.0.0
|
Security for azure-purview-datamap 1.0.0b2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.