Metadata-Version: 2.0
Name: motils
Version: 0.1.1
Summary: A package containing local utilities for simplifying every day coding and scripting
Home-page: https://github.com/neuhofmo/motils
Author: Moran Neuhof
Author-email: neuhofmo@gmail.com
License: MIT
Keywords: Everyday scripting and development tools
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Intended Audience :: Other Audience
Classifier: Topic :: Software Development :: Build Tools
Classifier: Topic :: Utilities
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6

The motils package includes the following functions:
 - file_to_string(file_name): converts a file to string and returns the string
 - remove_commas(file_name, new_file_name=None): removes commas from a file and replaces them with newlines
 - zip_files(file_list, output_path): zips a list of files and returns the path to the zip file
 - debug(debug_string, to_debug): prints timestamp + string only if the to_debug flag is True
 - create_folder_if_needed(path): creates a folder if it doesn't already exist
 - file_len(file_name): returns the length of the file in lines
 - targz_folder(folder, archive_name=None): returns a path to tar.gz folder made out of folder
 - write_bash_script(command_line, write_folder, script_name="run_script.sh"):  writes a bash script and returns its path
 - merge_two_dicts(x, y): returns a merged dictionary
 - is_number(s): returns True if the string is a number

I have used several of these functions in my work on a daily basis, so why not publish them?

Written by Moran Neuhof, 2017

