Skip to main content

dlpapi

Project description

cloudmersive_dlp_api_client

Easily and directly scan and detect sensitive data (PII) in input text.

This Python package provides a native API client for Cloudmersive DLP API

  • API version: v1
  • Package version: 3.0.0
  • Build package: io.swagger.codegen.languages.PythonClientCodegen

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on Github, you can install directly from Github

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import cloudmersive_dlp_api_client 

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import cloudmersive_dlp_api_client

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import cloudmersive_dlp_api_client
from cloudmersive_dlp_api_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Apikey
configuration = cloudmersive_dlp_api_client.Configuration()
configuration.api_key['Apikey'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Apikey'] = 'Bearer'

# create an instance of the API class
api_instance = cloudmersive_dlp_api_client.DetectApi(cloudmersive_dlp_api_client.ApiClient(configuration))
body = cloudmersive_dlp_api_client.DlpDocumentDetectionRequest() # DlpDocumentDetectionRequest | Input request (optional)

try:
    # Detect User Data in Document Image
    api_response = api_instance.detect_document(body=body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DetectApi->detect_document: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://localhost

Class Method HTTP request Description
DetectApi detect_document POST /dlp/detect/document Detect User Data in Document Image
DetectApi detect_document_advanced POST /dlp/detect/document/advanced Detect User Data in Document Image (Advanced)
DetectApi detect_text POST /dlp/detect/text Detect User Data in Input Text
DetectApi detect_text_advanced POST /dlp/detect/text/advanced Detect User Data in Input Text (Advanced)
RedactApi redact_document POST /dlp/redact/document Redact User Data in Document
RedactApi redact_document_advanced POST /dlp/redact/document/advanced Redact User Data in Document (Advanced)
RedactApi redact_text POST /dlp/redact/text Redact User Data in Input Text
RedactApi redact_text_advanced POST /dlp/redact/text/advanced Redact User Data in Input Text (Advanced)

Documentation For Models

Documentation For Authorization

Apikey

  • Type: API key
  • API key parameter name: Apikey
  • Location: HTTP header

Author

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

cloudmersive_dlp_api_client-3.0.0.tar.gz (81.4 kB view details)

Uploaded Source

File details

Details for the file cloudmersive_dlp_api_client-3.0.0.tar.gz.

File metadata

File hashes

Hashes for cloudmersive_dlp_api_client-3.0.0.tar.gz
Algorithm Hash digest
SHA256 7dca29b0b9a631a1eea834ab650ac565c96b64021df775410b34605296972d93
MD5 627b706c71e4a67aed1a9a23495b397e
BLAKE2b-256 7ea5a1354e18a3f5700346b8bc2e47f9704af03a65db4db846fe3fac9ae9f7d2

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