tools for algorithm engineer
Project description
yyx_tools
项目开发过程中常用的一些开发工具,减少自己的重复代码量。
##安装
pip install yyx_tools
##使用
import yyx_tools as yt
##API
yt.file.save(dump_path, content, keep_ori) # 将str/np.array保存到指定文件中
yt.list.rm_elem(input_list, elem) # 检查elem是否存在于input_list中,如果存在则删除
yt.video.info(mp4_path) # 返回mp4信息,fps, total frames, image width, image height
yt.checkdir(dir_path) # 检查dir_path是否存在,如果不存在则创建
yt.load_yaml(yaml_path) # load yaml 并将其结构化
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
yyx_tools-0.0.14.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for yyx_tools-0.0.14-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23368917cfe45f125d0877483dcd2b469b3c6bb4816a41575e9915f2d7d541ea |
|
MD5 | 4e3b0b2dab32b3359cc1ddfd020254fe |
|
BLAKE2b-256 | cca6c7a3dc9a086ee3835dfc53e8c2678e7b26f8cceab703b6560ef9ba9aaba3 |