Skip to main content

CDR API

Project description

cloudmersive_cdr_api_client

Use the Content Disarm and Reconstruction API to remove security risks from documents by tearing them down, removing unsafe content and rebuilding them.

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

  • API version: v1
  • Package version: 3.1.2
  • 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_cdr_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_cdr_api_client

Getting Started

Please follow the installation procedure and then run the following:

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

# Configure API key authorization: Apikey
configuration = cloudmersive_cdr_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_cdr_api_client.FileSanitizationApi(cloudmersive_cdr_api_client.ApiClient(configuration))
input_file = '/path/to/file.txt' # file | Input document, or photos of a document, to extract data from (optional)

try:
    # Content Disarm and Reconstruction on a File
    api_response = api_instance.file(input_file=input_file)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FileSanitizationApi->file: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://api.cloudmersive.com

Class Method HTTP request Description
FileSanitizationApi file POST /cdr/sanitization/file Content Disarm and Reconstruction on a File
FileSanitizationApi file_advanced POST /cdr/sanitization/file/advanced Advanced Content Disarm and Reconstruction on a File
FileSanitizationApi file_to_pdf POST /cdr/sanitization/file/to/pdf Content Disarm and Reconstruction on a File with PDFA Output
FileSanitizationApi file_to_pdf_advanced POST /cdr/sanitization/file/to/pdf/advanced Advanced Content Disarm and Reconstruction on a File with PDFA Output

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_cdr_api_client-3.1.2.tar.gz (21.8 kB view details)

Uploaded Source

File details

Details for the file cloudmersive_cdr_api_client-3.1.2.tar.gz.

File metadata

File hashes

Hashes for cloudmersive_cdr_api_client-3.1.2.tar.gz
Algorithm Hash digest
SHA256 0e9f95035ac89c39bad53225271b728c936636ca05643c08402d1135ee9083cf
MD5 50bca892d80d1b0b83bd7c2021a886e5
BLAKE2b-256 5eabd1462e301dcf6e163f78e283c5d45f3319bb2e9ede971879a1fa9787fe0b

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