A Python library for the NSSCTF Balderich API
Project description
balderich-py
- NSSCTF平台API Python包,你可以使用此库来和Balderich后端进行快速交互。编写属于你的自动化bot。
安装
-
你可以直接使用pip来进行安装本包
pip install balderich
-
请注意:你需要使用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 Distribution
balderich-1.3.tar.gz
(9.8 kB
view details)
Built Distribution
balderich-1.3-py3-none-any.whl
(12.3 kB
view details)
File details
Details for the file balderich-1.3.tar.gz
.
File metadata
- Download URL: balderich-1.3.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4f7801617de121fa77271fb3dc3ab8e5fc90e1f6cfee86ff7281923adc09571 |
|
MD5 | c29abe4bd3c17b6715d965744d4490af |
|
BLAKE2b-256 | 028ec93bd0e4eb4b844fc002dccc725e99b6de2c50da541b2525e7d0213ee00a |
File details
Details for the file balderich-1.3-py3-none-any.whl
.
File metadata
- Download URL: balderich-1.3-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a53a0813fe74ca729d52f0758692b411f9a1346e7a71d3c5fe38b6f9f34404f |
|
MD5 | 127646186376ced4daf937aa189eac42 |
|
BLAKE2b-256 | e02ad3dbfdd790966367d5d0eed2a6362166d43420fb7eac0ec713efa3fe104b |