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
Metadata
Release files for cloudmersive-cdr-api-client 3.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cloudmersive_cdr_api_client-3.1.2.tar.gz | 21.8 kB | Details |
Release files / cloudmersive_cdr_api_client-3.1.2.tar.gz
| Download URL | cloudmersive_cdr_api_client-3.1.2.tar.gz |
|---|---|
| Size | 21.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0e9f95035ac89c39bad53225271b728c936636ca05643c08402d1135ee9083cf
|
|
BLAKE2b-256 checksum How to use checksums |
5eabd1462e301dcf6e163f78e283c5d45f3319bb2e9ede971879a1fa9787fe0b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.10
|