Utilities helper library for Python
Project description
ve-utils
This is a Python utilities library helper. Contain methods shared by multiple repositories.
Installation
Install from github repository :
Open Git bash or install it from here.
Go to the current directory where you want the cloned directory to be added.
cd ~/my-repo/
And clone the ve-utils repository :
git clone https://github.com/mano8/utils.git
Open new console and go to the current directory where you clone utils repository
cd ~/my-repo/utils
If you use python virtual environment egg anaconda,
conda activate my_env
Now you can install the package via python command :
python setup.py install
How to use
First you need import one of the utils package egg :
from 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
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ve_utils-1.0.0.tar.gz
.
File metadata
- Download URL: ve_utils-1.0.0.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1296b294ba6feee97107242234e1513c78e36c8fb44e7566f8d1d90459e63ee6 |
|
MD5 | 02a55103fa9c7d8cf7e4becf51a2fad8 |
|
BLAKE2b-256 | 7db885894c92d7f1aa3d5e6486280117dc51f1945e95ca0c778f549d64c12c8b |
File details
Details for the file ve_utils-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: ve_utils-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 15f90fea4234c61e82fbf48fd9fa55b17f50dfcfd9229c66a89e0db2fde217e2 |
|
MD5 | 75e59c4914ecffafaac743497d271b60 |
|
BLAKE2b-256 | 0d542e01fd3e59fdc0debe5d4a5dcdbbc486b45f270a3580dc1871c643da1fda |