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.1
- 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
File details
Details for the file cloudmersive_cdr_api_client-3.1.1.tar.gz.
File metadata
- Download URL: cloudmersive_cdr_api_client-3.1.1.tar.gz
- Upload date:
- Size: 20.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3561fc89c540e252d1ad818aac4b5896e032a9e21b8a7c8cc4dd5c1d2e9b4b0c
|
|
| MD5 |
cb4e0d0159d1f1bc7a5823971c9c11ba
|
|
| BLAKE2b-256 |
47d7136834d61ee740d8d13232915b34df5ade79a58d5d8fdcd21d9bccc563bb
|