Cool-utils

Latest version: v1.3.2

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

Scan your dependencies

Page 1 of 2

1.3.2

Summery
This version has faster and better optimised code and fixes some minor bugs whilst enhancing new features and improving existing code! This version will also have more reliable Link Censors and Link Checks, it even implements a feature to add whitelists to link checks and censors.

New Features
- Implemented `strict` mode in `censor` in `Links` class. (blocks bypassing links by censoring TLDs)
- Added `Colour` function to `Terminal` class to enable RGB Colours to Terminal Text.
- Added `whitelist` lists to `Links` class that makes links not get detected when found.

Breaking Changes
- Only allowing `int` values on `indent` argument on `JSON` class.
- Changed `get_data` function to `get` in `JSON` and `GlobalJSON` classes.
- Outputting Runtime Errors on `write` function on `JSON` and `GlobalJSON` classes.

Minor Changes
- Changed indent behaviour in `format` function on `JSON` and `GlobalJSON` classes.

Other Changes
- Reimplemented how `Link` classes work to make it more reliable.

**Full In-dept Code Changelog:** https://github.com/Senarc-Studios/Cool-Utils/compare/v1.3.0...v1.3.2

1.3.0

Summary
Today, Proguy, Senarc's current CTO has contributed to code and help out Cool-Utils, he helped us a lot, please thank him with his hard work, and for a overview of all the changes, as of version 1.3.0, there is `GlobalCache` and `GlobalJSON` that is different than normal `Cache` and `JSON`, we also enforced [PEP 8](https://peps.python.org/pep-0008/) and [PEP 252](https://peps.python.org/pep-0252/#static-methods-and-class-methods). There is a lot of changes in the background that make this library more efficient and better than before even when there might not be changes visible. The bug causing the Colour to leak after ending Terminal has been fixed now.

New Features
- Added Separate Global and Local Cache.
- Added `default` parameter in `load` function in `GlobalCache` and `Cache` classes.
- Added `GlobalJSON` class.
- Added `write` and `_check_file` method to `JSON` class.
- Added more characters to characters in `Links.check`.
- Added Proguy to contributor list.

Changes
- Enforcing [PEP 8](https://peps.python.org/pep-0008/) and [PEP 252](https://peps.python.org/pep-0252/#static-methods-and-class-methods)
- Use typing overload to improve type checking and linters.
- Change `startwith` to `startswith` and `endwith` to `endswith` (spelling) in Compile class for the following methods:
- `Compile.string`
- `Compile.to_string`
- `Compile.numbers`
- Change windows commands in `os.py` file:
- From `python3` to `py`
- From `pip` to `py -m pip`
- Change `OPTION` to `OPTIONS` (spelling).
- Add staticmethod-s in `Terminal` class.
- Use `is` instead of `==` and is not instead of `!=` when comparing to `None`.
- Simplified file variable in `Terminal` class.
- Changed `size` to `_size` in cache.

Bug Fixes
- Fixed Colour leak on Terminal.
- Using proper `MISSING` instead of Constants.

1.2.1.4

Breaking Changes
- Changed the way `Mongo` class works.

Bug Fixes
- Fixed issues with `simple-chalk` by re-implementing Terminal colours.
- Made `Mongo` class mostly async.

Minor Changes
- Removed unused variables
- Removed unused libraries from `requirements.txt`.

1.2.1.3

New Features
- Added `Array` implementations.
- Added Dates to default time format in `Terminal` output functions.

Bug Fixes
- Errors caused by discord libraries
- Fixed errors on output by parsing `Terminal` output variables as strings.
- Syntax errors with `Mongo`
- Fixed import typo.

Breaking Changes
- Made variables in `Cache` functions to accept any variable type.
- Made variables in `JSON` functions to accept any variable type.
- Removed `get_env` function.
- Removed `discord` utils.

v1.2.1.x
Breaking Changes
- Removed `discord.py` utils due to import issues.
- Removed `get_env` due to it not working properly.

Changes
- Shortened and improved `get_command` function.
- Added `on_error` handler for errors in terminal.
- Added dates to default terminal log format.
- Fixed issues with Mongo.

1.2.0

Breaking Changes
- Renamed all the json_utils functions to start with `cool_utils.JSON`
- You have to open the file before getting data or writing data to it with `cool_utils.JSON.open()`

New Features
- Added `cool_utils.JSON.build()`
- Added `cool_utils.Terminal.set_format()`
- Added `cool_utils.Terminal.start_log()`
- Added `cool_utils.Terminal.stop_log()`
- Added `cool_utils.Terminal.display()`
- Added `cool_utils.Terminal.warn()`
- Added `cool_utils.Terminal.error()`
- Added `cool_utils.Terminal.clear()`
- Added `cool_utils.Mongo.connect()`
- Added `cool_utils.Mongo.set_collection()`
- Added `await cool_utils.Mongo.insert()`
- Added `cool_utils.Mongo.find()`
- Added `await cool_utils.Mongo.find_one()`
- Added `await cool_utils.Mongo.update()`
- Added `await cool_utils.Mongo.delete()`

1.1.9

New Features
- `cool_utils.Links.check()`
- `cool_utils.Links.censor()`
- `cool_utils.Links.find()`

Breaking Changes
- `utils` is renamed to `cool_utils`

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.