Skip to main content

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

blueutils-0.0.5.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

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

blueutils-0.0.5-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file blueutils-0.0.5.tar.gz.

File metadata

  • Download URL: blueutils-0.0.5.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.7

File hashes

Hashes for blueutils-0.0.5.tar.gz
Algorithm Hash digest
SHA256 e122ad3a6a4db464ee672ee03c66817775409a1ca0d1dcd60c3ed99925685b87
MD5 d416b57fd4bb91e8cbba1de01f9ed838
BLAKE2b-256 d203b7579b23f261c1c3281da69e343d5d8321b2ec38a07be62ad27faf6f3cc2

See more details on using hashes here.

File details

Details for the file blueutils-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: blueutils-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.7

File hashes

Hashes for blueutils-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 49e273b43734d0c424443cd5dba0e8d7e128ce550c5144fa43d9e9f1ad74a0d2
MD5 1b86322be9ac17d5a44299f98e2c4fba
BLAKE2b-256 9f2bbfdc76e889d0641ac4030df5c9b15cd267212a141469de32d6cfb758e652

See more details on using hashes here.

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