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.2.tar.gz (10.7 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.2-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for liwancai_pytools-1.0.2.tar.gz
Algorithm Hash digest
SHA256 f24e6284ab26a743468ec6f011c39d42859ca8f8a22bf6638be07ea47b77a978
MD5 6667b86375584370fb3b4d569313fffc
BLAKE2b-256 8838da36a2705360afcfa64d8020302f676a1017ec127e4e3a28f7aae01f3826

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for liwancai_pytools-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7f0e81b2dd9ff3f9f2c18bc0ed4fff804f3b4141ce948d74684423e762afacd4
MD5 91479da69f2fd43b1f45f4baf2a24203
BLAKE2b-256 8dc140e828f2a5fb35f7f569ab1d10bae547296593f18a66ea981067e79b1373

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