A Python library for the NSSCTF Balderich API
Project description
balderich-py
- NSSCTF平台API Python包,你可以使用此库来和Balderich后端进行快速交互。编写属于你的自动化bot。
安装
-
你可以直接使用pip来进行安装本包
pip install balderich
-
或者
git clone https://github.com/NSSCTF/balderich-py.git cd balderich-py/ python setup.py install
-
请注意:你需要使用Python3.8及以上版本来安装本包。
使用
-
你可以通过以下方式来快速的创建一个客户端
import balderich # 直接传入字符串 client = balderich.NSSClient(key='xxx', secret='xxxx') # 传入配置文件路径 client = balderich.NSSClient(balderich.AuthConfig('config.json')) # 传入配置文件IO流 client = balderich.NSSClient(balderich.AuthConfig(open('config.json', 'rb')))
然后你便可以开始使用客户端下各模块API来进行交互,例如查询用户信息
data = client.user.get_user_info(1) print(data)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
balderich-1.1-py3-none-any.whl
(11.6 kB
view hashes)