Skip to main content

一个实用的Python工具库,提供各种数据处理、时间日期、字典列表操作等实用工具函数

Project description

PyTools

一个实用的Python工具库,提供各种数据处理、时间日期、字典列表操作等实用工具函数。

注意: 包在PyPI上的名称是 liwancai-PyTools,但导入时使用 PyTools

安装

pip install liwancai-PyTools

使用

# 导入整个包的所有功能
from PyTools import *

# 使用字典工具
json_data = {"name": "John", "age": 30}
keys = DictGETKEY(json_data)
print(keys)  # ['name', 'age']

# 使用列表工具
my_list = [3, 1, 2, 1]
unique_list = SetList(my_list)
print(unique_list)  # [1, 2, 3]

# 使用时间工具
today_week = ToDayWeek()
print(f"今天是星期{today_week + 1}")

# 使用通用工具
progress = TqdmN(100)
for i in range(100):
    progress.update("处理中")

其他导入方式

# 导入特定模块
from PyTools import Dict
keys = Dict.DictGETKEY({"a": 1})

# 导入特定函数
from PyTools.Dict import DictGETKEY
keys = DictGETKEY({"a": 1})

功能模块

  • Dict: 字典操作工具
  • List: 列表操作工具
  • TimeDate: 时间日期工具
  • Tools: 通用工具函数

许可证

MIT License

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

liwancai_pytools-1.0.1.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

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

liwancai_pytools-1.0.1-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file liwancai_pytools-1.0.1.tar.gz.

File metadata

  • Download URL: liwancai_pytools-1.0.1.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for liwancai_pytools-1.0.1.tar.gz
Algorithm Hash digest
SHA256 806783de7b1f571a1489695a7b3c06f263d5cc5afe2b17472af72ff93a46d91d
MD5 32a9a8fa0ba934f7e6197d38ac961803
BLAKE2b-256 4c83e31b813a8defd7c5516f6aec14c326406cef4f90fcdaa817891efd3c332f

See more details on using hashes here.

File details

Details for the file liwancai_pytools-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for liwancai_pytools-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f0617a91a71c54dd3db69ac9ebda22a43e5274aa2defe71f3f7df3095f28db55
MD5 5a61d9d9f9ffd32703eeaddb5b1791b9
BLAKE2b-256 1219d05471df70e02a289d09a53f88353696b97fb2ea2f312d27c3a3e4f3fc2f

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