oak-cli 0.2.5__tar.gz → 0.2.6__tar.gz
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.
- oak_cli-0.2.6/PKG-INFO +105 -0
- oak_cli-0.2.6/README.md +90 -0
- {oak_cli-0.2.5 → oak_cli-0.2.6}/pyproject.toml +1 -1
- oak_cli-0.2.5/PKG-INFO +0 -98
- oak_cli-0.2.5/README.md +0 -83
- {oak_cli-0.2.5 → oak_cli-0.2.6}/oak_cli/__init__.py +0 -0
- {oak_cli-0.2.5 → oak_cli-0.2.6}/oak_cli/args_parser/__init__.py +0 -0
- {oak_cli-0.2.5 → oak_cli-0.2.6}/oak_cli/args_parser/apps/__init__.py +0 -0
- {oak_cli-0.2.5 → oak_cli-0.2.6}/oak_cli/args_parser/apps/create.py +0 -0
- {oak_cli-0.2.5 → oak_cli-0.2.6}/oak_cli/args_parser/apps/delete.py +0 -0
- {oak_cli-0.2.5 → oak_cli-0.2.6}/oak_cli/args_parser/apps/main.py +0 -0
- {oak_cli-0.2.5 → oak_cli-0.2.6}/oak_cli/args_parser/apps/status.py +0 -0
- {oak_cli-0.2.5 → oak_cli-0.2.6}/oak_cli/args_parser/main.py +0 -0
- {oak_cli-0.2.5 → oak_cli-0.2.6}/oak_cli/args_parser/services/__init__.py +0 -0
- {oak_cli-0.2.5 → oak_cli-0.2.6}/oak_cli/args_parser/services/deployment.py +0 -0
- {oak_cli-0.2.5 → oak_cli-0.2.6}/oak_cli/args_parser/services/main.py +0 -0
- {oak_cli-0.2.5 → oak_cli-0.2.6}/oak_cli/args_parser/services/status.py +0 -0
- {oak_cli-0.2.5 → oak_cli-0.2.6}/oak_cli/commands/apps/__init__.py +0 -0
- {oak_cli-0.2.5 → oak_cli-0.2.6}/oak_cli/commands/apps/main.py +0 -0
- {oak_cli-0.2.5 → oak_cli-0.2.6}/oak_cli/commands/apps/status.py +0 -0
- {oak_cli-0.2.5 → oak_cli-0.2.6}/oak_cli/commands/services/__init__.py +0 -0
- {oak_cli-0.2.5 → oak_cli-0.2.6}/oak_cli/commands/services/deployment.py +0 -0
- {oak_cli-0.2.5 → oak_cli-0.2.6}/oak_cli/commands/services/get.py +0 -0
- {oak_cli-0.2.5 → oak_cli-0.2.6}/oak_cli/commands/services/status.py +0 -0
- {oak_cli-0.2.5 → oak_cli-0.2.6}/oak_cli/main.py +0 -0
- {oak_cli-0.2.5 → oak_cli-0.2.6}/oak_cli/utils/SLAs/__init__.py +0 -0
- {oak_cli-0.2.5 → oak_cli-0.2.6}/oak_cli/utils/SLAs/blank_app_without_services.SLA.json +0 -0
- {oak_cli-0.2.5 → oak_cli-0.2.6}/oak_cli/utils/SLAs/common.py +0 -0
- {oak_cli-0.2.5 → oak_cli-0.2.6}/oak_cli/utils/SLAs/default_app_with_services.SLA.json +0 -0
- {oak_cli-0.2.5 → oak_cli-0.2.6}/oak_cli/utils/__init__.py +0 -0
- {oak_cli-0.2.5 → oak_cli-0.2.6}/oak_cli/utils/api/__init__.py +0 -0
- {oak_cli-0.2.5 → oak_cli-0.2.6}/oak_cli/utils/api/common.py +0 -0
- {oak_cli-0.2.5 → oak_cli-0.2.6}/oak_cli/utils/api/login.py +0 -0
- {oak_cli-0.2.5 → oak_cli-0.2.6}/oak_cli/utils/api/main.py +0 -0
- {oak_cli-0.2.5 → oak_cli-0.2.6}/oak_cli/utils/argcomplete.py +0 -0
- {oak_cli-0.2.5 → oak_cli-0.2.6}/oak_cli/utils/common.py +0 -0
- {oak_cli-0.2.5 → oak_cli-0.2.6}/oak_cli/utils/logging.py +0 -0
- {oak_cli-0.2.5 → oak_cli-0.2.6}/oak_cli/utils/types.py +0 -0
oak_cli-0.2.6/PKG-INFO
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: oak_cli
|
|
3
|
+
Version: 0.2.6
|
|
4
|
+
Summary:
|
|
5
|
+
Author: Alexander Malyuk
|
|
6
|
+
Author-email: malyuk.alexander1999@gmail.com
|
|
7
|
+
Requires-Python: >=3.10,<4.0
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
12
|
+
Requires-Dist: argcomplete (>=3.2.3,<4.0.0)
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
|
|
15
|
+
# [Oakestra CLI](https://github.com/oakestra/oakestra-cli)
|
|
16
|
+
|
|
17
|
+
**oakestra-cli** is a very basic command line tool for controlling your [Oakestra](https://github.com/oakestra/oakestra) setup.
|
|
18
|
+
|
|
19
|
+
It is intended to be a interface for the API as well as a development tool.
|
|
20
|
+
|
|
21
|
+
The CLI supports command (tab) autocompletion.
|
|
22
|
+
|
|
23
|
+
## Usage
|
|
24
|
+
The package can be called via `oak`.
|
|
25
|
+
|
|
26
|
+
Currently it supports the creation, deletion, inspection, and (un)deployment of applications and services.
|
|
27
|
+
|
|
28
|
+
E.g. To deploy a default application with two services:
|
|
29
|
+
```
|
|
30
|
+
oak applications create default_app_with_services --deploy
|
|
31
|
+
```
|
|
32
|
+
Note: The CLI supports short command aliases. The command above can be shortened like this:
|
|
33
|
+
```
|
|
34
|
+
oak a c default_app_with_services -d
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
You should see a similar output if the command was successful:
|
|
38
|
+
```bash
|
|
39
|
+
Success: Create new application based on 'default_app_with_services'
|
|
40
|
+
Success: Deploy a new instance for the service '66040243c7723114bb83b914'
|
|
41
|
+
Success: Deploy a new instance for the service '66040243c7723114bb83b919'
|
|
42
|
+
```
|
|
43
|
+
You can inspect the services like this:
|
|
44
|
+
```bash
|
|
45
|
+
oak services status
|
|
46
|
+
```
|
|
47
|
+
Or like this: `oak s s`
|
|
48
|
+
|
|
49
|
+
Service status output:
|
|
50
|
+
```yaml
|
|
51
|
+
All current services: '2'
|
|
52
|
+
Service '0':
|
|
53
|
+
- microservice -
|
|
54
|
+
id: '66040243c7723114bb83b914'
|
|
55
|
+
name: 'curl'
|
|
56
|
+
ns: 'test'
|
|
57
|
+
parent app: 'clientsrvr: 660402439df62d60bb95452b'
|
|
58
|
+
- resources -
|
|
59
|
+
memory: '100'
|
|
60
|
+
vcpus: '1'
|
|
61
|
+
- container -
|
|
62
|
+
image: 'docker.io/curlimages/curl:7.82.0'
|
|
63
|
+
- networking -
|
|
64
|
+
port: '9080'
|
|
65
|
+
- instances -
|
|
66
|
+
instances: '1'
|
|
67
|
+
Service '1':
|
|
68
|
+
- microservice -
|
|
69
|
+
id: '66040243c7723114bb83b919'
|
|
70
|
+
name: 'nginx'
|
|
71
|
+
ns: 'test'
|
|
72
|
+
parent app: 'clientsrvr: 660402439df62d60bb95452b'
|
|
73
|
+
- resources -
|
|
74
|
+
memory: '100'
|
|
75
|
+
vcpus: '1'
|
|
76
|
+
- container -
|
|
77
|
+
image: 'docker.io/library/nginx:latest'
|
|
78
|
+
- networking -
|
|
79
|
+
port: '6080:60/tcp'
|
|
80
|
+
- instances -
|
|
81
|
+
instances: '1'
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
For a more detailed explanation have a try out the CLI and use the `-h` flag.
|
|
85
|
+
|
|
86
|
+
## [Installation](https://pypi.org/project/oak-cli/)
|
|
87
|
+
```
|
|
88
|
+
pip install oak-cli
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
# For CLI Contributors/Developers
|
|
92
|
+
For local development with "hot-reload" functionality simply install the package via poetry.
|
|
93
|
+
|
|
94
|
+
## Useful commands
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
poetry install
|
|
98
|
+
```
|
|
99
|
+
```bash
|
|
100
|
+
poetry build
|
|
101
|
+
```
|
|
102
|
+
```
|
|
103
|
+
twine upload dist/*
|
|
104
|
+
```
|
|
105
|
+
|
oak_cli-0.2.6/README.md
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# [Oakestra CLI](https://github.com/oakestra/oakestra-cli)
|
|
2
|
+
|
|
3
|
+
**oakestra-cli** is a very basic command line tool for controlling your [Oakestra](https://github.com/oakestra/oakestra) setup.
|
|
4
|
+
|
|
5
|
+
It is intended to be a interface for the API as well as a development tool.
|
|
6
|
+
|
|
7
|
+
The CLI supports command (tab) autocompletion.
|
|
8
|
+
|
|
9
|
+
## Usage
|
|
10
|
+
The package can be called via `oak`.
|
|
11
|
+
|
|
12
|
+
Currently it supports the creation, deletion, inspection, and (un)deployment of applications and services.
|
|
13
|
+
|
|
14
|
+
E.g. To deploy a default application with two services:
|
|
15
|
+
```
|
|
16
|
+
oak applications create default_app_with_services --deploy
|
|
17
|
+
```
|
|
18
|
+
Note: The CLI supports short command aliases. The command above can be shortened like this:
|
|
19
|
+
```
|
|
20
|
+
oak a c default_app_with_services -d
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
You should see a similar output if the command was successful:
|
|
24
|
+
```bash
|
|
25
|
+
Success: Create new application based on 'default_app_with_services'
|
|
26
|
+
Success: Deploy a new instance for the service '66040243c7723114bb83b914'
|
|
27
|
+
Success: Deploy a new instance for the service '66040243c7723114bb83b919'
|
|
28
|
+
```
|
|
29
|
+
You can inspect the services like this:
|
|
30
|
+
```bash
|
|
31
|
+
oak services status
|
|
32
|
+
```
|
|
33
|
+
Or like this: `oak s s`
|
|
34
|
+
|
|
35
|
+
Service status output:
|
|
36
|
+
```yaml
|
|
37
|
+
All current services: '2'
|
|
38
|
+
Service '0':
|
|
39
|
+
- microservice -
|
|
40
|
+
id: '66040243c7723114bb83b914'
|
|
41
|
+
name: 'curl'
|
|
42
|
+
ns: 'test'
|
|
43
|
+
parent app: 'clientsrvr: 660402439df62d60bb95452b'
|
|
44
|
+
- resources -
|
|
45
|
+
memory: '100'
|
|
46
|
+
vcpus: '1'
|
|
47
|
+
- container -
|
|
48
|
+
image: 'docker.io/curlimages/curl:7.82.0'
|
|
49
|
+
- networking -
|
|
50
|
+
port: '9080'
|
|
51
|
+
- instances -
|
|
52
|
+
instances: '1'
|
|
53
|
+
Service '1':
|
|
54
|
+
- microservice -
|
|
55
|
+
id: '66040243c7723114bb83b919'
|
|
56
|
+
name: 'nginx'
|
|
57
|
+
ns: 'test'
|
|
58
|
+
parent app: 'clientsrvr: 660402439df62d60bb95452b'
|
|
59
|
+
- resources -
|
|
60
|
+
memory: '100'
|
|
61
|
+
vcpus: '1'
|
|
62
|
+
- container -
|
|
63
|
+
image: 'docker.io/library/nginx:latest'
|
|
64
|
+
- networking -
|
|
65
|
+
port: '6080:60/tcp'
|
|
66
|
+
- instances -
|
|
67
|
+
instances: '1'
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
For a more detailed explanation have a try out the CLI and use the `-h` flag.
|
|
71
|
+
|
|
72
|
+
## [Installation](https://pypi.org/project/oak-cli/)
|
|
73
|
+
```
|
|
74
|
+
pip install oak-cli
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
# For CLI Contributors/Developers
|
|
78
|
+
For local development with "hot-reload" functionality simply install the package via poetry.
|
|
79
|
+
|
|
80
|
+
## Useful commands
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
poetry install
|
|
84
|
+
```
|
|
85
|
+
```bash
|
|
86
|
+
poetry build
|
|
87
|
+
```
|
|
88
|
+
```
|
|
89
|
+
twine upload dist/*
|
|
90
|
+
```
|
oak_cli-0.2.5/PKG-INFO
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: oak_cli
|
|
3
|
-
Version: 0.2.5
|
|
4
|
-
Summary:
|
|
5
|
-
Author: Alexander Malyuk
|
|
6
|
-
Author-email: malyuk.alexander1999@gmail.com
|
|
7
|
-
Requires-Python: >=3.10,<4.0
|
|
8
|
-
Classifier: Programming Language :: Python :: 3
|
|
9
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
10
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
11
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
12
|
-
Requires-Dist: argcomplete (>=3.2.3,<4.0.0)
|
|
13
|
-
Description-Content-Type: text/markdown
|
|
14
|
-
|
|
15
|
-
# Oakestra CLI
|
|
16
|
-
|
|
17
|
-
> NM: Rename system commands to Oakestra
|
|
18
|
-
|
|
19
|
-
**oakestra-cli** is a very basic command line tool for controlling the EdgeIO framework.
|
|
20
|
-
|
|
21
|
-
## Installation
|
|
22
|
-
|
|
23
|
-
Use the package manager [pip](https://pip.pypa.io/en/stable/) and the .whl file in the dist directory to install
|
|
24
|
-
edgeiocli.
|
|
25
|
-
|
|
26
|
-
```bash
|
|
27
|
-
pip install edgeiocli-0.1.0-py3-none-any.whl
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
## Build
|
|
31
|
-
|
|
32
|
-
Use the package [poetry](https://python-poetry.org/) to build the tool and create a new .whl file.
|
|
33
|
-
|
|
34
|
-
Updates the dependency's:
|
|
35
|
-
```bash
|
|
36
|
-
poetry update
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
Installs the package:
|
|
40
|
-
```bash
|
|
41
|
-
poetry install
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
Creates the .whl file:
|
|
45
|
-
```bash
|
|
46
|
-
poetry build
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
## Usage
|
|
50
|
-
|
|
51
|
-
```bash
|
|
52
|
-
edgeiocli COMMAND [ARGS] [OPTIONS]
|
|
53
|
-
|
|
54
|
-
# Try 'edgeiocli --help' for help.
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
## Available Commands
|
|
58
|
-
|
|
59
|
-
- `login [USERNAME]` logs the user into the system and creates access token
|
|
60
|
-
- `logout` logs out the user and deletes the token
|
|
61
|
-
- `change-password` changes the password of the user
|
|
62
|
-
- `application [COMMAND]`
|
|
63
|
-
- `create` creates a new application
|
|
64
|
-
- `delete [APPLICATION_ID]` deletes a application
|
|
65
|
-
- `list-jobs [APPLICATION_ID]` displays all jobs in the application
|
|
66
|
-
- `list` displays all applications of the user
|
|
67
|
-
- `service [COMMAND]`
|
|
68
|
-
- `delete [SERVICE_ID]` deletes the job
|
|
69
|
-
- `create [PATH]` creates a new service
|
|
70
|
-
- `deploy [SERVICE_ID]` tries to deploy a service
|
|
71
|
-
- `user [COMMAND]`
|
|
72
|
-
- `create --role [Admin | Application_Provider | Infrastructure_Provider]` creates a new user
|
|
73
|
-
- `delete [USERNAME] deletes the user`
|
|
74
|
-
- `list` displays all user of the system
|
|
75
|
-
- `set-roles [USERNAME] --role [Admin | Application_Provider | Infrastructure_Provider]`
|
|
76
|
-
|
|
77
|
-
## Deployment
|
|
78
|
-
The given json file should contain only a microservice configuration, as in the example, all the application and user information will be added automatically.
|
|
79
|
-
|
|
80
|
-
```
|
|
81
|
-
{
|
|
82
|
-
...
|
|
83
|
-
"microservice_name": "service",
|
|
84
|
-
"microservice_namespace": "dev",
|
|
85
|
-
"virtualization": "docker",
|
|
86
|
-
"memory": 100,
|
|
87
|
-
...
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
## Contributing
|
|
93
|
-
|
|
94
|
-
This is the first version of **oakestra-cli** and does not yet offer all features, also there
|
|
95
|
-
might be some bugs, if you find one please report it or fix it.
|
|
96
|
-
|
|
97
|
-
To add a new command create a function in the main.py file and add the `@app.command()` annotation to the function. If you want to create sub commands, create the command in the corresponding file.
|
|
98
|
-
|
oak_cli-0.2.5/README.md
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
# Oakestra CLI
|
|
2
|
-
|
|
3
|
-
> NM: Rename system commands to Oakestra
|
|
4
|
-
|
|
5
|
-
**oakestra-cli** is a very basic command line tool for controlling the EdgeIO framework.
|
|
6
|
-
|
|
7
|
-
## Installation
|
|
8
|
-
|
|
9
|
-
Use the package manager [pip](https://pip.pypa.io/en/stable/) and the .whl file in the dist directory to install
|
|
10
|
-
edgeiocli.
|
|
11
|
-
|
|
12
|
-
```bash
|
|
13
|
-
pip install edgeiocli-0.1.0-py3-none-any.whl
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## Build
|
|
17
|
-
|
|
18
|
-
Use the package [poetry](https://python-poetry.org/) to build the tool and create a new .whl file.
|
|
19
|
-
|
|
20
|
-
Updates the dependency's:
|
|
21
|
-
```bash
|
|
22
|
-
poetry update
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
Installs the package:
|
|
26
|
-
```bash
|
|
27
|
-
poetry install
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
Creates the .whl file:
|
|
31
|
-
```bash
|
|
32
|
-
poetry build
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
## Usage
|
|
36
|
-
|
|
37
|
-
```bash
|
|
38
|
-
edgeiocli COMMAND [ARGS] [OPTIONS]
|
|
39
|
-
|
|
40
|
-
# Try 'edgeiocli --help' for help.
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
## Available Commands
|
|
44
|
-
|
|
45
|
-
- `login [USERNAME]` logs the user into the system and creates access token
|
|
46
|
-
- `logout` logs out the user and deletes the token
|
|
47
|
-
- `change-password` changes the password of the user
|
|
48
|
-
- `application [COMMAND]`
|
|
49
|
-
- `create` creates a new application
|
|
50
|
-
- `delete [APPLICATION_ID]` deletes a application
|
|
51
|
-
- `list-jobs [APPLICATION_ID]` displays all jobs in the application
|
|
52
|
-
- `list` displays all applications of the user
|
|
53
|
-
- `service [COMMAND]`
|
|
54
|
-
- `delete [SERVICE_ID]` deletes the job
|
|
55
|
-
- `create [PATH]` creates a new service
|
|
56
|
-
- `deploy [SERVICE_ID]` tries to deploy a service
|
|
57
|
-
- `user [COMMAND]`
|
|
58
|
-
- `create --role [Admin | Application_Provider | Infrastructure_Provider]` creates a new user
|
|
59
|
-
- `delete [USERNAME] deletes the user`
|
|
60
|
-
- `list` displays all user of the system
|
|
61
|
-
- `set-roles [USERNAME] --role [Admin | Application_Provider | Infrastructure_Provider]`
|
|
62
|
-
|
|
63
|
-
## Deployment
|
|
64
|
-
The given json file should contain only a microservice configuration, as in the example, all the application and user information will be added automatically.
|
|
65
|
-
|
|
66
|
-
```
|
|
67
|
-
{
|
|
68
|
-
...
|
|
69
|
-
"microservice_name": "service",
|
|
70
|
-
"microservice_namespace": "dev",
|
|
71
|
-
"virtualization": "docker",
|
|
72
|
-
"memory": 100,
|
|
73
|
-
...
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
## Contributing
|
|
79
|
-
|
|
80
|
-
This is the first version of **oakestra-cli** and does not yet offer all features, also there
|
|
81
|
-
might be some bugs, if you find one please report it or fix it.
|
|
82
|
-
|
|
83
|
-
To add a new command create a function in the main.py file and add the `@app.command()` annotation to the function. If you want to create sub commands, create the command in the corresponding file.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|