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.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_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_to_pdf POST /cdr/sanitization/file/to/pdf 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.0.tar.gz (20.7 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for cloudmersive_cdr_api_client-3.1.0.tar.gz
Algorithm Hash digest
SHA256 9469a7ed0ed7b51c14601b4f9573242cfb6a573fac975c67ec1e88b6bb6dc9b2
MD5 1fe6b4073adf5bc39ef645bba2795efd
BLAKE2b-256 0256436f8b036b7dbc4a8db9aeb947ad525392ceca89d955cfb90feb5126c421

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