easy_pyoc
自定义 Python 包,封装一些功能。
注:带 * 的需要额外安装依赖,并使用完整路径导入。
安装
pip install easy_pyoc
工具
1、classes
Config配置类,读取配置文件,并让其可以像访问对象属性一样访问配置属性,支持多种格式,如 json、yaml、tomlLogger单例 Logger 类Magic魔法类,简单实现了 str、repr、call 方法
2、socket
对 socket 进行了封装,支持 TCP/UDP/MULTICAST 协议,支持服务端和客户端模式,支持多播。
ServerSocketTCP/UDP/MULTICAST 服务端ClientSocketTCP/UDP/MULTICAST 客户端
3、util
封装了一些工具函数。
crc_utilCRC 校验工具,提供 CRC16 校验功能datetime_util日期相关工具- *
flask_utilFlask 相关工具 func_util函数相关工具, 提供函数调用日志装饰器、异常捕获装饰器、执行钩子装饰器等json_utiljson 相关工具knx_utilKNXnet/IP 相关工具network_util提供网络唤醒、网络信息获取等功能object_util对象相关工具,提供字典与对象相互转换等函数path_util路径相关工具string_util字符串相关工具,提供进制转换、字符串命名格式化等功能thread_util线程相关工具,提供任务执行/取消等功能toml_utiltoml 相关工具,仅提供 toml 格式解析功能xml_utilxml 相关工具,提供 xml 文件读写功能yaml_utilyaml 相关工具,提供 yaml 文件读写功能
4、OcGui
实现自定义标题栏的窗口,包含放大、缩小、关闭的基本功能,实现窗口移动,拖动改变大小。
支持加载本地图片或网络资源为背景图片。
配合 OcGuiIconRc 默认的 QSS 效果,可以实现较为不错的主窗口。
class OTitleBar(QWidget)
- 自定义标题栏,不可单独使用.
class OWindow(QMainWindow)
- 自定义窗口,内置 自定义标题栏及 qss;
-
实现了自定义标题栏的主窗口,包含以下功能:
- 窗口最大化、最小化、关闭;
- 窗口移动;
- 拖动改变窗口大小;
-
基于 requests.get 实现了从互联网及本地加载背景图片.
Metadata
Release files for easy-pyoc 0.13.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| easy_pyoc-0.13.0.tar.gz | 121.9 kB | Without provenance | Details for easy_pyoc-0.13.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| easy_pyoc-0.13.0-py3-none-any.whl | Python 3 | none | any | Details for easy_pyoc-0.13.0-py3-none-any.whl |
Total release size: 245.9 kB
Release files / easy_pyoc-0.13.0.tar.gz
| Download URL | easy_pyoc-0.13.0.tar.gz |
|---|---|
| Size | 121.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1e58a9f0788780d98e39099e85916d6f7f187a574b92d38b5140ff4f5322cf5b
|
|
BLAKE2b-256 checksum How to use checksums |
bde8ebf91c009872aa28230256439219ae7ff2b6c1d3c4f33878d9d2d7dddf15
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.11
|
Release files / easy_pyoc-0.13.0-py3-none-any.whl
| Download URL | easy_pyoc-0.13.0-py3-none-any.whl |
|---|---|
| Size | 124.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5c00db0e712c5f86daba2e801725a995b7470c287da95878dc2346258eadc53e
|
|
BLAKE2b-256 checksum How to use checksums |
5b27f7ea37186bf5d3ee063874c9482da92d39e837c568f8bf6e30763d43e976
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.11
|
Security for easy-pyoc 0.13.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.