Skip to main content

A Unified Essential Library toolcraft (uel-toolcraft) for personal usage.

Project description

uel-toolcraft

A Unified Essential Library toolcraft for personal usage.

Installation

pip install uel-toolcraft

Install with optional dependencies:

# Core only (explicit — same as pip install uel-toolcraft)
pip install uel-toolcraft[core]

# All optional dependencies (excludes PyQt6 — install [pyqt] separately if needed)
pip install uel-toolcraft[all]

# Specific extras
pip install uel-toolcraft[pyqt,ffmpeg,git]

# Everything including PyQt6
pip install uel-toolcraft[all,pyqt]

Local development install:

git clone https://github.com/iShengren/uel-toolcraft.git
cd uel-toolcraft
uv pip install -e ".[all]"

Usage

Models

from uel_toolcraft.models import AESCipher, SQLiteHelper, BarkClient

cipher = AESCipher("my-secret-key")
db = SQLiteHelper("mydb.sqlite")
bark = BarkClient("https://bark.example.com", "device_key")

Tools

from uel_toolcraft.tools import read_json_file, write_json_file, md5sum

data = read_json_file("config.json")
checksum = md5sum("large_file.bin")
write_json_file({"key": "value"}, "output.json")

CLI

uel-toolcraft --version
python -m uel_toolcraft --version

Logging

LogConfig 提供彩色控制台日志 + 可选文件日志,并自动屏蔽吵杂的第三方库日志。

from uel_toolcraft.models import LogConfig

LogConfig(level=logging.INFO, log_file="app.log", block_loggers=["noisy_lib_1", "noisy_lib_2"])

屏蔽第三方库日志 — 在项目的 pyproject.toml 中配置:

[tool.uel-toolcraft.logging]
block_loggers = ["boto3", "azure.core", "googleapiclient"]

也可以通过参数显式传入:

LogConfig(level=logging.INFO, log_file="app.log", block_loggers=["noisy_lib_1", "noisy_lib_2"])

合并规则:内置默认 (httpx, urllib3) + pyproject.toml 中的 + 参数传入的 → 三源并集自动去重。

get_logger 在配置 LogConfig 的同时返回 logging.Logger 对象


Optional Dependencies

Extra Packages Used by
core (none) Explicit core-only install
pyqt PyQt6 PyQtAsyncHelper, ui_tools
ffmpeg ffmpeg-python ffmpeg_tools
rclone rclone-python rclone_tools
supabase supabase supabase_tools
git GitPython git_tools
redis upstash-redis redis_upstash

License

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

uel_toolcraft-0.1.2.tar.gz (26.7 kB view details)

Uploaded Source

Built Distribution

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

uel_toolcraft-0.1.2-py3-none-any.whl (36.5 kB view details)

Uploaded Python 3

File details

Details for the file uel_toolcraft-0.1.2.tar.gz.

File metadata

  • Download URL: uel_toolcraft-0.1.2.tar.gz
  • Upload date:
  • Size: 26.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for uel_toolcraft-0.1.2.tar.gz
Algorithm Hash digest
SHA256 fc57eddc968d49c6e6e139d3734a8c9cd9aec907ff159634e49dc9b4469b1178
MD5 ac3ff685856e21ca5d52ff4c96efb987
BLAKE2b-256 ad96c423353e731f9dbaa2a8eacadc2a05423a7a0777cbeeb2ea4e887bbf5b45

See more details on using hashes here.

Provenance

The following attestation bundles were made for uel_toolcraft-0.1.2.tar.gz:

Publisher: publish-pypi.yml on Ausaci/uel-toolcraft

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

File details

Details for the file uel_toolcraft-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: uel_toolcraft-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 36.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for uel_toolcraft-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e92ebde0d83bce5f8b633190e6dcbe6021012b2e546f3f96eb6e76cfbb844f1c
MD5 2b23be8c1d56ec3c5fe6900ac6fc2790
BLAKE2b-256 f422a104758fda2b941e937759afd6b81fe9ae6e5341ba6f5a16de595af6916b

See more details on using hashes here.

Provenance

The following attestation bundles were made for uel_toolcraft-0.1.2-py3-none-any.whl:

Publisher: publish-pypi.yml on Ausaci/uel-toolcraft

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