巴哥达比

cloudmersive-barcode-api-client的Python项目详细描述


Cloud客户端条形码

条形码API允许您生成条形码图像,并从条形码图像识别值。在

这个Python包为Cloudmersive Barcode API提供了一个本机API客户机

  • API版本:v1
  • 软件包版本:3.0.2
  • 生成包:io.swagger.codegen.语言.PythonClientCodegen在

要求

Python 2.7和3.4+

安装和使用

pip安装

如果python包托管在Github上,则可以直接从Github安装

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(您可能需要使用根权限运行pipsudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

然后导入包:

^{pr2}$

设置工具

通过Setuptools安装。在

python setup.py install --user

(或sudo python setup.py install为所有用户安装软件包)

然后导入包:

importcloudmersive_barcode_api_client

入门

请按照installation procedure操作,然后运行以下命令:

from__future__importprint_functionimporttimeimportcloudmersive_barcode_api_clientfromcloudmersive_barcode_api_client.restimportApiExceptionfrompprintimportpprint# Configure API key authorization: Apikeyconfiguration=cloudmersive_barcode_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 classapi_instance=cloudmersive_barcode_api_client.BarcodeLookupApi(cloudmersive_barcode_api_client.ApiClient(configuration))value='value_example'# str | Barcode valuetry:# Lookup EAN barcode value, return product dataapi_response=api_instance.barcode_lookup_ean_lookup(value)pprint(api_response)exceptApiExceptionase:print("Exception when calling BarcodeLookupApi->barcode_lookup_ean_lookup: %s\n"%e)

API终结点文档

所有uri都是相对于https://api.cloudmersive.com

ClassMethodHTTP requestDescription
BarcodeLookupApibarcode_lookup_ean_lookupPOST /barcode/lookup/eanLookup EAN barcode value, return product data
BarcodeScanApibarcode_scan_imagePOST /barcode/scan/imageScan and recognize an image of a barcode
GenerateBarcodeApigenerate_barcode_ean13POST /barcode/generate/ean-13Generate a EAN-13 code barcode as PNG file
GenerateBarcodeApigenerate_barcode_ean8POST /barcode/generate/ean-8Generate a EAN-8 code barcode as PNG file
GenerateBarcodeApigenerate_barcode_qr_codePOST /barcode/generate/qrcodeGenerate a QR code barcode as PNG file
GenerateBarcodeApigenerate_barcode_upcaPOST /barcode/generate/upc-aGenerate a UPC-A code barcode as PNG file
GenerateBarcodeApigenerate_barcode_upcePOST /barcode/generate/upc-eGenerate a UPC-E code barcode as PNG file

模型文档

授权文件

阿皮基

  • Type:API密钥
  • API key参数名:Apikey
  • Location:HTTP头

作者

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java没有主体的循环做什么?   java xtext项目中的默认内容辅助功能在哪里   通过相似(不相同)键的java分组映射   java Dagger 2 reinit singleton   检测图像中的矩形会产生不想要的结果(opencv,java)   Java方法调用与使用变量的性能比较   尝试使用hibernate连接到mysql时,java连接被拒绝   允许端口的java IP地址正则表达式   通过Socket实现java Android到PC的数据交换   java使用maven向类路径添加额外的配置文件夹   java我似乎无法从RMI存根获得socket工厂。为什么会这样?   java使用hibernate向数据库添加数据   java驱动程序对于Chromedriver不可执行   java编译错误。mysql。jdbc。驱动程序无法解析为变量