Easycheck

Latest version: v0.11.0

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

Scan your dependencies

Page 1 of 2

0.10.0

This release comes with type hints for `easycheck` functions.

0.9.2

This is a big release, with two important functionalities added:
* `easycheck` functions can be switched off using an environmental variable
* assertion functions work just like assertions, so when `__debug__` is `True`

Additional functionalities are related to the repository and documentation:
* badges were added
* CI was set up in GitHub actions

0.7.0

This release comes with a significant performance improvement. Previously, `easycheck` functions ran various validations of their arguments, and used `check_if()` and some other `easycheck` functions to run checks. Many of the validations are removed, as Python runs them anyway. All `check_if()` checks were replaced with the corresponding `if`-based checks. That way, `easycheck` is much faster, sometimes almost up to 100 times.

This is not the end of the optimizations. In future releases, the `_raise` function, used by all `easycheck` functions, will be improved in terms of performance. Maybe all instances of `easycheck` functions run by other `easycheck` functions will be replaced with the corresponding `if`-checks, but this may lead to a far more complicated code.

0.6.0

The release comes with a new function, `check_if_in_limits`, and its testing alias, `assert_if_in_limits`.

0.5.0

This release comes with improved messaging. For custom exception classes, if a message is not provided, the docstring of exception class is taken as the message (this is the default). For built-in exceptions, the default behavior is to not print any message.

0.3.3

Now you can check an object's type with a `check_type()` function. For backward compatibility, the previous name, `check_instance()`, is kept, and will be kept for some time.

Page 1 of 2

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.