Skip to main content

My basic but custo library

Project description

个人工具库

一、介绍

个人用库,汇集各类工具以及自己的工具代码。便于快速安装个性化的依赖。

二、安装

```shell
# 用https://pypi.org/simple/,避免镜像源没有及时更新
pip install -i https://pypi.org/simple/ yukiiiii_tools
```

三、用法示例

1. 四则运算:

    ```python
    from yukiiiii_tools.calculate import add, subtract, multiply, divide
    print(add(2, 2))
    # >>> 4
    print(subtract(2, 2))
    # >>> 0
    print(multiply(2, 2))
    # >>> 4
    print(divide(2, 2))
    # >>> 1
    ```

2. 模型可视化

    ```python
    from yukiiiii_tools.visulize import show_model_in_netron

    model_path="/path/to/onnx/model/file"
    show_model_in_netron(model_path)
    # 启动一个服务器用于可视化模型结构
    ```

四、相关依赖

- netron:7.7.4

五、开发环境说明

- Python版本:3.10
- 使用`conda`管理依赖,保证开发环境一致性
- 初始化项目:`pip install -r requirements.txt`安装依赖
- 使用netron实现可视化onnx存储的模型
- 使用Github Actions实现自动化部署

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yukiiiii_tools-0.0.2.tar.gz (14.9 kB view hashes)

Uploaded Source

Built Distribution

yukiiiii_tools-0.0.2-py3-none-any.whl (15.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page