Skip to main content

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

Metadata

Release files for liwancai-PyTools 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for liwancai-PyTools 1.0.2
File Size Uploaded Provenance Actions
liwancai_pytools-1.0.2.tar.gz 10.7 kB Without provenance Details for liwancai_pytools-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for liwancai-PyTools 1.0.2
File Interpreter ABI Platform Actions
liwancai_pytools-1.0.2-py3-none-any.whl Python 3 none any Details for liwancai_pytools-1.0.2-py3-none-any.whl

Total release size: 21.8 kB

Release files / liwancai_pytools-1.0.2.tar.gz

Download URL liwancai_pytools-1.0.2.tar.gz
Size 10.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f24e6284ab26a743468ec6f011c39d42859ca8f8a22bf6638be07ea47b77a978
BLAKE2b-256 checksum
How to use checksums
8838da36a2705360afcfa64d8020302f676a1017ec127e4e3a28f7aae01f3826
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release files / liwancai_pytools-1.0.2-py3-none-any.whl

Download URL liwancai_pytools-1.0.2-py3-none-any.whl
Size 11.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f0e81b2dd9ff3f9f2c18bc0ed4fff804f3b4141ce948d74684423e762afacd4
BLAKE2b-256 checksum
How to use checksums
8dc140e828f2a5fb35f7f569ab1d10bae547296593f18a66ea981067e79b1373
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Security for liwancai-PyTools 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page