twc-cli 2.4.1__py3-none-any.whl → 2.6.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of twc-cli might be problematic. Click here for more details.
- CHANGELOG.md +46 -0
- twc/__main__.py +2 -0
- twc/__version__.py +1 -1
- twc/api/base.py +5 -8
- twc/api/client.py +95 -11
- twc/api/types.py +64 -7
- twc/apiwrap.py +2 -2
- twc/commands/__init__.py +1 -0
- twc/commands/common.py +18 -2
- twc/commands/firewall.py +238 -29
- twc/commands/floating_ip.py +296 -0
- twc/commands/image.py +10 -7
- twc/commands/project.py +1 -2
- twc/commands/server.py +75 -21
- twc/commands/storage.py +7 -3
- twc/commands/vpc.py +23 -9
- twc/fmt.py +1 -1
- twc/vars.py +3 -5
- twc_cli-2.6.0.dist-info/METADATA +83 -0
- twc_cli-2.6.0.dist-info/RECORD +36 -0
- {twc_cli-2.4.1.dist-info → twc_cli-2.6.0.dist-info}/WHEEL +1 -1
- twc_cli-2.4.1.dist-info/METADATA +0 -66
- twc_cli-2.4.1.dist-info/RECORD +0 -35
- {twc_cli-2.4.1.dist-info → twc_cli-2.6.0.dist-info}/COPYING +0 -0
- {twc_cli-2.4.1.dist-info → twc_cli-2.6.0.dist-info}/entry_points.txt +0 -0
twc/vars.py
CHANGED
|
@@ -6,11 +6,9 @@ expand or other infrastructure or product changes occur.
|
|
|
6
6
|
|
|
7
7
|
# Service URLs
|
|
8
8
|
CONTROL_PANEL_URL = "https://timeweb.cloud/my"
|
|
9
|
-
S3_ENDPOINT = "s3.timeweb.com"
|
|
10
9
|
|
|
11
10
|
# Location specific parameters. May change later.
|
|
12
|
-
REGIONS_WITH_CONFIGURATOR = ["ru-1", "ru-2", "pl-1", "kz-1", "nl-1"]
|
|
13
11
|
REGIONS_WITH_IPV6 = ["ru-1", "pl-1"]
|
|
14
|
-
REGIONS_WITH_IMAGES = ["ru-1", "pl-1", "nl-1"]
|
|
15
|
-
REGIONS_WITH_LAN = ["ru-1", "pl-1"]
|
|
16
|
-
|
|
12
|
+
REGIONS_WITH_IMAGES = ["ru-1", "ru-3", "kz-1", "pl-1", "nl-1"]
|
|
13
|
+
REGIONS_WITH_LAN = ["ru-1", "ru-3", "nl-1", "pl-1"]
|
|
14
|
+
ZONES_WITH_LAN = ["spb-1", "spb-4", "msk-1", "ams-1", "gdn-1"]
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: twc-cli
|
|
3
|
+
Version: 2.6.0
|
|
4
|
+
Summary: Timeweb Cloud Command Line Interface.
|
|
5
|
+
Home-page: https://github.com/timeweb-cloud/twc
|
|
6
|
+
License: MIT
|
|
7
|
+
Author: ge
|
|
8
|
+
Author-email: dev@timeweb.cloud
|
|
9
|
+
Requires-Python: >=3.8.19,<4.0.0
|
|
10
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Requires-Dist: colorama (>=0.4.6,<0.5.0)
|
|
17
|
+
Requires-Dist: pygments (>=2.18.0,<3.0.0)
|
|
18
|
+
Requires-Dist: pyyaml (>=6.0.1,<7.0.0)
|
|
19
|
+
Requires-Dist: requests (>=2.32.3,<3.0.0)
|
|
20
|
+
Requires-Dist: shellingham (>=1.5.4,<2.0.0)
|
|
21
|
+
Requires-Dist: toml (>=0.10.2,<0.11.0)
|
|
22
|
+
Requires-Dist: typer-slim (>=0.12.3,<0.13.0)
|
|
23
|
+
Project-URL: Repository, https://github.com/timeweb-cloud/twc
|
|
24
|
+
Description-Content-Type: text/markdown
|
|
25
|
+
|
|
26
|
+
<picture>
|
|
27
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://ec650031-twc-cli.s3.timeweb.cloud/dark.svg" type="image/svg+xml">
|
|
28
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://ec650031-twc-cli.s3.timeweb.cloud/dark.png" type="image/png">
|
|
29
|
+
<source media="(prefers-color-scheme: light)" srcset="https://ec650031-twc-cli.s3.timeweb.cloud/light.svg" type="image/svg+xml">
|
|
30
|
+
<source media="(prefers-color-scheme: light)" srcset="https://ec650031-twc-cli.s3.timeweb.cloud/light.png" type="image/png">
|
|
31
|
+
<img alt="TWC CLI" src="https://ec650031-twc-cli.s3.timeweb.cloud/light.png">
|
|
32
|
+
</picture>
|
|
33
|
+
|
|
34
|
+
Timeweb Cloud Command Line Interface and simple SDK 💫
|
|
35
|
+
|
|
36
|
+
* [Руководство пользователя](https://github.com/timeweb-cloud/twc/blob/master/docs/ru/README.md) 🇷🇺
|
|
37
|
+
* [Command Line Interface (CLI) Reference](https://github.com/timeweb-cloud/twc/blob/master/docs/ru/CLI_REFERENCE.md)
|
|
38
|
+
|
|
39
|
+
# Installation
|
|
40
|
+
|
|
41
|
+
From PyPI registry via pip:
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
pip install twc-cli
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Using [pipx](https://pipx.pypa.io/stable/):
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
pipx install twc-cli
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Or install [zippap](https://docs.python.org/3/library/zipapp.html) in your PATH.
|
|
54
|
+
Look for prebuilt `.pyz` archives on [releases page](https://github.com/timeweb-cloud/twc/releases/latest).
|
|
55
|
+
|
|
56
|
+
# Getting started
|
|
57
|
+
|
|
58
|
+
Get Timeweb Cloud [access token](https://timeweb.cloud/my/api-keys) and
|
|
59
|
+
configure **twc** with command:
|
|
60
|
+
|
|
61
|
+
```
|
|
62
|
+
twc config
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Enter your access token and hit `Enter`.
|
|
66
|
+
|
|
67
|
+
Configuration done! Let's use:
|
|
68
|
+
|
|
69
|
+
```
|
|
70
|
+
twc --help
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
# Shell completion
|
|
74
|
+
|
|
75
|
+
To install completion script run:
|
|
76
|
+
|
|
77
|
+
```
|
|
78
|
+
twc --install-completion
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
**twc** automatically detect your shell. Supported: Bash, Zsh, Fish, PowerShell.
|
|
82
|
+
|
|
83
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
CHANGELOG.md,sha256=4VPeBGreHTzwFwgjCyNh1132Sx3glB2yBHBypJnl_fU,24717
|
|
2
|
+
COPYING,sha256=fpJLxZS_kHr_659xkpmqEtqHeZp6lQR9CmKCwnYbsmE,1089
|
|
3
|
+
twc/__init__.py,sha256=NwPAMNw3NuHdWGQvWS9_lromVF6VM194oVOipojfJns,113
|
|
4
|
+
twc/__main__.py,sha256=YBqi1OMSDaZnu2q8OyNa6N-dkVI90n6DZrJbUvYbHJA,2407
|
|
5
|
+
twc/__version__.py,sha256=Pqtq12hKiQFbdtW9mzEN58Z8FqFqqIp-iWJljwSSYUU,442
|
|
6
|
+
twc/api/__init__.py,sha256=SXew0Fe51M7nRBNQaaLRH4NjnRHkQUn7J26OCkQsftA,128
|
|
7
|
+
twc/api/base.py,sha256=QRefnIgmlbz8n37GLBKeAK1AtzkcNo1IFjZgHDDECJ4,7912
|
|
8
|
+
twc/api/client.py,sha256=LSe8pH684fh1u2jxj-IY8O40NvFsqwVctHrshfctRIE,58482
|
|
9
|
+
twc/api/exceptions.py,sha256=UzK3pKRffcXlhnkPy6MDjP_DygVoV17DuZ_mdNbOzts,2369
|
|
10
|
+
twc/api/types.py,sha256=HCxdTi-o8nVq4ShPthd2fUvlYufEoXafx_6qrNHFH04,5406
|
|
11
|
+
twc/apiwrap.py,sha256=0SmFZUH013jKHlpAQmsIySMtFuNtGvkMLQv0zTVJijg,2780
|
|
12
|
+
twc/commands/__init__.py,sha256=hvTpQByt7wfl9hVo7xRPCdwAQpctoFiBVdaMLHDqKbs,422
|
|
13
|
+
twc/commands/account.py,sha256=6T7J3McTXJKzT7Gi_AgRcKpWdeXcmBTcpwFF0GjzADo,4998
|
|
14
|
+
twc/commands/balancer.py,sha256=QAouc74ZT5go11gB1vjjfYtd1luTmWrfpACPwokZ5sU,20278
|
|
15
|
+
twc/commands/common.py,sha256=Wph8cVogUNNvc456SQrASb7mv7G88I8ETwHgISVjLQQ,8282
|
|
16
|
+
twc/commands/config.py,sha256=hoRtxn2VRxIsuy9vgO6yd0Cu15Rbl-uYMZeU0Ix7dG0,8797
|
|
17
|
+
twc/commands/database.py,sha256=2NZ-TyRBkFgfYJyUdZUcfdqSaX7QVdWDU4k_yQNtUvo,16052
|
|
18
|
+
twc/commands/domain.py,sha256=SHOERsEvmlkdKQV5kaiEgMOLZme5ykW8LCUd1IF1Zzo,15624
|
|
19
|
+
twc/commands/firewall.py,sha256=KNolqbi2rsppOZwbs_j3yoZQt-0wKbj1JPGiZdfGxDE,27439
|
|
20
|
+
twc/commands/floating_ip.py,sha256=G9nD5BbHCZcuytbzeneDJWQDhd8c8WRtq9pAfwI9m7E,8747
|
|
21
|
+
twc/commands/image.py,sha256=OviQwegXK55H3TBlroCASVcgj2QUVCTo0ZhF5ug9eT8,8165
|
|
22
|
+
twc/commands/kubernetes.py,sha256=-Cgas1vFVMcrWGinjstuUz3sqX0ZNXv_4mwPwuwKeLE,20870
|
|
23
|
+
twc/commands/project.py,sha256=0z0MmkW8CVFb8emftE5OshoAwdLBZq_otQjNpeuuklU,10750
|
|
24
|
+
twc/commands/server.py,sha256=nySxygbA1ZwLCE53JjhabLAI7uZjnFE_RdJ_8JzZvOU,70341
|
|
25
|
+
twc/commands/ssh_key.py,sha256=NHgTPhAQpDzt-iPHHVo4XqUJvujNqf019N6N9qYZ9Us,7941
|
|
26
|
+
twc/commands/storage.py,sha256=qt7_4rvnM2gnN4a0K4KEDoNZ_-2buvMNnCSJIXxQszs,19424
|
|
27
|
+
twc/commands/vpc.py,sha256=SAht6UD17mU0d_AZY6W34VEYs7CqUsS2iDakPFxAFQU,8876
|
|
28
|
+
twc/fmt.py,sha256=f8submLhHnm8OXBl_4Oe4tuhhMKvgTK1PP1y_25TmyU,6904
|
|
29
|
+
twc/typerx.py,sha256=AZ6BgTQvlrZYfKVYd9YqRNQnAR2XuyqImz4rf6di6f4,6737
|
|
30
|
+
twc/utils.py,sha256=uWizyUC4dHLwtk50q4Sub3zOvnVESfHKBbXYwk5t71w,651
|
|
31
|
+
twc/vars.py,sha256=n6RzpTJAu44pp4f8KgXcLnorsQBhIcVIMs6DA8-4MCM,534
|
|
32
|
+
twc_cli-2.6.0.dist-info/COPYING,sha256=fpJLxZS_kHr_659xkpmqEtqHeZp6lQR9CmKCwnYbsmE,1089
|
|
33
|
+
twc_cli-2.6.0.dist-info/METADATA,sha256=gkmWcgAscC5aSj83A1_RgHYfH9MW_5sd_0_7vK-cxkw,2601
|
|
34
|
+
twc_cli-2.6.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
35
|
+
twc_cli-2.6.0.dist-info/entry_points.txt,sha256=tmTaVRhm8BkNrXC_9XJMum7O9wFVOvkXcBetxmahWvE,40
|
|
36
|
+
twc_cli-2.6.0.dist-info/RECORD,,
|
twc_cli-2.4.1.dist-info/METADATA
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: twc-cli
|
|
3
|
-
Version: 2.4.1
|
|
4
|
-
Summary: Timeweb Cloud Command Line Interface.
|
|
5
|
-
Home-page: https://github.com/timeweb-cloud/twc
|
|
6
|
-
License: MIT
|
|
7
|
-
Author: ge
|
|
8
|
-
Author-email: dev@timeweb.cloud
|
|
9
|
-
Requires-Python: >=3.7.9,<4.0.0
|
|
10
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
11
|
-
Classifier: Programming Language :: Python :: 3
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
14
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
-
Requires-Dist: colorama (>=0.4.6,<0.5.0)
|
|
17
|
-
Requires-Dist: pygments (>=2.15.0,<3.0.0)
|
|
18
|
-
Requires-Dist: pyyaml (>=6.0,<7.0)
|
|
19
|
-
Requires-Dist: requests (>=2.31.0,<3.0.0)
|
|
20
|
-
Requires-Dist: shellingham (>=1.5.0.post1,<2.0.0)
|
|
21
|
-
Requires-Dist: toml (>=0.10.2,<0.11.0)
|
|
22
|
-
Requires-Dist: typer (>=0.7.0,<0.8.0)
|
|
23
|
-
Project-URL: Repository, https://github.com/timeweb-cloud/twc
|
|
24
|
-
Description-Content-Type: text/markdown
|
|
25
|
-
|
|
26
|
-

|
|
27
|
-
|
|
28
|
-
Timeweb Cloud Command Line Interface and simple SDK 💫
|
|
29
|
-
|
|
30
|
-
> [Руководство пользователя](https://github.com/timeweb-cloud/twc/blob/master/docs/ru/README.md) 🇷🇺
|
|
31
|
-
> [Command Line Interface (CLI) Reference](https://github.com/timeweb-cloud/twc/blob/master/docs/ru/CLI_REFERENCE.md) 📜
|
|
32
|
-
|
|
33
|
-
# Installation
|
|
34
|
-
|
|
35
|
-
```
|
|
36
|
-
pip install twc-cli
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
# Getting started
|
|
40
|
-
|
|
41
|
-
Get Timeweb Cloud [access token](https://timeweb.cloud/my/api-keys) and
|
|
42
|
-
configure **twc** with command:
|
|
43
|
-
|
|
44
|
-
```
|
|
45
|
-
twc config
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
Enter your access token and hit `Enter`.
|
|
49
|
-
|
|
50
|
-
Configuration done! Let's use:
|
|
51
|
-
|
|
52
|
-
```
|
|
53
|
-
twc --help
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
# Shell completion
|
|
57
|
-
|
|
58
|
-
To install completion script run:
|
|
59
|
-
|
|
60
|
-
```
|
|
61
|
-
twc --install-completion
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
**twc** automatically detect your shell. Supported: Bash, Zsh, Fish, PowerShell.
|
|
65
|
-
|
|
66
|
-
|
twc_cli-2.4.1.dist-info/RECORD
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
CHANGELOG.md,sha256=zTYQURuVK_bCcGHFCvPv7fhrrx1AylMBXIoCHN5GjW8,21537
|
|
2
|
-
COPYING,sha256=fpJLxZS_kHr_659xkpmqEtqHeZp6lQR9CmKCwnYbsmE,1089
|
|
3
|
-
twc/__init__.py,sha256=NwPAMNw3NuHdWGQvWS9_lromVF6VM194oVOipojfJns,113
|
|
4
|
-
twc/__main__.py,sha256=jVkf0XyGIhn3oaWgEzknuUjktYk6ANYwbmrUID15vvc,2335
|
|
5
|
-
twc/__version__.py,sha256=wr1ehxX2XbcqynTOLEVk_co68MQI6SNEZSFm6jgxook,442
|
|
6
|
-
twc/api/__init__.py,sha256=SXew0Fe51M7nRBNQaaLRH4NjnRHkQUn7J26OCkQsftA,128
|
|
7
|
-
twc/api/base.py,sha256=9srQS7CrDlfg-CSioIRyW_QUbCBovDs2VqN_4V28YCc,8063
|
|
8
|
-
twc/api/client.py,sha256=Tkd9zdzsESCtvy-kdv012R-Q12btU4D0uDVOjXUy8Zc,55898
|
|
9
|
-
twc/api/exceptions.py,sha256=UzK3pKRffcXlhnkPy6MDjP_DygVoV17DuZ_mdNbOzts,2369
|
|
10
|
-
twc/api/types.py,sha256=vattozb_YI7A_igCd2dUkMcJQJQeegYsl_nQwrwNqVw,3917
|
|
11
|
-
twc/apiwrap.py,sha256=uh-G67a8C2KN3BdLCShMsk9AHgV_F75FkXmK-xz_plc,2780
|
|
12
|
-
twc/commands/__init__.py,sha256=IXCr-gXf7oxwu7CDUa5U0iUM8lraYq_YKpq1aGUqpcU,385
|
|
13
|
-
twc/commands/account.py,sha256=6T7J3McTXJKzT7Gi_AgRcKpWdeXcmBTcpwFF0GjzADo,4998
|
|
14
|
-
twc/commands/balancer.py,sha256=QAouc74ZT5go11gB1vjjfYtd1luTmWrfpACPwokZ5sU,20278
|
|
15
|
-
twc/commands/common.py,sha256=r3enPCYWMwkD8YNPgcXuXK_HrobiHgfpkn82j_uRDqY,7805
|
|
16
|
-
twc/commands/config.py,sha256=hoRtxn2VRxIsuy9vgO6yd0Cu15Rbl-uYMZeU0Ix7dG0,8797
|
|
17
|
-
twc/commands/database.py,sha256=2NZ-TyRBkFgfYJyUdZUcfdqSaX7QVdWDU4k_yQNtUvo,16052
|
|
18
|
-
twc/commands/domain.py,sha256=SHOERsEvmlkdKQV5kaiEgMOLZme5ykW8LCUd1IF1Zzo,15624
|
|
19
|
-
twc/commands/firewall.py,sha256=6tSOiOmDx3X-hbD_XwUt8cU6GiLh9gDVMtQ7O59PG14,20381
|
|
20
|
-
twc/commands/image.py,sha256=2TQ2tzkraggx7eR2OHU64qDFtgzV5YHtCHl4nLpRMqA,8140
|
|
21
|
-
twc/commands/kubernetes.py,sha256=-Cgas1vFVMcrWGinjstuUz3sqX0ZNXv_4mwPwuwKeLE,20870
|
|
22
|
-
twc/commands/project.py,sha256=iskODT3eKZ5CpAKdWnsQ104YMRcqhOCry6Omnr-a2TM,10792
|
|
23
|
-
twc/commands/server.py,sha256=dbrdMXnhe4sIQqF3P-Mm9uRjeqkp8-a054Cvs5FYkaU,68065
|
|
24
|
-
twc/commands/ssh_key.py,sha256=NHgTPhAQpDzt-iPHHVo4XqUJvujNqf019N6N9qYZ9Us,7941
|
|
25
|
-
twc/commands/storage.py,sha256=MRZfd2WzLI9HeIEupaMg01EQPih2BIAfjx0Tgx0yp0M,19216
|
|
26
|
-
twc/commands/vpc.py,sha256=fe7rNKeRAvGYiXIvgGxzxjV35bQ66MVsNnTp7CsJgYQ,8405
|
|
27
|
-
twc/fmt.py,sha256=cmo3EdFEAwl_JocfneIEHpD5c_bHQ6tAw_UJEC-vatY,6904
|
|
28
|
-
twc/typerx.py,sha256=AZ6BgTQvlrZYfKVYd9YqRNQnAR2XuyqImz4rf6di6f4,6737
|
|
29
|
-
twc/utils.py,sha256=uWizyUC4dHLwtk50q4Sub3zOvnVESfHKBbXYwk5t71w,651
|
|
30
|
-
twc/vars.py,sha256=zvSaojyihfDpScKLSb5ICVkXE3EHuU0UfwmZz7TTdrg,577
|
|
31
|
-
twc_cli-2.4.1.dist-info/COPYING,sha256=fpJLxZS_kHr_659xkpmqEtqHeZp6lQR9CmKCwnYbsmE,1089
|
|
32
|
-
twc_cli-2.4.1.dist-info/METADATA,sha256=Zxd8vRxwi1R_L5V9nJcuXJaQjNqq89N030c_qyYIfWE,1772
|
|
33
|
-
twc_cli-2.4.1.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
|
|
34
|
-
twc_cli-2.4.1.dist-info/entry_points.txt,sha256=tmTaVRhm8BkNrXC_9XJMum7O9wFVOvkXcBetxmahWvE,40
|
|
35
|
-
twc_cli-2.4.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|