Skip to main content

A utility package for various validation checks

Project description

zyt_validation_utils

PyPI Version License Python Version

zyt_validation_utils 是一个用于数据、文件、目录和文本验证的 Python 工具包。它提供了多种实用的验证函数,帮助开发者快速完成常见的数据检查任务。


功能特性

数据验证:

  • 检查列表中的元素是否全部为指定类型。
  • 检查列表中的元素是否唯一。

目录验证:

  • 检查路径是否为目录。
  • 检查目录是否为空。
  • 检查目录是否包含子目录或非子目录文件。

文件验证:

  • 检查路径是否为文件。
  • 检查文件类型(如音频、视频、图片、压缩文件等)。
  • 检查文件是否加载完整。

文本验证:

  • 检查文本是否全为中文、英文、数字或特殊字符。
  • 检查文本中是否包含中文、英文、数字或特殊字符。
  • 检查文本中是否包含给定的字符或子字符串。

安装

使用 pip 安装:

pip install zyt_validation_utils 

贡献

欢迎贡献代码!

许可证

本项目基于 MIT 许可证 开源。

作者

致谢

感谢所有为这个项目做出贡献的人!

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

zyt_validation_utils-0.1.0.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zyt_validation_utils-0.1.0-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file zyt_validation_utils-0.1.0.tar.gz.

File metadata

  • Download URL: zyt_validation_utils-0.1.0.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.7

File hashes

Hashes for zyt_validation_utils-0.1.0.tar.gz
Algorithm Hash digest
SHA256 59c9f231e4dde5ca2184f4596ba98ab1253ea29ce9eb24856f0be52f1cde345d
MD5 08ea20cb2688523565711ce1e60bb3ca
BLAKE2b-256 8e633aaaaa986275899396979ab3651eb0d7940411aef8411416fe49f490c000

See more details on using hashes here.

File details

Details for the file zyt_validation_utils-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for zyt_validation_utils-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 86b6410c448dc1b71b744464a566af281da0287457645016531f92272008ebb2
MD5 395de71a7d0933b4efaba4ff5e33168d
BLAKE2b-256 de7a5926170b63ad7961b9122cc864f7f2914d2307eb893102804b208fc0f58e

See more details on using hashes here.

Supported by

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