Skip to main content

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 服务的 ID
  • API_KEY: 用于 API 访问的密钥

推荐使用 .env 文件和 python-dotenv 进行管理。

开发说明

  1. 克隆仓库
  2. 安装开发依赖:pip install -e ".[dev]"
  3. 运行测试:pytest

许可证

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

wicspy-0.1.11.tar.gz (57.4 kB view details)

Uploaded Source

Built Distribution

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

wicspy-0.1.11-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

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

Hashes for wicspy-0.1.11.tar.gz
Algorithm Hash digest
SHA256 940c94f3f9c253b4afe0f1539905714386d6446e99d06c1ae3aeb034accad9d6
MD5 1e0377743eebb814be2c1ee88fcc4ec4
BLAKE2b-256 f9871491306957630f06fa36ebf5243122629d083b4ff78710009201b947ce0d

See more details on using hashes here.

Provenance

The following attestation bundles were made for wicspy-0.1.11.tar.gz:

Publisher: publish.yml on wicsp/wicspy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for wicspy-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 6448723e49e74906bc375073166cd9355b290f714e262eb33eaebe8659d288c5
MD5 c5076672edc7d84d798a81912b78e169
BLAKE2b-256 36fbd84b2d26f0ebf16d20f4edd453454bd0fbbc148ed280055c54bb37c9aa10

See more details on using hashes here.

Provenance

The following attestation bundles were made for wicspy-0.1.11-py3-none-any.whl:

Publisher: publish.yml on wicsp/wicspy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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