一个api包装器,用于促进与threadfix的交互。

threadfix_api的Python项目详细描述


一个python api包装器,用于促进与ThreadFix的交互。

这个包实现了ThreadFix 2.2.2(4月30日)中提供的所有API功能

快速启动

有几个快速启动选项:

  • 使用pip安装(推荐):pip install threadfix_api
  • Download the latest release
  • 克隆存储库:git clone https://github.com/aparsons/threadfix_api.git

示例

# import the packagefromthreadfix_apiimportthreadfix# setup threadfix connection informationhost='http://localhost:8080/threadfix/'api_key='your_api_key_from_threadfix'# instantiate the threadfix api wrappertf=threadfix.ThreadFixAPI(host,api_key)# If you need to disable certificate verification, set verify_ssl to False.# tf = threadfix.ThreadFixAPI(host, api_key, verify_ssl=False)# You can also specify a local cert to use as client side certificate, as a# single file (containing the private key and the certificate) or as a tuple# of both file's path.# cert=('/path/server.crt', '/path/key')# tf = threadfix.ThreadFixAPI(host, api_key, cert=cert)# rock and rollteams=tf.list_teams()ifteams.success:print(teams.data)# Decoded JSON objectforteaminteams.data:print(team['name'])# Print the name of each teamelse:print('Uh Oh! '+teams.message)

每个可用方法的支持信息都可以在documentation中找到。

错误和功能请求

有bug或功能请求吗?请先查找现有和关闭的问题。如果您的问题或想法尚未解决,please open a new issue

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

推荐PyPI第三方库


热门话题
如何使用java从xml文件中删除标记属性   HashMap的java自定义键   java ListView在目录中显示文件时出错   JavaSpring建议:代理机制与类或接口上的@Transactional   java我对th有问题:如果在春天   是否有任何API或网站可以对我的Java代码进行颜色编码并将其转换为html?   java从资产中的文本文件中读取两次,扫描仪不带缓冲读取器   java是否可以将RestHighLevelClient与假定角色一起使用?   java在java8流中下载文件的有效方法   具有多对一映射的java kafka流左连接   带循环的java灰度/渐变   用Java创建CAB文件   java取代了JTable的组合框编辑器   与Websocket的java连接   JavaSpringBootSecurity不会重定向对configure(httpsecurityhttp)方法的oauth/authorize调用   java Spring注入变量为null   java Restlet无法处理json   java中的函数未完成   用java实现带记录文件的排序