Ctools

Latest version: v0.2.0

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

Scan your dependencies

0.2.0

-----
**New Feature**

* New class :class:`SortedMap`. A sorted map base on red-black tree.

**Changes**

* :class:`CacheMap` and :class:`TTLCache` now support all of MutableMapping methods.
* :meth:`CacheMap.setnx` and :meth:`TTLCache.setnx` must accept key as their only one argument.
* :class:`CacheMap` default size is setting to ``MAX_INT32``.
* :class:`Channel` default size is setting to ``MAX_INT32``.
* :class:`TTLCache` default ttl is setting to 1 minute.

0.1.0

-----
**New Feature**

* New class :class:`CacheMap`, it's a lfu cache behaving much like dict.
* New class :class:`TTLCache`, a cache mapping storing items for a certain time.
* :func:`strhash` now add a method argument which supported fnv1a(default), fnv1, djb2 and murmur algorithms.

0.0.4

-----
**Improve**

* Decrease :func:`strhash` collisions, but note that we will get different hash value in this version compare with old version.

0.0.3

-----
* First release.

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.