python工具箱库。有用工具和代码片段的集合。
tbx的Python项目详细描述
关于
python工具箱aka tbx是多年来为简化我的代码而创建的各种工具的集合。 作为一个库,它本身没有任何用途,应该被其他项目使用。
说明
库中包含几个不相关的工具集:
tbx.bytes-字节操作
Allows encoding and decoding of various formats.
tbx.code-有用的编码工具
Singleton, method documentation parsing, module lazy-load, serializable object, etc.
tbx.file-文件操作
Recursive file listing, linux based unzip/untar/etc.
tbx.ftp-ftp服务器帮助程序
Server creation helpers, event handlers. Based on awesome pyftpdlib.
tbx.log-日志帮助程序
Helps with logging configuration from settings file.
tbx.network-网络帮助程序
Provides a dummy socket client and a get_local_ip_address function.
tbx.process-多处理帮助程序
Provides a versatile “execute” function, but also a daemonize function, and some more.
tbx.sequential-文件序列检测
Provides useful detection of file sequence.
tbx.service-服务助手
A class allowing to build a small loop-based service in no time.
tbx.settings-设置帮助程序
Allows to easily retrieve and validate settings file.
tbx.snmp-snmp帮助程序
Small helper to send a snmp request throught pysnmp.
模板-模板化帮助程序
Provides useful helpers for Jinja templating system.
tbx.text-文本操作工具
Includes dict to XML/HTML/Text functions. Provides a simple sendmail method and miscellaneous text related methods.
tbx.env_设置-基于环境的设置
Deprecated
用法
只需查看注释中的代码,以便了解其用法。
还没有大医生。这更多的是一个片段和工具的个人集合。
但如果有人感兴趣或要求,我会做一个更好的医生。
兼容性
这些库在linux和osx系统上使用得最多,但是在windows上可能有很多功能可以工作。
这些库与Python2.x和Python3.x兼容。
主要测试2.7和3.4。