数据集成

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


cloudmersive_dataintegration_api_客户端

方便直接查询数据库备份文件,转换成其他文件格式。在

这个Python包为Cloudmersive Data Integration提供了一个本机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_dataintegration_api_client

入门

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

from__future__importprint_functionimporttimeimportcloudmersive_dataintegration_api_clientfromcloudmersive_dataintegration_api_client.restimportApiExceptionfrompprintimportpprint# Configure API key authorization: Apikeyconfiguration=cloudmersive_dataintegration_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_dataintegration_api_client.BackupConvertApi(cloudmersive_dataintegration_api_client.ApiClient(configuration))input_file='/path/to/file.txt'# file | Input file to perform the operation on (optional)try:# Lists all tables stored in a SQL Server Backup (.BAK) fileapi_response=api_instance.dataintegration_backup_convert_mssql_bak_get_tables_post(input_file=input_file)pprint(api_response)exceptApiExceptionase:print("Exception when calling BackupConvertApi->dataintegration_backup_convert_mssql_bak_get_tables_post: %s\n"%e)

API终结点文档

所有uri都是相对于https://localhost

ClassMethodHTTP requestDescription
BackupConvertApidataintegration_backup_convert_mssql_bak_get_tables_postPOST /dataintegration/backup/convert/mssql/bak/get/tablesLists all tables stored in a SQL Server Backup (.BAK) file
BackupConvertApidataintegration_backup_convert_mssql_bak_to_csv_postPOST /dataintegration/backup/convert/mssql/bak/to/csvConverts a SQL Server Backup (.BAK) file into CSV for a specified table

模型文档

授权文件

阿皮基

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

作者

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

推荐PyPI第三方库


热门话题
如何使用Netbeans在Java中创建可执行文件   swing Set不透明(真/假);JAVA   java JPA无法删除具有onotomany关系和cascatype all的实体   java Hibernate自参考映射难题   Java/从字符串到Java代码   java为什么我已经在取整了,却得到了一个无终止小数扩展?   java Wicket onsubmit信息对话框   java如何使用类、类加载器和URL获取资源   java在多模块项目中使用License Maven插件时出错   java HashSet“contains”方法是如何工作的?   图像JavaPNG显示为黑色   java如何在保持内容完整的同时在两个活动之间切换?   JAVA在Tomcat 7.0.27中,WAR无法为Prod正确解包   listview的java onclicklistener   JavaXPages托管Bean可以跨多个数据库工作吗?   java无法停止服务空对象引用错误Android   java将UTF8编码的字符串转换为人类可读的字符串   JavaSpring与JBossSAML的集成   java如何替换AuthorizationCodeInstalledApp类?