Repository Details
Shared by


HelloGitHub Rating
0 ratings
Free•Apache-2.0
Claim
Discuss
Collect
Share
955
Stars
Yes
Chinese
Python
Language
No
Active
10
Contributors
3
Issues
Yes
Organization
3.2.28
Latest
193
Forks
Apache-2.0
License
More
CUP 基础库是百度开源的 Python 语言基础库,致力将 DEV 从涉及底层操作、Util 操作类解放出来,使其更关注构建 service 上层业务逻辑。
目前已涵盖了构建一个服务的各个方面,大家可以从基础库的代码结构、wiki、doc 中进行简单了解。
```
cup
|-- cache.py module 缓存相关模块 ( Memory cache related module )
|-- decorators.py module python 修饰符,比如 @Singleton 单例模式 (Decorators of python)
|-- err.py module 异常 exception 类, Exception classes for CUP
|-- __init__.py module 默认__init__.py, Default __init__.py
|-- log.py module 打印日志类,CUP 的打印日志比较简洁、规范,设置统一、简单(cup logging module)
|-- mail.py module 发送邮件 ( CUP Email module (send emails))
|-- net package 网络相关操作( Network operations, such as net handler parameter tuning )
|-- oper.py module 一些混杂操作(Mixin operations)
|-- platforms.py module 跨平台、平台相关操作函数(Cross-platform operations)
|-- res package 资源获取、实时用量统计等,所有在 /prco 可获得的系统资源、进程、设备等信息 ( Resource usage queries (in /proc)、Prcoess query、etc )
|-- shell package 命令 Shell 操作 pakcage ( Shell Operations、cross-hosts execution )
|-- services package 构建服务支持的类(比如心跳、线程池 based 执行器等等) Heartbeat、Threadpool based executors、file service、etc
|-- thirdp package 第三方依赖纯 Py 模块( Third-party modules:pexpect、httplib2 )
|-- timeplus.py module 时间相关的模块(Time related module)
|-- unittest.py module 单元测试支持模块( Unittest、assert、noseClass )
|-- util package 线程池、可打断线程、语义丰富的配置文件支持( ThreadPool、Interruptable-Thread、Rich configuration、etc )
|-- version.py module 内部版本文件,CUP Version
```
Included in:
Vol.31
Comments
Rating:
No comments yet