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.6.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

util_belt-0.0.6-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file util_belt-0.0.6.tar.gz.

File metadata

  • Download URL: util_belt-0.0.6.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.3

File hashes

Hashes for util_belt-0.0.6.tar.gz
Algorithm Hash digest
SHA256 9e554cc99c4a979ec96fe48c225402dc3fc3020064b58ad59a12a476d75fe9fd
MD5 cc5bbe72066a455aa91d75997a032ae5
BLAKE2b-256 215a48a9358897bd8ccd2723418a462c31a8450430d618647ccd4f7c2070fe50

See more details on using hashes here.

File details

Details for the file util_belt-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: util_belt-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.3

File hashes

Hashes for util_belt-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 4e08751798594e499e1de2242e79d60f45da190376084442b3f4fcdebd624d0b
MD5 475720fc58783adab97333721f0e14cf
BLAKE2b-256 bf00b3bc1c5bb7877a963ec5e68341b388abb0cfdff65bf832cd7fe2cef68ca3

See more details on using hashes here.

Supported by

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