Skip to main content

bandwagonhost panel api sdk

Project description

BWH

搬瓦工面板 API SDK

安装

使用pip安装

$ pip install turbotools

或者从源码包安装

$ git clone https://github.com/anshengme/turbotools
$ cd turbotools
$ python setup.py install

示例

  • 创建实例
>>> from bwh import BwhSdk
>>> bwh = BwhSdk(veid=598375,api_key='private_YJuvhyLXL5RwLJ2q9pVxlqi9')
  • 获取服务器信息
>>> bwh.get_service_info()
  • 获取可以安装的OS列表
>>> bwh.get_available_os()
{'error': 0, 'installed': 'centos-6-x86-bbr', 'templates': ['centos-6-x86', 'centos-6-x86-bbr', 'centos-6-x86_64', 'centos-6-x86_64-bbr', 'centos-7-x86_64', 'centos-7-x86_64-bbr', 'debian-7-x86', 'debian-7-x86_64', 'debian-8-x86', 'debian-8-x86_64', 'debian-9-x86', 'debian-9-x86_64', 'ubuntu-12.04-x86', 'ubuntu-12.04-x86_64', 'ubuntu-14.04-x86', 'ubuntu-14.04-x86_64', 'ubuntu-16.04-x86', 'ubuntu-16.04-x86_64', 'ubuntu-18.04-x86_64']}

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

bwh-0.0.1.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file bwh-0.0.1.tar.gz.

File metadata

  • Download URL: bwh-0.0.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for bwh-0.0.1.tar.gz
Algorithm Hash digest
SHA256 eab1a14f8fc6be42fdbeb725379ffbcec4e0646594e9f532e7346d54a4ea18b6
MD5 a3ab3c6f0aff3b8461760d91bcfa5736
BLAKE2b-256 f591b99b27acd6c9e5ad1c3766accb67dd354f1c1c7acdfa739237bc6ab06994

See more details on using hashes here.

Supported by

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