Skip to main content

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

  1. list to text
    to save a list to text file for later use you can do it using the
    list_to_txt() funtion in the file_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 is list.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

  2. file from list
    to get a list saved in a txt file use list_from_txt function in the file_utils module

    Example

    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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

util_belt-0.0.7.tar.gz (2.1 kB view hashes)

Uploaded Source

Built Distribution

util_belt-0.0.7-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page