dim icon indicating copy to clipboard operation
dim copied to clipboard

analyze whether simplejson, argparse can be removed from ndcli

Open miesi opened this issue 4 years ago • 2 comments

miesi avatar Jun 10 '21 09:06 miesi

ndcli does not use simplejson directly, but via dimclient: dimclient already falls back to json if simplejson can't be found: https://github.com/1and1/dim/blob/7569eab677dab5a0cf62ed221a51620028f46954/dimclient/dimclient/init.py#L9.L12

simplejson is the externally maintained development version of the json library included with Python (since 2.6). There were not many changes in the external module, json from Python 3 should be compatible.

zeromind avatar Jun 30 '21 11:06 zeromind

argparse seems to be only in dim-bind, but is also not requires as explicit dependency, as it is included from Python 2.7 and Python 3.2. Currently, the version from PyPi would be installed. https://pypi.org/project/argparse/

As of Python >= 2.7 and >= 3.2, the argparse module is maintained within the Python standard library.

zeromind avatar Jul 01 '21 09:07 zeromind