Metadata-Version: 2.1
Name: ve_utils
Version: 1.1.1
Summary: Utilities helper library for Python
Home-page: https://github.com/mano8/ve_utils
Author: Eli Serra
Author-email: eli.serra173@gmail.com
License: MIT
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Description-Content-Type: text/markdown
License-File: LICENSE

# ve-utils
This is a Python utilities library helper. Contain methods shared by multiple repositories.

# Installation

#### Install from PyPi :
You can install the ve_utils helper from PyPI:

``pip install ve_utils``

#### Install from github repository :
To install directly from GitHub:

``$ python3 -m pip install "git+https://github.com/mano8/ve_utils"``

# How to use

First you need import one of the utils package egg :

``from ve_utils.utils import UType as U``

Now, for example if you need to test if variable contain an non empty list you can use :

    > my_var = [ 0, 1 ,2 ,3 ]
    > U.is_list_not_empty(my_var)
    > True
    > my_var = 2
    > U.is_list_not_empty(my_var)
    > False 

The ``is_list_not_empty`` method is the same of using ``isinstance(my_var, list) and len(my_var) > 0``.

