DongTai API SDK For Python

Overview

DongTai-SDK-Python

license Apache-2.0 GitHub stars GitHub forks GitHub Contributors

CI Github Version Release downloads

Quick start

You need a config file

config.json

{
    "DongTai":{
        "token":"your token",
        "url":"http://127.0.0.1:90"
    }
}

How to use:

from dongtai_sdk.DongTai import DongTai
dongTaiSdk = DongTai("config.json")

Support function (Continuous updating)

Project

dongTaiSdk.GetProjectList(page,pageSize,name=None)
dongTaiSdk.GetProjectVerList(projectId)
dongTaiSdk.AddProjectVersion(projectId,verName,description,isEdit=True)
dongTaiSdk.SearchProject(projectId)

Agent (Completed)

dongTaiSdk.DeleteAgent(agentId)
dongTaiSdk.StartAgent(agentId)
dongTaiSdk.StopAgent(agentId)
dongTaiSdk.ModifiedAgentAlias(agentId,alias)
dongTaiSdk.GetAgentDetail(agentId)
dongTaiSdk.GetAgentList(page=1,pageSize=50,projectName=None,state=None,token=None)
You might also like...
Python SDK for accessing the Hanko Authentication API

Hanko Authentication SDK for Python This package is maintained by Hanko. Contents Introduction Documentation Installation Usage Prerequisites Create a

Balsam Python client API & SDK

balsam No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) This Python package is automatically

Python SDK for interacting with the Frame.io API.
Python SDK for interacting with the Frame.io API.

python-frameio-client Frame.io Frame.io is a cloud-based collaboration hub that allows video professionals to share files, comment on clips real-time,

Python 3 SDK/Wrapper for Huobi Crypto Exchange Api

This packages intents to be an idiomatic PythonApi wrapper for https://www.huobi.com/ Huobi Api Doc: https://huobiapi.github.io/docs Showcase TODO Con

A wrapper for aqquiring Choice Coin directly through a Python Terminal. Leverages the TinyMan Python-SDK.

CHOICE_TinyMan_Wrapper A wrapper that allows users to acquire Choice Coin directly through their Terminal using ALGO and various Algorand Standard Ass

AWS SDK for Python

Boto3 - The AWS SDK for Python Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK) for Python, which allows Python developers to wri

Box SDK for Python

Box Python SDK Installing Getting Started Authorization Server-to-Server Auth with JWT Traditional 3-legged OAuth2 Other Auth Options Usage Documentat

Evernote SDK for Python

Evernote SDK for Python Evernote API version 1.28 This SDK is intended for use with Python 2.X For Evernote's beta Python 3 SDK see https://github.com

Python SDK for IEX Cloud
Python SDK for IEX Cloud

iexfinance Python SDK for IEX Cloud. Architecture mirrors that of the IEX Cloud API (and its documentation). An easy-to-use toolkit to obtain data for

Comments
  • [BUG]:json.decoder.JSONDecodeError when the url is wrong

    [BUG]:json.decoder.JSONDecodeError when the url is wrong

    File "", line 1, in File "/home/bidaya0/.local/lib/python3.9/site-packages/dongtai_sdk/DongTai.py", line 23, in GetProjectList repData = self.dongTaiApi.GetProjectList(page,pageSize,name) File "/home/bidaya0/.local/lib/python3.9/site-packages/dongtai_sdk/DongTaiApi.py", line 65, in GetProjectList return self.GetResponse("/projects","GET",data) File "/home/bidaya0/.local/lib/python3.9/site-packages/dongtai_sdk/DongTaiApi.py", line 27, in GetResponse return json.loads(rep.text) File "/usr/lib/python3.9/json/init.py", line 346, in loads return _default_decoder.decode(s) File "/usr/lib/python3.9/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.9/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

    Should some fault tolerance logic and hints be added?

    opened by Bidaya0 0
  • Error: ModuleNotFoundError: No module named 'requests'

    Error: ModuleNotFoundError: No module named 'requests'

    When i install it and use it with demo:

    from dongtai_sdk import DongTai
    
    dongTaiSdk = DongTai("config.json")
    
    project_list = dongTaiSdk.GetProjectList(name='OpenRASP')
    
    print(project_list)
    
    

    error msg

    Traceback (most recent call last):
      File "/Users/shengnanwu/CharmProjects/DemoProject/LoadData.py", line 7, in <module>
        from dongtai_sdk import DongTai
      File "/Users/shengnanwu/CharmProjects/DemoProject/venv/lib/python3.7/site-packages/dongtai_sdk/DongTai.py", line 13, in <module>
        from .DongTaiApi import DongTaiApi
      File "/Users/shengnanwu/CharmProjects/DemoProject/venv/lib/python3.7/site-packages/dongtai_sdk/DongTaiApi.py", line 9, in <module>
        import json,requests
    ModuleNotFoundError: No module named 'requests'
    
    bug 
    opened by exexute 0
Releases(v0.0.19)
  • v0.0.19(Jan 18, 2022)

  • v0.0.18(Dec 27, 2021)

  • v0.0.17(Dec 27, 2021)

  • v0.0.16(Dec 27, 2021)

  • v0.0.14(Dec 25, 2021)

  • v0.0.13(Dec 25, 2021)

  • v0.0.12(Dec 25, 2021)

  • v0.0.11(Dec 24, 2021)

  • v0.0.9(Dec 24, 2021)

    What's Changed

    • Update release.yml by @exexute in https://github.com/HXSecurity/DongTai-SDK-Python/pull/4

    Full Changelog: https://github.com/HXSecurity/DongTai-SDK-Python/compare/v0.0.8...v0.0.9

    Source code(tar.gz)
    Source code(zip)
  • v0.0.8(Dec 24, 2021)

  • v0.0.7(Dec 24, 2021)

    What's Changed

    • Update release.yml by @exexute in https://github.com/HXSecurity/DongTai-SDK-Python/pull/3

    Full Changelog: https://github.com/HXSecurity/DongTai-SDK-Python/compare/v0.0.3...v0.0.7

    Source code(tar.gz)
    Source code(zip)
  • v0.0.3(Dec 24, 2021)

    What's Changed

    • Feature: add ci (Closes #1) by @exexute in https://github.com/HXSecurity/DongTai-SDK-Python/pull/2

    New Contributors

    • @exexute made their first contribution in https://github.com/HXSecurity/DongTai-SDK-Python/pull/2

    Full Changelog: https://github.com/HXSecurity/DongTai-SDK-Python/commits/v0.0.3

    Source code(tar.gz)
    Source code(zip)
Owner
huoxian
火线安全平台 - 白帽子开发者社区。
huoxian
Graviti-python-sdk - Graviti Data Platform Python SDK

Graviti Python SDK Graviti Python SDK is a python library to access Graviti Data

Graviti 13 Dec 15, 2022
Python SDK for Facebook's Graph API

Facebook Python SDK This client library is designed to support the Facebook Graph API and the official Facebook JavaScript SDK, which is the canonical

Mobolic 2.7k Jan 7, 2023
The Official Dropbox API V2 SDK for Python

The offical Dropbox SDK for Python. Documentation can be found on Read The Docs. Installation Create an app via the Developer Console. Install via pip

Dropbox 828 Jan 5, 2023
Unofficial Medium Python Flask API and SDK

PyMedium - Unofficial Medium API PyMedium is an unofficial Medium API written in python flask. It provides developers to access to user, post list and

Engine Bai 157 Nov 11, 2022
Python SDK for the Buycoins API.

This library provides easy access to the Buycoins API using the Python programming language. It provides all the feature of the API so that you don't need to interact with the API directly. This library can be used with Python 3.6+

Musa Rasheed 48 May 4, 2022
qualysclient - a python SDK for interacting with the Qualys API

qualysclient - a python SDK for interacting with the Qualys API

null 5 Oct 28, 2022
A Python 2.7/3.x module for Amcrest Cameras using the SDK HTTP API.

A Python 2.7/3.x module for Amcrest Cameras using the SDK HTTP API. Amcrest and Dahua devices share similar firmwares. Dahua Cameras and NVRs also work with this module.

Marcelo Moreira de Mello 176 Dec 21, 2022
An Python SDK for QQ based on mirai-api-http v2.

Argon 一个基于 graia-broadcast 和 mirai-api-http v2 的 Python SDK。 本项目适用于 mirai-api-http 2.0 以上版本。 目前仍处于开发阶段,内部接口可能会有较大的变化。 The Stasis / 停滞 为维持 GraiaProject

BlueGlassBlock 1 Oct 29, 2021
An elegant mirai-api-http v2 Python SDK.

Ariadne 一个适用于 mirai-api-http v2 的 Python SDK。 本项目适用于 mirai-api-http 2.0 以上版本。 目前仍处于开发阶段,内部接口可能会有较大的变化。 安装 poetry add graia-ariadne 或 pip install graia

Graia Project 259 Jan 2, 2023