Metadata-Version: 2.1
Name: xy_file
Version: 1.0.3
Summary: 文件相关处理模块
Author-email: helios <yuyang.0515@qq.com>
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.11.3
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: rich

<!--
 * @Author: yuyanget 845262968@qq.com
 * @Date: 2024-10-18 20:12:04
 * @LastEditors: yuyanget 845262968@qq.com
 * @LastEditTime: 2024-10-18 20:15:01
 * @FilePath: /xy_file/README.md
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
# xy_file

- [简体中文](readme/README_zh_CN.md)
- [繁体中文](readme/README_zh_TW.md)
- [English](readme/README_en.md)

## 说明
简单文件操作工具，特殊功能为不同路径匹配规则的添加。

## 源码仓库

- <a href="https://github.com/xy-base/xy_file.git" target="_blank">Github地址</a>  
- <a href="https://gitee.com/xy-base/xy_file.git" target="_blank">Gitee地址</a>

## 安装

```bash
pip install xy_file
```

## 使用

###### 1. 命令行

```bash
# 删除当前目录下所有 py 脚本文件
xy_file -w clean -g "*.py"
```

###### 2. python脚本

```python
from xy_file.File import File
from pathlib import Path
touch_file_path = Path.cwd().joinpath("test.txt")
# 创建文件当该文件路径为空
file_path = File.touch(touch_file_path)
# 如果file_path不为空 说明创建空文件成功
```

## 捐赠

如果小伙伴们觉得这些工具还不错的话，能否请咱喝一杯咖啡呢?  

![Pay-Total](./readme/Pay-Total.png)


## 联系方式

```
微信: yuyangiit
邮箱: 845262968@qq.com
```
