GAPIC library for the DLP API
Project description
DLP API: The Google Data Loss Prevention API provides methods for detection of privacy-sensitive fragments in text, images, and Google Cloud Platform storage repositories.
Quick Start
In order to use this library, you first need to go through the following steps:
Installation
Install this library in a virtualenv using pip. virtualenv is a tool to create isolated Python environments. The basic problem it addresses is one of dependencies and versions, and indirectly permissions.
With virtualenv, it’s possible to install this library without needing system install permissions, and without clashing with the installed system dependencies.
Mac/Linux
pip install virtualenv
virtualenv <your-env>
source <your-env>/bin/activate
<your-env>/bin/pip install google-cloud-dlp
Windows
pip install virtualenv
virtualenv <your-env>
<your-env>\Scripts\activate
<your-env>\Scripts\pip.exe install google-cloud-dlp
Preview
DlpServiceClient
from google.cloud import dlp_v2beta1 client = dlp_v2beta1.DlpServiceClient() name = 'EMAIL_ADDRESS' info_types_element = {'name': name} info_types = [info_types_element] inspect_config = {'info_types': info_types} type_ = 'text/plain' value = 'My email is example@example.com.' items_element = {'type': type_, 'value': value} items = [items_element] response = client.inspect_content(inspect_config, items)
Next Steps
- Read the Client Library Documentation for DLP API API to see other available methods on the client.
- Read the DLP API Product documentation to learn more about the product and see How-to Guides.
- View this repository’s main README to see the full list of Cloud APIs that we cover.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size google_cloud_dlp-0.1.0-py2.py3-none-any.whl (57.0 kB) | File type Wheel | Python version py2.py3 | Upload date | Hashes View |
Filename, size google-cloud-dlp-0.1.0.tar.gz (54.9 kB) | File type Source | Python version None | Upload date | Hashes View |
Hashes for google_cloud_dlp-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3987b16113adad99e80566d6937cdba981ced642b8a67eb8bd4361927fcfb045 |
|
MD5 | ccc14769919a3c53593b98a8677340b8 |
|
BLAKE2-256 | 4683f1d15bbb0ae0816aa26ddff78d968eff51d826c0dfa2b6ce37c8f035591c |