Skip to content

Releases: cerbernetix/py-toolbox

0.3.0

12 Sep 09:29
a5e6718
Compare
Choose a tag to compare

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

11 Sep 12:52
4b8656e
Compare
Choose a tag to compare

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

Full Changelog: 0.1.2...0.2.0

0.1.2

05 Sep 20:43
829fc50
Compare
Choose a tag to compare

Fixed

  • Wrong use of the module path
    It was generating the error TypeError: expected str, bytes or os.PathLike object, not list

What's Changed

Full Changelog: 0.1.1...0.1.2

0.1.1

05 Sep 20:26
892534f
Compare
Choose a tag to compare

Changed

  • get_application_path(), get_application_name(), and get_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

0.1.0

05 Sep 19:13
8b3affd
Compare
Choose a tag to compare

Added

  • Helpers around file paths.

What's Changed

New Contributors

Full Changelog: https://github.com/jsconan/py-toolbox/commits/0.1.0