doctl-0.2.3
توضیحات
A Python wrapper for the Digital Ocean CLI utility — doctl.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | doctl-0.2.3 |
| نام | doctl |
| نسخه کتابخانه | 0.2.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Kenneth Reitz |
| ایمیل نویسنده | me@kennethreitz.org |
| آدرس صفحه اصلی | https://github.com/do-community/doctl |
| آدرس اینترنتی | https://pypi.org/project/doctl/ |
| مجوز | MIT |
python-doctl
============
A Python wrapper for the excellent [doctl](https://github.com/digitalocean/doctl) command-line utility, from [Digital Ocean](https://digitalocean.com).
Usage
-----
>>> import doctl
>>> for droplet in doctl.compute.droplet.list():
... print(droplet['name'])
pypi.kennethreitz.org
code.kennethreitz.org
build.kennethreitz.org
…
>>> for key in doctl.compute.ssh_key.list():
... print(key['name'])
Blink (iPad)
thoth
macbook
All methods return Python data structures, includinging timezone–aware Datetime objects.
Notes
-----
Use of the `DIGITALOCEAN_ACCESS_TOKEN` environment variable is recommended.
Available Namespaces
--------------------
The entire API surface of **doctl** is covered by this library, so the following
namespaces are available for your use and enjoyment:
- `compute.account`
- `compute.action`
- `compute.certificate`
- `compute.domain`
- `compute.domain_records`
- `compute.droplet`
- `compute.firewall`
- `compute.floating_ip`
- `compute.image`
- `compute.image_action`
- `compute.load_balancer`
- `compute.plugin`
- `compute.region_list`
- `compute.size_list`
- `compute.snapshot`
- `compute.ssh_key`
- `compute.tag`
- `compute.volume`
- `compute.volume_action`
Installation
------------
$ pipenv install doctl
✨🍰✨
نیازمندی
| مقدار | نام |
|---|---|
| - | maya |
| - | delegator.py |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6.0 | Python |
نحوه نصب
نصب پکیج whl doctl-0.2.3:
pip install doctl-0.2.3.whl
نصب پکیج tar.gz doctl-0.2.3:
pip install doctl-0.2.3.tar.gz