mantis-cli 14.5.1__tar.gz → 14.5.3__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.
- {mantis-cli-14.5.1/mantis_cli.egg-info → mantis-cli-14.5.3}/PKG-INFO +6 -3
- mantis-cli-14.5.3/mantis/__init__.py +1 -0
- {mantis-cli-14.5.1 → mantis-cli-14.5.3}/mantis/crypto.py +1 -1
- {mantis-cli-14.5.1 → mantis-cli-14.5.3}/mantis/helpers.py +13 -1
- {mantis-cli-14.5.1 → mantis-cli-14.5.3}/mantis/managers.py +1 -1
- {mantis-cli-14.5.1 → mantis-cli-14.5.3}/mantis/mantis.tpl +3 -0
- {mantis-cli-14.5.1 → mantis-cli-14.5.3/mantis_cli.egg-info}/PKG-INFO +6 -3
- {mantis-cli-14.5.1 → mantis-cli-14.5.3}/mantis_cli.egg-info/SOURCES.txt +0 -2
- mantis-cli-14.5.1/.gitignore +0 -113
- mantis-cli-14.5.1/TODO +0 -3
- mantis-cli-14.5.1/mantis/__init__.py +0 -1
- {mantis-cli-14.5.1 → mantis-cli-14.5.3}/LICENSE +0 -0
- {mantis-cli-14.5.1 → mantis-cli-14.5.3}/MANIFEST.in +0 -0
- {mantis-cli-14.5.1 → mantis-cli-14.5.3}/README.md +0 -0
- {mantis-cli-14.5.1 → mantis-cli-14.5.3}/mantis/__main__.py +0 -0
- {mantis-cli-14.5.1 → mantis-cli-14.5.3}/mantis/command_line.py +0 -0
- {mantis-cli-14.5.1 → mantis-cli-14.5.3}/mantis/environment.py +0 -0
- {mantis-cli-14.5.1 → mantis-cli-14.5.3}/mantis/extensions/__init__.py +0 -0
- {mantis-cli-14.5.1 → mantis-cli-14.5.3}/mantis/extensions/django.py +0 -0
- {mantis-cli-14.5.1 → mantis-cli-14.5.3}/mantis/extensions/nginx.py +0 -0
- {mantis-cli-14.5.1 → mantis-cli-14.5.3}/mantis/extensions/postgres.py +0 -0
- {mantis-cli-14.5.1 → mantis-cli-14.5.3}/mantis/logic.py +0 -0
- {mantis-cli-14.5.1 → mantis-cli-14.5.3}/mantis_cli.egg-info/dependency_links.txt +0 -0
- {mantis-cli-14.5.1 → mantis-cli-14.5.3}/mantis_cli.egg-info/entry_points.txt +0 -0
- {mantis-cli-14.5.1 → mantis-cli-14.5.3}/mantis_cli.egg-info/requires.txt +0 -0
- {mantis-cli-14.5.1 → mantis-cli-14.5.3}/mantis_cli.egg-info/top_level.txt +0 -0
- {mantis-cli-14.5.1 → mantis-cli-14.5.3}/setup.cfg +0 -0
- {mantis-cli-14.5.1 → mantis-cli-14.5.3}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 1
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
2
|
Name: mantis-cli
|
|
3
|
-
Version: 14.5.
|
|
3
|
+
Version: 14.5.3
|
|
4
4
|
Summary: Management command to build and deploy webapps, especially based on Django
|
|
5
5
|
Home-page: https://github.com/PragmaticMates/mantis-cli
|
|
6
6
|
Author: Erik Telepovský
|
|
@@ -8,7 +8,6 @@ Author-email: info@pragmaticmates.com
|
|
|
8
8
|
Maintainer: Pragmatic Mates
|
|
9
9
|
Maintainer-email: info@pragmaticmates.com
|
|
10
10
|
License: GNU General Public License (GPL)
|
|
11
|
-
Description: # mantis-cli
|
|
12
11
|
Keywords: management deployment docker command
|
|
13
12
|
Platform: UNKNOWN
|
|
14
13
|
Classifier: Programming Language :: Python
|
|
@@ -18,3 +17,7 @@ Classifier: Intended Audience :: Developers
|
|
|
18
17
|
Classifier: Framework :: Django
|
|
19
18
|
Classifier: License :: OSI Approved :: GNU General Public License (GPL)
|
|
20
19
|
Classifier: Development Status :: 5 - Production/Stable
|
|
20
|
+
License-File: LICENSE
|
|
21
|
+
|
|
22
|
+
# mantis-cli
|
|
23
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
VERSION = '14.5.3'
|
|
@@ -47,7 +47,7 @@ class Crypto(object):
|
|
|
47
47
|
CLI.error('Decryption failed. Check if data are not corrupted.')
|
|
48
48
|
|
|
49
49
|
try:
|
|
50
|
-
cipher = AES.new(key.
|
|
50
|
+
cipher = AES.new(key.encode(), AES.MODE_SIV)
|
|
51
51
|
data = cipher.decrypt_and_verify(data['ciphertext'], data['tag'])
|
|
52
52
|
except ValueError as e:
|
|
53
53
|
if str(e) == 'MAC check failed':
|
|
@@ -84,6 +84,16 @@ class CLI(object):
|
|
|
84
84
|
def step(index, total, text, end='\n', return_value=False):
|
|
85
85
|
return CLI.print_or_return(text=f'[{index}/{total}] {text}', color=Colors.YELLOW, end=end, return_value=return_value)
|
|
86
86
|
|
|
87
|
+
@staticmethod
|
|
88
|
+
def link(uri, label=None):
|
|
89
|
+
if label is None:
|
|
90
|
+
label = uri
|
|
91
|
+
parameters = ''
|
|
92
|
+
|
|
93
|
+
# OSC 8 ; params ; URI ST <name> OSC 8 ;; ST
|
|
94
|
+
escape_mask = '\033]8;{};{}\033\\{}\033]8;;\033\\'
|
|
95
|
+
|
|
96
|
+
return escape_mask.format(parameters, uri, label)
|
|
87
97
|
|
|
88
98
|
def random_string(n=10):
|
|
89
99
|
import random
|
|
@@ -187,6 +197,7 @@ def load_config(config_file):
|
|
|
187
197
|
CLI.error(f"Failed to load config from file {config_file}: {e}")
|
|
188
198
|
|
|
189
199
|
|
|
200
|
+
|
|
190
201
|
def check_config(config):
|
|
191
202
|
# Load config template file
|
|
192
203
|
current_directory = dirname(abspath(__file__))
|
|
@@ -200,4 +211,5 @@ def check_config(config):
|
|
|
200
211
|
config_keys_only = list(filter(lambda x: not x.startswith('connections.'), config_keys_only))
|
|
201
212
|
|
|
202
213
|
if config_keys_only:
|
|
203
|
-
CLI.
|
|
214
|
+
template_link = CLI.link('https://github.com/PragmaticMates/mantis-cli/blob/master/mantis/mantis.tpl', 'template')
|
|
215
|
+
CLI.error(f"Config file validation failed. Unknown config keys: {config_keys_only}. Check {template_link} for available attributes.")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 1
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
2
|
Name: mantis-cli
|
|
3
|
-
Version: 14.5.
|
|
3
|
+
Version: 14.5.3
|
|
4
4
|
Summary: Management command to build and deploy webapps, especially based on Django
|
|
5
5
|
Home-page: https://github.com/PragmaticMates/mantis-cli
|
|
6
6
|
Author: Erik Telepovský
|
|
@@ -8,7 +8,6 @@ Author-email: info@pragmaticmates.com
|
|
|
8
8
|
Maintainer: Pragmatic Mates
|
|
9
9
|
Maintainer-email: info@pragmaticmates.com
|
|
10
10
|
License: GNU General Public License (GPL)
|
|
11
|
-
Description: # mantis-cli
|
|
12
11
|
Keywords: management deployment docker command
|
|
13
12
|
Platform: UNKNOWN
|
|
14
13
|
Classifier: Programming Language :: Python
|
|
@@ -18,3 +17,7 @@ Classifier: Intended Audience :: Developers
|
|
|
18
17
|
Classifier: Framework :: Django
|
|
19
18
|
Classifier: License :: OSI Approved :: GNU General Public License (GPL)
|
|
20
19
|
Classifier: Development Status :: 5 - Production/Stable
|
|
20
|
+
License-File: LICENSE
|
|
21
|
+
|
|
22
|
+
# mantis-cli
|
|
23
|
+
|
mantis-cli-14.5.1/.gitignore
DELETED
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
# Byte-compiled / optimized / DLL files
|
|
2
|
-
__pycache__/
|
|
3
|
-
*.py[cod]
|
|
4
|
-
*$py.class
|
|
5
|
-
|
|
6
|
-
# C extensions
|
|
7
|
-
*.so
|
|
8
|
-
|
|
9
|
-
# Distribution / packaging
|
|
10
|
-
.Python
|
|
11
|
-
build/
|
|
12
|
-
develop-eggs/
|
|
13
|
-
dist/
|
|
14
|
-
downloads/
|
|
15
|
-
eggs/
|
|
16
|
-
.eggs/
|
|
17
|
-
lib/
|
|
18
|
-
lib64/
|
|
19
|
-
parts/
|
|
20
|
-
sdist/
|
|
21
|
-
var/
|
|
22
|
-
wheels/
|
|
23
|
-
*.egg-info/
|
|
24
|
-
.installed.cfg
|
|
25
|
-
*.egg
|
|
26
|
-
MANIFEST
|
|
27
|
-
|
|
28
|
-
# PyInstaller
|
|
29
|
-
# Usually these files are written by a python script from a template
|
|
30
|
-
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
31
|
-
*.manifest
|
|
32
|
-
*.spec
|
|
33
|
-
|
|
34
|
-
# Installer logs
|
|
35
|
-
pip-log.txt
|
|
36
|
-
pip-delete-this-directory.txt
|
|
37
|
-
|
|
38
|
-
# Unit test / coverage reports
|
|
39
|
-
htmlcov/
|
|
40
|
-
.tox/
|
|
41
|
-
.coverage
|
|
42
|
-
.coverage.*
|
|
43
|
-
.cache
|
|
44
|
-
nosetests.xml
|
|
45
|
-
coverage.xml
|
|
46
|
-
*.cover
|
|
47
|
-
.hypothesis/
|
|
48
|
-
.pytest_cache/
|
|
49
|
-
|
|
50
|
-
# Translations
|
|
51
|
-
#*.mo
|
|
52
|
-
*.pot
|
|
53
|
-
|
|
54
|
-
# Django stuff:
|
|
55
|
-
*.log
|
|
56
|
-
local_settings.py
|
|
57
|
-
db.sqlite3
|
|
58
|
-
|
|
59
|
-
# Flask stuff:
|
|
60
|
-
instance/
|
|
61
|
-
.webassets-cache
|
|
62
|
-
|
|
63
|
-
# Scrapy stuff:
|
|
64
|
-
.scrapy
|
|
65
|
-
|
|
66
|
-
# Sphinx documentation
|
|
67
|
-
docs/_build/
|
|
68
|
-
|
|
69
|
-
# PyBuilder
|
|
70
|
-
target/
|
|
71
|
-
|
|
72
|
-
# Jupyter Notebook
|
|
73
|
-
.ipynb_checkpoints
|
|
74
|
-
|
|
75
|
-
# pyenv
|
|
76
|
-
.python-version
|
|
77
|
-
|
|
78
|
-
# celery beat schedule file
|
|
79
|
-
celerybeat-schedule
|
|
80
|
-
|
|
81
|
-
# SageMath parsed files
|
|
82
|
-
*.sage.py
|
|
83
|
-
|
|
84
|
-
# Environments
|
|
85
|
-
.env
|
|
86
|
-
.venv
|
|
87
|
-
env/
|
|
88
|
-
venv/
|
|
89
|
-
ENV/
|
|
90
|
-
env.bak/
|
|
91
|
-
venv.bak/
|
|
92
|
-
|
|
93
|
-
# Spyder project settings
|
|
94
|
-
.spyderproject
|
|
95
|
-
.spyproject
|
|
96
|
-
|
|
97
|
-
# Rope project settings
|
|
98
|
-
.ropeproject
|
|
99
|
-
|
|
100
|
-
# mkdocs documentation
|
|
101
|
-
/site
|
|
102
|
-
|
|
103
|
-
# mypy
|
|
104
|
-
.mypy_cache/
|
|
105
|
-
|
|
106
|
-
#IDE
|
|
107
|
-
.idea
|
|
108
|
-
|
|
109
|
-
# others
|
|
110
|
-
.DS_Store
|
|
111
|
-
.sass-cache
|
|
112
|
-
bin
|
|
113
|
-
node_modules/
|
mantis-cli-14.5.1/TODO
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
VERSION = '14.5.1'
|
|
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
|