Cerbernetix.toolbox

Latest version: v0.10.0

Safety actively analyzes 688758 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 3

0.6.0

Added

- `fetch_content(url, ...)` - Fetch content from a remote HTTP address.
- `read_zip_file(buffer, ...)` - Reads a file content from a Zip archive.
- `read_zip_csv(buffer, ...)` - Reads a CSV content from a Zip.

0.5.1

Changed

- Increase coverage

Fixed

- Wrong use of `fieldnames=False` in `CSVFile.write()`.

0.5.0

Added

- `Config` - A class for handling a configuration.
- `ConfigOption` - A class for handling config options.
- `create_options(options)` - Creates config options from a list of descriptors.
- `passthrough(value)` - A passthrough mapper. It returns the value as it is.
- `boolean(value)` - Converts a value to a boolean value.

0.4.0

Added

- `TestCase` - Extends the default Python TestCase with more assertions.
- `test_cases(cases)` - Decorates a test case with parameters.

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.

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.

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.