Sentinel

Latest version: v1.0.0

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

Scan your dependencies

1.0.0

First stable release.

This stabilizes all features in 0.3.0, without significant changes to the modules behaviour.

0.3.0

Added

- `sentinel.create()` infers name from assignment statement
- requires optional requirement: [python-varname](https://github.com/pwwang/python-varname)

0.3.0alpha.1

I messed up the release :/

0.3.0alpha.0

* test: deepcopy

* remove: examples.py

These old code samples make me cringe >.<


* deps: add varname as an optional dependency

* feat: infer variable name if name is not provided

* test: skip if varname is not installed

* docs: rewrite for latest version

* 0.3.0-alpha.0

0.2.0

Added

- calling the type() of a sentinel returns the singleton instance

Changed

- `sentinel.create()` keyword argument: `extra_methods` is now `cls_dict`

0.2.0alpha.0

Attempting to publish to PyPI via GitHub Actions

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.