DI-toolkit-0.1.0
توضیحات
A simple tool for automatic parameter tuning.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | DI-toolkit-0.1.0 |
| نام | DI-toolkit |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | HansBug |
| ایمیل نویسنده | zhangshaoang@sensetime.com |
| آدرس صفحه اصلی | https://gitlab.bj.sensetime.com/open-XLab/cell/di-toolkit |
| آدرس اینترنتی | https://pypi.org/project/DI-toolkit/ |
| مجوز | Apache License, Version 2.0 |
# DI-toolkit
[](https://pypi.org/project/DI-toolkit/)



[](https://github.com/opendilab/DI-toolkit/actions?query=workflow%3A%22Docs+Deploy%22)
[](https://github.com/opendilab/DI-toolkit/actions?query=workflow%3A%22Code+Test%22)
[](https://github.com/opendilab/DI-toolkit/actions?query=workflow%3A%22Badge+Creation%22)
[](https://github.com/opendilab/DI-toolkit/actions?query=workflow%3A%22Package+Release%22)
[](https://codecov.io/gh/opendilab/DI-toolkit)
[](https://github.com/opendilab/DI-toolkit/stargazers)
[](https://github.com/opendilab/DI-toolkit/network)

[](https://github.com/opendilab/DI-toolkit/issues)
[](https://github.com/opendilab/DI-toolkit/pulls)
[](https://github.com/opendilab/DI-toolkit/graphs/contributors)
[](https://github.com/opendilab/DI-toolkit/blob/master/LICENSE)
A simple toolkit package for opendilab, including the following utilities:
- `ditk.logging`, a easy-to-use logger system
## Installation
You can simply install it with `pip` command line from the official PyPI site.
```shell
pip install DI-toolkit
```
Or install from latest source code as follows:
```shell
git clone https://gitlab.bj.sensetime.com/open-XLab/cell/di-toolkit.git
cd di-toolkit
pip install . --user
```
## Quick Start
### Example of ditk.logging
Here is an example of logging.
```python
from ditk import logging
if __name__ == '__main__':
logging.try_init_root(logging.INFO)
logging.info('This is info')
logging.warning('This is warning with integer 233')
logging.error('This is a error with string \'233\'.')
try:
_ = 1 / 0
except ZeroDivisionError as err:
logging.exception(err)
```
`ditk.logging`has almost the same interface as native `logging` module. You can directly replace `import logging` in the code with `from ditk import logging`.
## Contributing
We appreciate all contributions to improve `DI-toolkit`, both logic and system designs. Please refer to CONTRIBUTING.md for more guides.
## License
`DI-toolkit` released under the Apache 2.0 license.
نیازمندی
| مقدار | نام |
|---|---|
| >=0.7.6 | hbutils |
| >=12.2.0 | rich |
| ~=3.0.0 | Jinja2 |
| ~=3.2.0 | sphinx |
| ~=0.4.3 | sphinx-rtd-theme |
| - | enum-tools |
| - | sphinx-toolbox |
| >=0.0.2 | plantumlcli |
| - | packaging |
| ~=0.2.4 | sphinx-multiversion |
| ~=1.0.2 | where |
| <2,>=1.7 | easydict |
| ==0.29.0 | yapf |
| <5,>=3 | flake8 |
| >=5 | coverage |
| >=4.0.3 | mock |
| ~=3.5 | flake8 |
| >=6.18.5 | testfixtures |
| ~=6.2.5 | pytest |
| ~=3.0.0 | pytest-cov |
| ~=3.6.1 | pytest-mock |
| >=1.34.0 | pytest-xdist |
| ~=10.2 | pytest-rerunfailures |
| ~=2.0.2 | pytest-timeout |
| ~=3.4.0 | pytest-benchmark |
| <2,>=1.7 | easydict |
| >=2 | testtools |
| >=1.0.2 | where |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl DI-toolkit-0.1.0:
pip install DI-toolkit-0.1.0.whl
نصب پکیج tar.gz DI-toolkit-0.1.0:
pip install DI-toolkit-0.1.0.tar.gz