This is a crypto operation tool
Project description
blueutils
这是一个python 的 工具集
安装
$ pip install blueutils
比特浏览器接口
比特浏览器官方虽然提供了api文档,但是没法直接拿来用,所以我对官方api文档进行封装了下,使用起来更简单了,使用方法如下:
from blueutils.bitbrowser_api import BitBrowser
b = BitBrowser(id="你的浏览器id")
b.open()
context = b.get_browser_context()
print(context)
b.close()
配置管理器
针对程序配置,提供一个ini配置文件,方便动态配置程序,使用方法如下:
from blueutils.config_manager import ConfigManager
config_manager = ConfigManager('config.ini') config_manager.set('log', 'level', 'DEBUG') # 设置默认值 config_manager.save() DOCKER_HOST = config_manager.get('log', 'level') # 获取配置信息
飞书通知
可发送消息到飞书,方便监控程序运行状态,使用方法如下: 需要提前在飞书申请好通知密钥(完全免费),步骤为: 创建群组>>设置>>群机器人>>添加机器人>>自定义机器人>>添加>>保存Webhook 地址>>勾选签名校验>>保存签名>>完成 REPORT_URL 设置为Webhook 地址 REPORT_KEY 设置为签名
from blueutils.feishu_robot import FeishuRobot
feishu = FeishuRobot(webhook=REPORT_URL, secret=REPORT_KEY) feishu.send_text(text="飞书通知")
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
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 blueutils-0.0.7.tar.gz.
File metadata
- Download URL: blueutils-0.0.7.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0433dcff56e0ba93e64445cbcfe9523e4505e05ee3189eff168f61b192dc9f5
|
|
| MD5 |
f09366728dadff8710ee8c9260298f8a
|
|
| BLAKE2b-256 |
f74ee88dcdae1f2e25cdd1a4e496982e555960f2483d7dfb050fe812066cfc2f
|
File details
Details for the file blueutils-0.0.7-py3-none-any.whl.
File metadata
- Download URL: blueutils-0.0.7-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4e5cf6e27d4a4a069f59ef7ed2b9972375f57e324c2dea1d66294f7c160a066
|
|
| MD5 |
abfa20d1292d3673e9c892d0c717baca
|
|
| BLAKE2b-256 |
59f0dd6e4694cd212a90407f4d503661e0aed9a05f7a21f599027fbfba0b9772
|