Generate a EAN-8 code barcode as PNG file in Python

pip install cloudmersive-barcode-api-clientfrom __future__ import print_function
import time
import cloudmersive_barcode_api_client
from cloudmersive_barcode_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: Apikey
configuration = cloudmersive_barcode_api_client.Configuration()
configuration.api_key['Apikey'] = 'YOUR_API_KEY'
# create an instance of the API class
api_instance = cloudmersive_barcode_api_client.GenerateBarcodeApi(cloudmersive_barcode_api_client.ApiClient(configuration))
value = 'value_example' # str | Barcode value to generate from
try:
# Generate a EAN-8 code barcode as PNG file
api_response = api_instance.generate_barcode_ean8(value)
pprint(api_response)
except ApiException as e:
print("Exception when calling GenerateBarcodeApi->generate_barcode_ean8: %s\n" % e)

--

--

--

There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

The Agile Advisor: The Hangout (Event Review)

Unblocking our release train with Istio traffic management

CS373p Spring 2022 Week 5: Andrew Luo

Perform Subjectivity and Objectivity Analysis on Text in C#

Publishing to Maven Central is easy

Last Day On Earth Hack 2019 — Get 999k Resources

Python Packages For Data Science

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Cloudmersive

Cloudmersive

There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.

More from Medium

Generate a UPC-E code barcode as PNG File in Python

How To Create a File Converter in Python

My first REST Api in python

How to Send WhatsApp API using Python | Quickstart