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
A discord Server Bot made with Python, This bot helps people feel better by inspiring them with motivational quotes or by responding with a great message, also the users of the server can create custom messages by telling the bot with Commands.

A discord Server Bot made with Python, This bot helps people feel better by inspiring them with motivational quotes or by responding with a great message, also the users of the server can create cust

Aran 1 Oct 13, 2021
Simple Telegram Bot To Get Feedback from users & Some Other Features

FeedbackBot Simple Telegram Bot To Get Feedback from users & Some Other Features. Features Get Feedback from users Reply to user's feedback Customisab

Arun 18 Dec 29, 2022
Salmanul Farisx Bot With Python

Salman_Farisx_Bot How To Deploy Video Subscribe YouTube Channel Added Features Imdb posters for autofilter. Imdb rating for autofilter. Custom caption

1 Dec 23, 2021
Telegram hack bot [ For Dev ]

Telegram hack bot [ For Dev ]

Alison Parker 1 Jul 04, 2022
A Telegram Filter Bot, Support Unlimited Filter. Also, The Bot can auto-filter telegram File | video

A Telegram Filter Bot, Support Unlimited Filter. Also, The Bot can auto-filter telegram File | video

Hash Minner 3 Nov 27, 2021
Discord Selfbot, 90+ commands

Setting the bot up. STEP 1: copy the directory yook.club selfbot was downloaded and extracted into, open cmd and type "cd " then paste. STEP 2: python

yook 1 Dec 12, 2021
Terminal-Trade(Panel API) For Binance

Binance-Trade-Project Binance Futures Terminal-Trade(API) & Binance This Project Worth Around 500 Bucks. **I Did This Project For SomeOne And He

Cyber 9 Dec 30, 2021
A Telegram Bot which notifies the user when a vaccine is available on CoWin Platform.

Cowin Vaccine Availability Notifier Telegram Bot A bot that notifies the available vaccines at given district in realtime. Introduction • Requirements

Arham Shah 7 Jul 31, 2021
A hyper-user friendly bot framework built on hikari

Framework A hyper-user friendly bot framework built on hikari. Framework is based off the blocking discord library disco, In both modularity and struc

Vincent 1 Jan 10, 2022
Python bindings for BigML.io

BigML Python Bindings BigML makes machine learning easy by taking care of the details required to add data-driven decisions and predictive power to yo

BigML Inc, Machine Learning made easy 271 Dec 27, 2022
✨ Music&Video Userbot

🎶 Fizi - UserBot 🎶 🤖 Telegram UserBot Untuk Memutar Lagu Dan Video Di Obrolan Suara Telegram. ✨ Didukung Oleh PyTgCalls Pyrogram 📝 Persyaratan Pyt

F I Z I • Ɱeƙípres 4 Mar 29, 2022
CLI tool that checks who does and who does not follow you back on Instagram

CLI tool that checks who does and who does not follow you back on Instagram. It also checks who you don't follow back on Instagram.

Ayushman Roy 3 Dec 02, 2022
Decryption utility for PGP Whole Disk Encryption

wdepy: Decryption and Inspection for PGP WDE Disks This is a small python tool to inspect and decrypt disk images encrypted with PGP Whole Disk Encryp

Brendan Dolan-Gavitt 17 Oct 07, 2022
"zpool iostats" for humans; find the slow parts of your ZFS pool

Getting the gist of zfs statistics vpool-demo.mp4 The ZFS command "zpool iostat" provides a histogram listing of how often it takes to do things in pa

Chad 57 Oct 24, 2022
Automatically pick a winner who Retweeted, Commented, and Followed your Twitter account!

AutomaticTwitterGiveaways automates selecting winners for "Retweet, Comment, Follow" type Twitter giveaways.

1 Jan 13, 2022
Automated AWS account hardening with AWS Control Tower and AWS Step Functions

Automate activities in Control Tower provisioned AWS accounts Table of contents Introduction Architecture Prerequisites Tools and services Usage Clean

AWS Samples 20 Dec 07, 2022
A simple url uploader bot with permenent thumbnail support

URL-Uploader A simple url uploader bot with permenent thumbnail support Scrapped some code from @SpEcHIDe's AnyDLBot Repository Please fork this repos

Fayas Noushad 40 Nov 29, 2021
pokemon-colorscripts compatible for mac

Pokemon colorscripts some scripts to print out images of pokemons to terminal. Inspired by DT's colorscripts compilation Description Prints out colore

43 Jan 06, 2023
The official Pushy SDK for Python apps.

pushy-python The official Pushy SDK for Python apps. Pushy is the most reliable push notification gateway, perfect for real-time, mission-critical app

Pushy 1 Dec 21, 2021
A simple economy bot for discord!

Enter all the correct values in the given configuration.json file. Make sure that BOT_TOKEN is a string value, and that OWNER_ID and GUILD_ID are integer values.

WonkyPigs 0 Aug 22, 2022