Skip to content

fcasalen/file_handler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

file_handler

project to load and write files that are often used

from file_handler import FileHandler

#loading data from two files in filepath1 and filepath2
data = FileHandler.load(file_paths=['filepath1.txt', 'filepath2.json'])

#loading data from one files in filepath1 and
data = FileHandler.load(file_paths='filepath1.txt')

#loading data from two files in filepath1 and filepath2, with password for filepath1
data = FileHandler.load(file_paths={'filepath1.pdf': 'password1', 'filepath2.pdf': None})

#writing data to two files in filepath3 and filepath4
FileHandler.write(file_handler_data={
    'filepath3.json': data_for_this_file3,
    'filepath4.json': data_for_this_file4
})

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages