This is a library used to manipulate, and save data quickly.
Project description
Python Script: persistentdatatools
Documentation
Written By: Benjamin P. Trachtenberg
If you have any questions e-mail me
Contact Information: e_ben_75-python@yahoo.com
LinkedIn: Ben Trachtenberg
Docker Hub: Docker Hub
PyPi Page for persistentdatatools
Requirements
- Nothing Specific besides Python 3
Installation
- From source "setup.py install"
- From pip "pip install persistentdatatools"
Languages
- Python
About
This is a library used to manipulate, and save data quickly. It is just a bunch of shortcuts I use quite a bit to manipulate saved data.
Functions included in v2.0.0
- list_to_file(orig_list, file_name, file_location)
- file_to_list(file_name, file_location)
- csv_to_dict(file_name, file_location)
- store_object(file_name, save_key, file_location, object_to_store=None)
- retrieve_object_from_file(file_name, save_key, file_location)
- delete_object_from_file(file_name, save_key, file_location)
- verify_key_in_shelve(file_name, save_key, file_location)
- remove_spaces(string_item)
- remove_spaces_add_hyphen(string_item)
- remove_extra_spaces(string_item)
- verify_file_exists(file_name, file_location)
- verify_directory(directory_name, directory_location, directory_create=False)
- file_name_increase(file_name, file_location)
- dict_to_csv(orig_dict, file_name, field_names_tuple, file_location)
- remove_symbol_add_symbol(string_item, remove_symbol, add_symbol)
- list_files_in_directory(full_directory_path)
Functions added in v2.2.2
- get_keys_from_shelve(file_name, file_location)
Update to Functions in v2.2.5
-
retrieve_object_from_file: Uses get to retrieve key now, will not throw exception if it doesn't exist
-
verify_key_in_shelve: Uses get to retreive key now, will still return True, or False
Functions added in v2.2.5
- split_string_retain_spaces(string)
- split_strings_in_list_retain_spaces(orig_list)
- join_split_string(split_string)
Functions added in v2.2.6
- random_line_data(chars_per_line=80)
- random_data(line_count=1, chars_per_line=80)
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
Built Distribution
Close
Hashes for persistentdatatools-2.2.12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49f34dd55a8f856eea4457a9c92c48eb55157e8f3c5ff8a499c0757fdac733c5 |
|
MD5 | cd858492c2f60cb43133b474af71a541 |
|
BLAKE2b-256 | d2cdb0a6357c0dfac131b5212c58d0798898e9c05f3399956e67757caa2bcd35 |
Close
Hashes for persistentdatatools-2.2.12-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2efc26c6512c97dd34b63eaa6f7874884830ebbb104f4e20c542465f96e518d |
|
MD5 | 2784113528f854d0e2761c76e27c733a |
|
BLAKE2b-256 | e7aa45a82a46611b213f8813fd2204f501c3aa5c2984a85004c92a39c7836162 |