Skip to main content

文件相关处理模块

Project description

xy_file

说明

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

源码仓库

安装

pip install xy_file

使用

1. 命令行
# 删除当前目录下所有 py 脚本文件
xy_file -w clean -g "*.py"
2. 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

联系方式

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

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

xy_file-1.0.3.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

xy_file-1.0.3-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file xy_file-1.0.3.tar.gz.

File metadata

  • Download URL: xy_file-1.0.3.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.3

File hashes

Hashes for xy_file-1.0.3.tar.gz
Algorithm Hash digest
SHA256 c624924e04df409ff6594e744d8ae19fa8da6e5bd160d136a2c0cd324a4ddfda
MD5 0aab8dedadba844d27c8bd4b6fc37091
BLAKE2b-256 d39651f02b6c0b9bab33a4836b8cbc02d0837ee772d4ebaa36b0913cf06555af

See more details on using hashes here.

File details

Details for the file xy_file-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: xy_file-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.3

File hashes

Hashes for xy_file-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 744993cc828005238570187b483e532ea61fee9b4036f041ceef9942b5f876e7
MD5 522031deb34ec9e2d49bdbef2e977940
BLAKE2b-256 e6b5f3bce168dbee646982f55498d419671e9c0fad11b88d7a1b463e9b6b525d

See more details on using hashes here.

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