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
Open API to list Viet Nam administrative divisions

Viet Nam province API Homepage: https://provinces.open-api.vn This is online tool to let my VietnamProvinces library reach more users. VietnamProvince

Nguyễn Hồng Quân 52 Dec 05, 2022
A Telegram Bot written in Python for mirroring files on the Internet to Google Drive

No support is going to be provided of any kind, only maintaining this for vps user on request. This is a Telegram Bot written in Python for mirroring

0 Dec 26, 2021
WebCash is an experimental new electronic cash ("e-cash") that enables decentralized and instant payments to anyone

Webcash WebCash is an experimental new electronic cash ("e-cash") that enables decentralized and instant payments to anyone, anywhere in the world. Us

Bryan Bishop 24 Dec 11, 2022
Collect links to profiles by username through search engines

Marple Summary Collect links to profiles by username through search engines (currently Google and DuckDuckGo). Quick Start ./marple.py soxoj Results:

125 Dec 19, 2022
rewise is an unofficial wrapper for google search's auto-complete feature

rewise is an unofficial wrapper for google search's auto-complete feature

Somdev Sangwan 71 Jul 19, 2022
A Telegram robot can clone medias from any chat to your own chat.

Clonebot A Telegram robot can clone medias from any chat to your own chat. Read the documentation to know how to use the bot Deploy Developer Document

Renjith Mangal 224 Dec 30, 2022
💬 Send iMessages using Python through the Shortcuts app.

py-imessage-shortcuts Send iMessages using Python through the Shortcuts app. Requires macOS Monterey (macOS 12) or later. Compatible with Apple Silico

Kevin Schaich 10 Nov 30, 2022
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

Evernote 612 Dec 30, 2022
Hello i am TELEGRAM GROUP MANAGEMENT BOT MY NAME IS Evil-Inside ⚡ i have both amazing modules

Evil-Inside DEMO BOT - Evil-Inside Hello i am TELEGRAM GROUP MANAGEMENT BOT MY NAME IS Evil-Inside ⚡ i have both amazing modules ℂ𝕆ℕ𝕋𝔸ℂ𝕋 𝕄𝔼 𝕆ℕ

PANDITHAN 52 Nov 20, 2022
SpamBot.py allows you, to spam other Chat Partners etc.

SpamBot -SpamBot.py allows you, to spam other Chat Partners etc. Install If you downloaded it yet, you have to install "requirements.txt" write the di

Marco 1 Jan 16, 2022
This is a Telegram video compress bot repo. By Binary Tech💫

This is a Telegram Video Compress Bot. Prouduct By Binary Tech 💫 Features Compresse videos and generate screenshots too.You can set custom video name

silentz lk 7 Mar 03, 2022
Wakatime Response In javascript and python

Project Title Wakatime Response In javascript and python Description just for refrence Getting Started Dependencies For Python: requests json For Java

Gjenius20 1 Dec 31, 2021
Dashboard to monitor the performance of your Binance Futures account

futuresboard A python based scraper and dashboard to monitor the performance of your Binance Futures account. Note: A local sqlite3 database config/fu

86 Dec 29, 2022
Nflmetrics - Johns Hopkins Spring 2022 Sports Analytics research project about NFL Draft Metrics

nflmetrics GitHub repo for Johns Hopkins Spring 2022 Sports Analytics research p

Anish Kulkarni 4 Feb 24, 2022
Cogs for Red-DiscordBot

matcha-cogs Cogs for Red-DiscordBot. Installation [p]repo add matcha-cogs

MatchaTeaLeaf 2 Aug 27, 2022
A python to scratch API connector. Can fetch data from the API and send it back in cloud variables.

Scratch2py Scratch2py or S2py is a easy to use, versatile tool to communicate with the Scratch API Based of scratchclient by Raihan142857 Installation

20 Jun 18, 2022
Replacement for the default Dark Sky Home Assistant integration using Pirate Weather

Pirate Weather Integrations This integration is designed to replace the default Dark Sky integration in Home Assistant with a slightly modified, but f

Alexander Rey 129 Jan 06, 2023
Code release for Transferable Curriculum for Weakly-Supervised Domain Adaptation (AAAI2019)

TCL Code release for Transferable Curriculum for Weakly-Supervised Domain Adaptation (AAAI2019) Dataset Office-31 dataset, with 0.4 label noise Requir

THUML @ Tsinghua University 17 Jul 07, 2022
YouTube playlist Files downloaded by FDM are not organized according to the original order on YouTube

Youtube-Playlist-File-Organizer YouTube playlist Files downloaded by Free Download Manager are not organized according to the original order on YouTub

David Mainoo 3 Dec 27, 2021
Companion "receiver" to matrix-appservice-webhooks for [matrix].

Matrix Webhook Receiver Companion "receiver" to matrix-appservice-webhooks for [matrix]. The purpose of this app is to listen for generic webhook mess

Kim Brose 13 Sep 29, 2022