cli2 5.0.2__tar.gz → 5.0.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.
- {cli2-5.0.2/cli2.egg-info → cli2-5.0.3}/PKG-INFO +1 -1
- {cli2-5.0.2 → cli2-5.0.3}/cli2/__init__.py +6 -1
- {cli2-5.0.2 → cli2-5.0.3}/cli2/lock.py +1 -1
- {cli2-5.0.2 → cli2-5.0.3}/cli2/mask.py +3 -3
- {cli2-5.0.2 → cli2-5.0.3/cli2.egg-info}/PKG-INFO +1 -1
- {cli2-5.0.2 → cli2-5.0.3}/setup.py +1 -1
- {cli2-5.0.2 → cli2-5.0.3}/MANIFEST.in +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/README.rst +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/classifiers.txt +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/cli2/asyncio.py +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/cli2/cli.py +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/cli2/cli2.py +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/cli2/colors.py +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/cli2/configuration.py +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/cli2/decorators.py +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/cli2/display.py +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/cli2/examples/__init__.py +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/cli2/examples/conf.py +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/cli2/examples/example.py +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/cli2/examples/example_obj.py +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/cli2/examples/nesting.py +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/cli2/examples/obj.py +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/cli2/examples/obj2.py +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/cli2/examples/test.py +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/cli2/log.py +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/cli2/node.py +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/cli2/sphinx.py +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/cli2/table.py +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/cli2/test.py +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/cli2.egg-info/SOURCES.txt +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/cli2.egg-info/dependency_links.txt +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/cli2.egg-info/entry_points.txt +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/cli2.egg-info/requires.txt +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/cli2.egg-info/top_level.txt +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/setup.cfg +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/tests/test_ansible.py +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/tests/test_ansible_variables.py +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/tests/test_asyncio.py +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/tests/test_cli.py +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/tests/test_client.py +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/tests/test_command.py +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/tests/test_configuration.py +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/tests/test_decorators.py +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/tests/test_display.py +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/tests/test_entry_point.py +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/tests/test_group.py +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/tests/test_inject.py +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/tests/test_lock.py +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/tests/test_mask.py +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/tests/test_node.py +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/tests/test_restful.py +0 -0
- {cli2-5.0.2 → cli2-5.0.3}/tests/test_table.py +0 -0
|
@@ -14,7 +14,12 @@ from .colors import colors as c
|
|
|
14
14
|
|
|
15
15
|
from .configuration import Configuration, cfg
|
|
16
16
|
from .display import diff, diff_data, render, print, highlight, yaml_highlight
|
|
17
|
-
|
|
17
|
+
try:
|
|
18
|
+
import fcntl
|
|
19
|
+
except ImportError:
|
|
20
|
+
""" windows """
|
|
21
|
+
else:
|
|
22
|
+
from .lock import Lock
|
|
18
23
|
from .log import configure, log
|
|
19
24
|
from .mask import Mask
|
|
20
25
|
from .table import Table
|
|
@@ -80,7 +80,7 @@ class Lock:
|
|
|
80
80
|
.. py:attribute:: blocking
|
|
81
81
|
|
|
82
82
|
If True, the locker automatically blocks. Otherwise, you need to check
|
|
83
|
-
:py:attr:`acquired` and call :py:
|
|
83
|
+
:py:attr:`acquired` and call :py:meth:`block` yourself.
|
|
84
84
|
|
|
85
85
|
.. py:attribute:: prefix
|
|
86
86
|
|
|
@@ -19,8 +19,8 @@ class Mask:
|
|
|
19
19
|
|
|
20
20
|
.. code-block:: python
|
|
21
21
|
|
|
22
|
-
mask = cli2.Mask(keys=['password'], values=['
|
|
23
|
-
result = mask(dict(password='xx', text='some
|
|
22
|
+
mask = cli2.Mask(keys=['password'], values=['secretval'])
|
|
23
|
+
result = mask(dict(password='xx', text='some secretval noise xx'))
|
|
24
24
|
|
|
25
25
|
Will cause result to be:
|
|
26
26
|
|
|
@@ -31,7 +31,7 @@ class Mask:
|
|
|
31
31
|
|
|
32
32
|
Because:
|
|
33
33
|
|
|
34
|
-
- ``
|
|
34
|
+
- ``secretval`` was given as a value to mask
|
|
35
35
|
- ``password``'s value because ``password`` was given as a key to match
|
|
36
36
|
- the Mask object learned the value of the ``password`` key, and masked it
|
|
37
37
|
in ``text``
|
|
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
|
|
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
|