A comprehensive Python utilities library for various tasks
Project description
wicspy
一个全面的 Python 工具库,提供各种实用功能和工具集合。
功能特点
- 消息通知模块:支持 Bark 等多种通知渠道
- 服务器工具:监控和收集服务器信息
- 网络工具:网页抓取、API 客户端等
- 系统工具:文件操作、日志管理等
- 安全工具:加密解密、令牌管理等
安装
pip install wicspy
或者从源码安装:
git clone https://github.com/wicsp/wicspy.git
cd wicspy
pip install -e .
使用示例
Bark 消息通知
from wicspy.messaging import bark
# 发送 Bark 通知
bark.send_message("测试标题", "这是测试内容")
网页内容抓取
from wicspy.web import scraper
# 抓取网页内容
content = scraper.fetch_page("https://example.com")
print(content.title)
环境变量配置
某些功能需要配置环境变量:
BARK_ID: Bark 服务的 IDAPI_KEY: 用于 API 访问的密钥
推荐使用 .env 文件和 python-dotenv 进行管理。
开发说明
- 克隆仓库
- 安装开发依赖:
pip install -e ".[dev]" - 运行测试:
pytest
许可证
MIT 许可证
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wicspy-0.1.11.tar.gz.
File metadata
- Download URL: wicspy-0.1.11.tar.gz
- Upload date:
- Size: 57.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
940c94f3f9c253b4afe0f1539905714386d6446e99d06c1ae3aeb034accad9d6
|
|
| MD5 |
1e0377743eebb814be2c1ee88fcc4ec4
|
|
| BLAKE2b-256 |
f9871491306957630f06fa36ebf5243122629d083b4ff78710009201b947ce0d
|
Provenance
The following attestation bundles were made for wicspy-0.1.11.tar.gz:
Publisher:
publish.yml on wicsp/wicspy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wicspy-0.1.11.tar.gz -
Subject digest:
940c94f3f9c253b4afe0f1539905714386d6446e99d06c1ae3aeb034accad9d6 - Sigstore transparency entry: 738107344
- Sigstore integration time:
-
Permalink:
wicsp/wicspy@bc868b3ef033400853743c1c3c27b6768935803c -
Branch / Tag:
refs/tags/v0.1.11 - Owner: https://github.com/wicsp
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@bc868b3ef033400853743c1c3c27b6768935803c -
Trigger Event:
release
-
Statement type:
File details
Details for the file wicspy-0.1.11-py3-none-any.whl.
File metadata
- Download URL: wicspy-0.1.11-py3-none-any.whl
- Upload date:
- Size: 16.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6448723e49e74906bc375073166cd9355b290f714e262eb33eaebe8659d288c5
|
|
| MD5 |
c5076672edc7d84d798a81912b78e169
|
|
| BLAKE2b-256 |
36fbd84b2d26f0ebf16d20f4edd453454bd0fbbc148ed280055c54bb37c9aa10
|
Provenance
The following attestation bundles were made for wicspy-0.1.11-py3-none-any.whl:
Publisher:
publish.yml on wicsp/wicspy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wicspy-0.1.11-py3-none-any.whl -
Subject digest:
6448723e49e74906bc375073166cd9355b290f714e262eb33eaebe8659d288c5 - Sigstore transparency entry: 738107349
- Sigstore integration time:
-
Permalink:
wicsp/wicspy@bc868b3ef033400853743c1c3c27b6768935803c -
Branch / Tag:
refs/tags/v0.1.11 - Owner: https://github.com/wicsp
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@bc868b3ef033400853743c1c3c27b6768935803c -
Trigger Event:
release
-
Statement type: