Generalpy

Latest version: v1.17.0

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

Scan your dependencies

Page 5 of 6

1.3.2

Nothing new in this release

Fixed the links in readme and pypi project

1.3.1

[NEW] `exceptions` module
- `IgnoreError` class _(read more about it in Readme)_

1.3.0

[NEW] `decorator` module: Contains decorators
- `combine_single_items`: To combine item of sublists (which contain only one item) in a single sublist.
- `conditional`: To run the decorated function and return it's value, only when condition=True
- `run_threaded`: To run the decorated function in a new thread

[NEW] `files` module: Contains methods to work with files
- `delete_files_by_prefix_suffix`: Deletes all files in directory and its subdirectories which have `prefix` as prefix or `suffix` as suffix in their name.
- `get_new_path`: Returns new filePath for files, which do not exist by appending (1/2/3/..).
- `get_random_file_path`: Returns a random path of a file which is not present, in parentDirectory
- `read_file_chunks`: Read file and returns possible data of chunkSize

`Settings` class
- Added `__str__` method

`CustomLogging` class
- Better formatting for log statements
- Logs for `logging.WARNING` will have `[!]` as prefix

Other changes
- Minor docstring improvements
- Added `test.py` file for internal testing _(not for package)_

1.2.3

Better formatting of logs in `CustomLogging` class

1.2.2

`CustomLogging` class
- default value of `loggerName = __name__`
- Better spacing in log statements
- Added `[!]` for warning logs

1.2.1

Fixed missing required dependency `pytz`

Page 5 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.