化石学restapi的Python包装器

py-fossolog的Python项目详细描述


py化石

关于Python的API包装。在

适用于化石3.5.0版

示例用法

fromfossologyimportFossologyfossology=Fossology(server='http://localhost:8085/repo/',auth={'username':'fossy','password':'fossy','token_scope':'write','token_expire':'2019-09-07'})# Get the root folderroot_folder=fossology.folder(folder_id=1)# Upload a file to the root folderupload=fossology.new_upload(target_folder=root_folder,fileInput='/tmp/sample.tar')# Schedule a scan on this new uploadjob=upload.schedule_agents(agents='''{   "analysis": {     "bucket": true,     "copyright_email_author": true,     "ecc": true,     "keyword": true,     "mime": true,     "monk": true,     "nomos": true,     "package": true   },   "decider": {     "nomos_monk": true,     "bulk_reused": true,     "new_scanner": true   },   "reuse": {     "reuse_upload": 0,     "reuse_group": 0,     "reuse_main": true,     "reuse_enhanced": true   } }''')# Generate a reportreport=upload.request_report_generation(reportFormat='unifiedreport')# Download the reportreport.download()

文件

待定

安装

使用以下命令安装

^{pr2}$

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

推荐PyPI第三方库


热门话题
java Android:在ListView上使用setOnItemClickListener   使用Netbeans 7.0连接到SQL Server的java正在挂起   java Spring3依赖项注入不适用于mule   java Flink SQL结果字段与LocalDateTime上请求的类型错误不匹配   java找不到文件的结尾   考虑到NamingStrategy,java有没有办法将字符串转换为JsonNode?   使用Netbeans/ant部署java(命令行)应用程序   java如何修复Spring引导多部分上载中的“所需请求部分不存在”   java在应用程序启动时通过引用获取映射未知目标实体属性异常   java形状旋转问题Java2d   Weblogic服务器上的java ExecuteAndWaitInterceptor问题   JavaSpringBoot:project将图像保存在错误的路径中,并且在使用IDEIntellji打开时不显示图像   类向java接口添加方法   Swing组件上的Java 7泛型   sql server如何从java获取用户名。sql。联系   java如何检查该行是否与正则表达式(regex)冲突?   java如何在spring引导安全中为计数失败登录设置验证登录为false   图像如何在Java中使PNG的白色透明?