Skip to main content

封装一些 Python 组件

Project description

easy_pyoc

自定义 Python 包,封装一些功能

注:带 * 的需要额外安装依赖,并使用完整路径导入

1、socket

  • ServerSocket TCP/UDP/MULTICAST 服务端
  • ClientSocket TCP/UDP/MULTICAST 客户端

2、util

  • DatetimeUtil 日期相关工具
  • *FlaskUtil Flask 相关工具
  • ObjectUtil 对象相关工具
  • PathUtil 路径相关工具
  • StringUtil 字符串相关工具
  • XMLUtil xml 相关工具

3、OcGui

实现自定义标题栏的窗口,包含放大、缩小、关闭的基本功能,实现窗口移动,拖动改变大小。

支持加载本地图片或网络资源为背景图片。

配合 OcGuiIconRc 默认的 QSS 效果,可以实现较为不错的主窗口。

class OTitleBar(QWidget)

  • 自定义标题栏,不可单独使用.

class OWindow(QMainWindow)

  • 自定义窗口,内置 自定义标题栏及 qss;
  1. 实现了自定义标题栏的主窗口,包含以下功能:

    • 窗口最大化、最小化、关闭;
    • 窗口移动;
    • 拖动改变窗口大小;
  2. 基于 requests.get 实现了从互联网及本地加载背景图片.

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

easy_pyoc-0.8.1.tar.gz (103.7 kB view details)

Uploaded Source

Built Distribution

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

easy_pyoc-0.8.1-py3-none-any.whl (114.5 kB view details)

Uploaded Python 3

File details

Details for the file easy_pyoc-0.8.1.tar.gz.

File metadata

  • Download URL: easy_pyoc-0.8.1.tar.gz
  • Upload date:
  • Size: 103.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for easy_pyoc-0.8.1.tar.gz
Algorithm Hash digest
SHA256 d158829c99e506f48715c80e19bb610a252a665bf0bba7b5f7b2d8eb9402ab79
MD5 ac11da7203b06930a4c33d255661e637
BLAKE2b-256 b429efca55dfa73b3d936b8e6d6aa840917c259b50429809b609d000c54ce13a

See more details on using hashes here.

File details

Details for the file easy_pyoc-0.8.1-py3-none-any.whl.

File metadata

  • Download URL: easy_pyoc-0.8.1-py3-none-any.whl
  • Upload date:
  • Size: 114.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.14

File hashes

Hashes for easy_pyoc-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f648dbf9b63456a61722eeec929484e485461b169b4dd94ad04d74cdf4cbb841
MD5 e7e9a37febfd5a3f7a6a89e2280252dd
BLAKE2b-256 83fc15e72435ab0d4df24bff306f4233b3315b955c8f4660258f81c3297e2f8b

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