Python Client - Validate API

Step 1 - Add the Client with the PIP Package Manager

Install it using pip install:

 pip install git+https://github.com/Cloudmersive/Cloudmersive.APIClient.Python.Validate.git

Step 2 - Create an API Client object with API Key

Import the API Client package by adding this line to the top of your .py file:

import cloudmersive_validate_api_client
from cloudmersive_validate_api_client.rest import ApiException
 

Get your API Key (available in your Account Dashboard) and instantiate the API Client object:

# create an instance of the API class
api_instance = cloudmersive_validate_api_client.DomainApi()
domain = 'cloudmersive.com' # str | Domain name to check, for example \"cloudmersive.com\".  The input is a string so be sure to enclose it in double-quotes.

# Configure API key authorization: Apikey

api_instance.api_client.configuration.api_key = {}
api_instance.api_client.configuration.api_key['Apikey'] = 'f0c513bc-8c00-4491-830e-3e83b015feb6'

try:
    # Validate a domain name
    api_response = api_instance.domain_check(domain)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DomainApi->domain_check: %s\n" % e)


Sample Application

Download Sample

You can also download our sample application from GitHub.

Python Client - Image Recognition and Processing API

Step 1 - Add the Client with the PIP Package Manager

Install it using pip install:

 pip install git+https://github.com/Cloudmersive/Cloudmersive.APIClient.Python.ImageRecognition.git

Step 2 - Create an API Client object with API Key

Import the API Client package by adding this line to the top of your .py file:

import cloudmersive_image_api_client
from cloudmersive_image_api_client.rest import ApiException
 

Get your API Key (available in your Account Dashboard) and instantiate the API Client object:

api_instance = cloudmersive_image_api_client.FaceApi()
image_file = 'C:\\temp\\input.jpg' # file | Image file to perform the operation on.  Common file formats such as PNG, JPEG are supported.

api_instance.api_client.configuration.api_key = {}
api_instance.api_client.configuration.api_key['Apikey'] = 'f0c513bc-8c00-4491-830e-3e83b015feb6'

try:
    # Crop image to face (square)
    api_response = api_instance.face_crop_first(image_file)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling FaceApi->face_crop_first: %s\n" % e)




Python Client - Natural Language Processing (NLP) API

Step 1 - Add the Client with the PIP Package Manager

Install it using pip install:

 pip install git+https://github.com/Cloudmersive/Cloudmersive.APIClient.Python.NLP.git

Step 2 - Create an API Client object with API Key

Import the API Client package by adding this line to the top of your .py file:

import cloudmersive_nlp_api_client
from cloudmersive_nlp_api_client.rest import ApiException
 

Get your API Key (available in your Account Dashboard) and instantiate the API Client object:

# create an instance of the API class
api_instance = cloudmersive_nlp_api_client.ExtractEntitiesStringApi()
value = 'Cloudmersive is a leader in Highly Scalable Cloud APIs.' # str | Input string

api_instance.api_client.configuration.api_key = {}
api_instance.api_client.configuration.api_key['Apikey'] = '04d1a7be-c9d1-4d93-8ec4-e7545c2a570a'

try:
    # Extract entities from string
    api_response = api_instance.extract_entities_string_post(value)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ExtractEntitiesStringApi->extract_entities_string_post: %s\n" % e)




Python Client - Convert API

Step 1 - Add the Client with the PIP Package Manager

Install it using pip install:

 pip install git+https://github.com/Cloudmersive/Cloudmersive.APIClient.Python.Convert.git

Step 2 - Create an API Client object with API Key

Import the API Client package by adding this line to the top of your .py file:

import cloudmersive_convert_api_client
from cloudmersive_convert_api_client.rest import ApiException
 

Get your API Key (available in your Account Dashboard) and instantiate the API Client object:

# create an instance of the API class
api_instance = cloudmersive_convert_api_client.ConvertDataApi()
input_file = 'C:\\temp\\input.csv' # file | Input file to perform the operation on.

api_instance.api_client.configuration.api_key = {}
api_instance.api_client.configuration.api_key['Apikey'] = '04d1a7be-c9d1-4d93-8ec4-e7545c2a570a'

try:
    # CSV to JSON conversion
    api_response = api_instance.convert_data_csv_to_json(input_file)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ConvertDataApi->convert_data_csv_to_json: %s\n" % e)




Python Client - OCR API

Step 1 - Add the Client with the PIP Package Manager

Install it using pip install:

 pip install git+https://github.com/Cloudmersive/Cloudmersive.APIClient.Python.OCR.git

Step 2 - Create an API Client object with API Key

Import the API Client package by adding this line to the top of your .py file:

import cloudmersive_ocr_api_client
from cloudmersive_ocr_api_client.rest import ApiException
 

Get your API Key (available in your Account Dashboard) and instantiate the API Client object:

api_instance = cloudmersive_ocr_api_client.ImageOcrApi()
image_file = 'C:\\temp\\input.jpg' # file | Image file to perform OCR on.  Common file formats such as PNG, JPEG are supported.

api_instance.api_client.configuration.api_key = {}
api_instance.api_client.configuration.api_key['Apikey'] = '04d1a7be-c9d1-4d93-8ec4-e7545c2a570a'

try:
    # Converts an uploaded image in common formats such as JPEG, PNG into text via Optical Character Recognition.
    api_response = api_instance.image_ocr_post(image_file)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ImageOcrApi->image_ocr_post: %s\n" % e)




Python Client - Barcode API

Step 1 - Add the Client with the PIP Package Manager

Install it using pip install:

 pip install git+https://github.com/Cloudmersive/Cloudmersive.APIClient.Python.Barcode.git

Step 2 - Create an API Client object with API Key

Import the API Client package by adding this line to the top of your .py file:

import cloudmersive_validate_api_client
from cloudmersive_validate_api_client.rest import ApiException

Get your API Key (available in your Account Dashboard) and instantiate the API Client object:

# create an instance of the API class
api_instance = cloudmersive_barcode_api_client.BarcodeLookupApi()
value = 'value_example' # str | Barcode value

api_instance.api_client.configuration.api_key = {}
api_instance.api_client.configuration.api_key['Apikey'] = '04d1a7be-c9d1-4d93-8ec4-e7545c2a570a'

try:
    # Lookup a barcode value and return product data
    api_response = api_instance.barcode_lookup_ean_lookup(value)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling BarcodeLookupApi->barcode_lookup_ean_lookup: %s\n" % e)




Python Client - Virus API

Step 1 - Add the Client with the PIP Package Manager

Install it using pip install:

 pip install git+https://github.com/Cloudmersive/Cloudmersive.APIClient.Python.Virus.git

Step 2 - Create an API Client object with API Key

Import the API Client package by adding this line to the top of your .py file:

import cloudmersive_validate_api_client
from cloudmersive_validate_api_client.rest import ApiException

Get your API Key (available in your Account Dashboard) and instantiate the API Client object:

# create an instance of the API class
api_instance = cloudmersive_virus_api_client.ScanApi()
input_file = 'C:\\Temp\\input.csv' # file | Input file to perform the operation on.

api_instance.api_client.configuration.api_key = {}
api_instance.api_client.configuration.api_key['Apikey'] = '04d1a7be-c9d1-4d93-8ec4-e7545c2a570a'

try:
    # Scan a file for viruses
    api_response = api_instance.scan_file(input_file)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling ScanApi->scan_file: %s\n" % e)




50,000 free API calls/month, no credit card required

Get started now!