Releases: cerbernetix/py-toolbox
Releases · cerbernetix/py-toolbox
0.3.0
Added
LogFile
- Offers a similar API to the Python builtin loggers for logging to a custom file.setup_file_logging()
- Setup file logging for the application.handle_uncaught_exceptions()
- Installs a collector for logging uncaught exceptions.
Changed
- The documentation generator clears the
./docs
folder before generating the documentation.
What's Changed
Full Changelog: 0.2.0...0.3.0
0.2.0
Added
FileManager(filename, ...)
- Manages read and write for generic files.CSVFile(filename, ...)
- Manages read and write for CSV files.JSONFile(filename, ...)
- Manages read and write for JSON files.PickleFile(filename, ...)
- Manages read and write for pickle files.get_file_mode()
- Gets the file mode given the desired access type.read_file(filename, ...)
- Reads all the content from a file at once.write_file(filename, data, ...)
- Writes content to a file at once.read_csv_file(filename, ...)
- Reads all the content from a CSV file at once.write_csv_file(filename, data, ...)
- Writes content to a CSV file at once.read_json_file(filename, ...)
- Reads all the content from a JSON file at once.write_json_file(filename, data, ...)
- Writes content to a JSON file at once.read_pickle_file(filename, ...)
- Reads all the content from a pickle file at once.write_pickle_file(filename, data, ...)
- Writes content to a pickle file at once.- Reference documentation, in the
./docs
folder. - Documentation generator.
Changed
create_file_path
: It now returns true if the path already exists.
What's Changed
- Feature/File managers by @jsconan in #8
- Feature/Documentation by @jsconan in #9
- Feature/Improve file managers by @jsconan in #10
- Release 0.2.0 by @jsconan in #11
Full Changelog: 0.1.2...0.2.0
0.1.2
0.1.1
Changed
get_application_path()
,get_application_name()
, andget_file_path()
now all require the name of the main package for getting the application's path.
Fixed
- Wrong detection of the application path, in
get_application_path()
(__main__
has no attribute)
The trick used was not working, the__main__
module has no attribute.
What's Changed
Full Changelog: 0.1.0...0.1.1