Skip to main content

A Python library for the NSSCTF Balderich API

Project description

balderich-py

Issues Forks Stars Size

  • 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


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.5.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

balderich-1.5-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file balderich-1.5.tar.gz.

File metadata

  • Download URL: balderich-1.5.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for balderich-1.5.tar.gz
Algorithm Hash digest
SHA256 56d130826d74078eacc861a58d2f9a66d035bfeeb950a1d842818081adbfd118
MD5 00880c8f2381325b2564ced99bb09042
BLAKE2b-256 45bbae5126849abc912678404ca650eb5e269850a74492876cfb6ed3387f1f00

See more details on using hashes here.

File details

Details for the file balderich-1.5-py3-none-any.whl.

File metadata

  • Download URL: balderich-1.5-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for balderich-1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 81fa64198d652384440fd51250fea1813e50e5b1a67fac1e7309117eed8dc866
MD5 072040dc9fa1f3d4ca0c90f551b76041
BLAKE2b-256 90944aeb3b3a857281b6f1d8a52e2d302d595934b277c6ffcae06ba25164a5bf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page