Carefree-toolkit

Latest version: v0.3.12

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

Scan your dependencies

Page 3 of 5

0.2.5

Miscellaneous fixes and updates.

0.2.4

Miscellaneous fixes and updates.

0.2.1

Miscellaneous fixes and updates.

0.2.0

Release Notes

`carefree-toolkit` now uses `black` to format codes.

New Features

`StrideArray`
Utility class which uses `numpy.lib.stride_tricks.as_strided` to construct 'redundant' arrays efficiently.

Examples
python
import numpy as np
from cftool.misc import StrideArray

x = np.arange(5)
print(StrideArray(x).roll(3))
[[0 1 2]
[1 2 3]
[2 3 4]]


`RollingStat`
Utility class which can calculate different 'rolling' statistics, accelerated by `cython`.

Examples

python
import numpy as np
from cftool.stat import RollingStat

x = np.arange(5)
print(RollingStat.sum(x, 3))
[3 6 9]



Misc

`Processor`
Supported using rgb or bgr arrays as input directly.

`SharedArray`
A thin wrapper of [`SharedArray`](https://pypi.org/project/SharedArray/).

`timing_context`
Supported `enable`.

0.1.10

Release Notes

`cftool.cv`

`Processor`
Util class to process images with some commonly-used methods, such as smoothen, sharpen, edge detection, corner detection, etc.

Examples
python
from cftool.cv import Processor

processor = Processor("/path/to/your/image")
processor.laplace().visualize()


`cftool.ml`

`DataInspector`
Util class to inspect data, supports many commonly-used functions, such as `moment`, `quantile`, `skewness`, `kurtosis`, `draw_histogram`, `qq_plot`, `box_plot`, etc.

Examples
python
import numpy as np
from cftool.ml import DataInspector

data = np.random.randn(10000)
inspector = DataInspector(data)
inspector.box_plot()

0.1.9

Release Notes

`cftool.cv`

A new module which contains some (traditional) cv utility classes and functions.

`draw_contours`
Util function to visualize contours.

`BBox`
Util class to handle bounding boxes.

`Reader`
Util class to read images.

`ShapeObject`
Util class to handle tasks where we mainly focus on 'shapes' (e.g. shape matching)

Page 3 of 5

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.