Make Py Development Much Easier & Fun


License
Apache-2.0
Install
pip install funfunc==0.2.2

Documentation

funfunc

Implement multiple functions or tool classes to make your Python Development Much Easier & Fun

Installation

pip install funfunc

Usage

Convert your image array object to base64 format string

import funfunc
import cv2

cv_image = cv2.imread('/img/path.jpg')
base64_string = funfunc.image_array_to_base64_string(cv_image)

Print a function runing time

import funfunc
import time

@funfunc.time_it
def simple_func():
    time.sleep(3)

Split a list to train and test set by a specific ratio

import funfunc

lst = [1, 2, 3, 4, 5, 6, 7, 8]
train_set, test_set = funfunc.train_test_split_arr(arr=lst, ratio=0.2)

Check whether the string is a URL

from funfunc import Validator

Validator.is_url('http://www.github.com')

And more functions wait you to explorer...