A package of differnt utilities
Project description
utility belt
This is a utility package which can simplify a lot of common and repetitive tasks.
It contains different utility functions.
to install it use pip install util-belt
and pip
will install the latest version of the package
List of functionalities
-
list to text
to save a list to text file for later use you can do it using the
list_to_txt()
funtion in thefile_utils
module.example
from util_belt.file_utils import list_to_txt my_list = [3,5,6,7] list_to_txt(my_list , file_dest = './list.txt')
file_dest
parameter is the file path where the list should be saved at.
By default it is the current directory and the file name islist.txt
you can change that to any file path you want. the funtion will save your list
to a file with out worrying about details in file handling.Currently this library can only save simple lists or 1D lists
-
file from list
to get a list saved in a txt file uselist_from_txt
function in thefile_utils
moduleExample
from util_belt.file_utils import list_from_txt my_list = list_from_txt('Documents/my_list.txt')
Currently this library can only save and retrieve simple lists or 1D lists.
it will inlude more flexiblity and functionalities in the next update
if there is any issue or but report https://github.com/kellemNegasi/util_belt
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
Hashes for util_belt-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22f5da3afa923c99c49a8d1e2b57a3b87cb4efd37521977f802f67d054df7fb0 |
|
MD5 | 32e15d3af88914fb1475057eeeb88cbe |
|
BLAKE2b-256 | 688eb997aced376a1e408f9584f513c9428e13d7af5d9b7fcf76ec73a5e8ed7a |