1. 20 Nov, 2020 2 commits
  2. 26 Aug, 2020 3 commits
    • Štěpán Henek's avatar
      euci: report code coverage to gitlab CI · 14f1d351
      Štěpán Henek authored
      14f1d351
    • Karel Koci's avatar
      Release version 0.8 · abb3efae
      Karel Koci authored
      Added
      * EUci support for IP address parsing
      
      Fixed
      * Use of deprecated and in Python 3.9 removed library
      abb3efae
    • Štěpán Henek's avatar
      suppress deprecation warning · ebe462fc
      Štěpán Henek authored
      ```
      tests/euci_test.py::test_get_string
        /home/stepan/project/pyuci/euci/__init__.py:34: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop working
          return isinstance(data, collections.Iterable) and not isinstance(data, str)
      ```
      ebe462fc
  3. 15 Jul, 2020 1 commit
  4. 04 Dec, 2019 1 commit
  5. 03 Dec, 2019 1 commit
  6. 26 Nov, 2019 1 commit
  7. 06 Jun, 2019 2 commits
  8. 05 Jun, 2019 1 commit
    • Karel Koci's avatar
      euci: accept any iterable in set method · 064a057e
      Karel Koci authored
      We were checking if argument is list or tuple but that is technically
      wrong. Much better is to just check if it is iterable. Problem is that
      string is also iterable but that we can just do as an exception.
      064a057e
  9. 30 May, 2019 1 commit
  10. 29 May, 2019 6 commits
    • Karel Koci's avatar
      euci: add option to ensure that tupple is returned · 4a110faa
      Karel Koci authored
      Idea of this is that user can set to configuration file instead of list
      option but we want to make sure that even if he does that that we get
      tuple of values. This is exactly for that case. Setting list to True
      ensures that get never returns anything else then list. Where on the
      other hand setting list to False causes it to never return tuple even if
      value is lists (in which case first found list is returned).
      4a110faa
    • Karel Koci's avatar
      euci: add support for getting and settings lists · c1ddf063
      Karel Koci authored
      This fixes handling of lists in euci.
      c1ddf063
    • Karel Koci's avatar
      euci: divide obsolete methods by comment · 5134fd51
      Karel Koci authored
      5134fd51
    • Karel Koci's avatar
      euci: integrace *_default methods to get method · aa8b73ec
      Karel Koci authored
      This is much more versatile and compact syntax. You can optionally set
      default keywords argument and that gives you behavior where
      UciExceptionNotFound is never thrown out.
      This also adds tests for defaults.
      aa8b73ec
    • Karel Koci's avatar
      euci: overload default get and set methods to support types · 7ed4c4a7
      Karel Koci authored
      This drops previous get_t and set_t methods in favor of overloaded get
      and set methods.
      You can optionally add keyword argument dtype to get method to ensure
      that returned data is of specified type. For now only str, int and bool
      are supported.
      set methods now detects value argument type and behaves according to it.
      In general it just converts value to string but in case of bool it
      replaces it with defined value.
      7ed4c4a7
    • Karel Koci's avatar
      euci: implement get_t and set_t method · 4b9ab0a6
      Karel Koci authored
      These are intended to be used as smart wrappers on top of get_* and
      set_* methods. In case of get_t method you can specify type you are
      expecting like a python type (str, bool and int). In case of set_t is
      type autodetected from provided value.
      4b9ab0a6
  11. 22 May, 2019 4 commits
  12. 14 May, 2019 2 commits
  13. 01 Apr, 2019 1 commit
  14. 05 Feb, 2019 2 commits
  15. 31 Jan, 2019 3 commits
  16. 09 Jul, 2018 3 commits
  17. 15 Mar, 2018 3 commits
  18. 14 Mar, 2018 2 commits
  19. 26 Feb, 2018 1 commit