https://github.com/hansbug/hbutils
Some useful functions and classes in Python infrastructure development
https://github.com/hansbug/hbutils
python utilities
Last synced: about 1 year ago
JSON representation
Some useful functions and classes in Python infrastructure development
- Host: GitHub
- URL: https://github.com/hansbug/hbutils
- Owner: HansBug
- License: apache-2.0
- Created: 2021-10-01T13:17:31.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-12-12T15:59:57.000Z (over 1 year ago)
- Last Synced: 2025-04-04T22:48:03.331Z (about 1 year ago)
- Topics: python, utilities
- Language: Python
- Homepage: https://hansbug.github.io/hbutils/
- Size: 528 MB
- Stars: 10
- Watchers: 1
- Forks: 2
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# hbutils
[](https://pypi.org/project/hbutils/)





[](https://codeclimate.com/github/HansBug/hbutils/maintainability)
[](https://codecov.io/gh/hansbug/hbutils)
[](https://github.com/hansbug/hbutils/actions?query=workflow%3A%22Docs+Deploy%22)
[](https://github.com/hansbug/hbutils/actions?query=workflow%3A%22Code+Test%22)
[](https://github.com/hansbug/hbutils/actions?query=workflow%3A%22Badge+Creation%22)
[](https://github.com/hansbug/hbutils/actions?query=workflow%3A%22Package+Release%22)
[](https://github.com/hansbug/hbutils/stargazers)
[](https://github.com/hansbug/hbutils/network)

[](https://github.com/hansbug/hbutils/issues)
[](https://github.com/hansbug/hbutils/pulls)
[](https://github.com/hansbug/hbutils/graphs/contributors)
[](https://github.com/hansbug/hbutils/blob/master/LICENSE)
Some useful functions and classes in Python infrastructure development.
## Installation
You can simply install it with `pip` command line from the official PyPI site.
```shell
pip install hbutils
```
For more information about installation, you can refer
to [Installation](http://open-xlab.pages.gitlab.bj.sensetime.com/cell/hbutils/main/tutorials/installation/index.html).
## Features
The features currently supported by `hbutils` including:
* [hbutils.algorithm](https://hansbug.github.io/hbutils/main/api_doc/algorithm/index.html) - Some useful classic algorithms.
* [hbutils.binary](https://hansbug.github.io/hbutils/main/api_doc/binary/index.html) - Utilities for loading and saving values from binary data. (Still under development)
* [hbutils.collections](https://hansbug.github.io/hbutils/main/api_doc/collections/index.html) - Data structures and containers, as well as the tools that go with them
* [hbutils.color](https://hansbug.github.io/hbutils/main/api_doc/color/index.html) - Color model, spaces (RGB, HSV, HLS are supported) and their calculations.
* [hbutils.design](https://hansbug.github.io/hbutils/main/api_doc/design/index.html) - Extendable implements for some useful design patterns in Python.
* [hbutils.encoding](https://hansbug.github.io/hbutils/main/api_doc/encoding/index.html) - Common encoding, decoding and hash calculations for binary data.
* [hbutils.expression](https://hansbug.github.io/hbutils/main/api_doc/expression/index.html) - Expression-based unary logic infrastructure.
* [hbutils.file](https://hansbug.github.io/hbutils/main/api_doc/file/index.html) - Useful utilities for reading and writing files or streams.
* [hbutils.model](https://hansbug.github.io/hbutils/main/api_doc/model/index.html) - Useful utilities for building immutable data model.
* [hbutils.random](https://hansbug.github.io/hbutils/main/api_doc/random/index.html) - Quickly generate various kinds of random value.
* [hbutils.reflection](https://hansbug.github.io/hbutils/main/api_doc/reflection/index.html) - Magical utilities based on Python imports/object/function/class/module reflections.
* [hbutils.scale](https://hansbug.github.io/hbutils/main/api_doc/scale/index.html) - Calculation and parsing of scaled values, such as memory size and timespan.
* [hbutils.string](https://hansbug.github.io/hbutils/main/api_doc/string/index.html) - Simple but useful string processing utilities, such as pluralization and omission.
* [hbutils.system](https://hansbug.github.io/hbutils/main/api_doc/system/index.html) - Operations on current running environment.
* [hbutils.testing](https://hansbug.github.io/hbutils/main/api_doc/testing/index.html) - Useful utilities for building unit test.
For further information, take a look at [HBUtils’s Documentation](https://hansbug.github.io/hbutils/main/index.html),
the API Documentation part is just the function and classes included now.
This utility set is still under development, more utilities will be added soon afterwards. You
can [share good ideas or suggestions in the issue area](https://github.com/HansBug/hbutils/issues), where we can discuss
and develop them further.