我们组织内使用的常用工具。最初由根特大学的hpc团队创建(http://ugent.be/hpc)。
vsc-base的Python项目详细描述
#vsc基
###生成状态
- Python2.6:[![生成状态](https://jenkins1.ugent.be/job/vsc-base-python26/badge/icon)](https://jenkins1.ugent.be/job/vsc-base-python26/)
- Python2.7:[![生成状态](https://jenkins1.ugent.be/job/vsc-base-python27/badge/icon)](https://jenkins1.ugent.be/job/vsc-base-python27/)
#说明
我们组织内使用的常用工具。 最初由根特大学的hpc团队创建(http://ugent.be/hpc)。
#文件 https://jenkins1.ugent.be/job/vsc-base-python26/Documentation/
#名称空间和工具
##库/实用程序 用作库的python实用程序
- _ fancy logger:默认python记录器的一个扩展,设计为易于使用,并具有两个fancy特性。
- custom specifiers for mpi loggin (the mpirank) with autodetection of mpi
- custom specifier for always showing the calling function’s name
- rotating file handler
- a default formatter.
- logging to an UDP server (logdaemon.py f.ex.)
- easily setting loglevel
- _ daemon.py:由sander marechal(http://www.jejik.com)编写的daemon类,用于将python脚本作为守护进程启动。
- _ missing.py_:python(2.x)api中常用但不可用的小函数和工具。
- ~~\u cache.py:文件缓存,用于存储由键和时间戳标识的pickled数据。~~(移动到[vsc utils](https://github.com/hpcugent/vsc-utils))
- _ general option.py_uu:python的通用选项解析器。它将从配置文件、环境变量和命令行中获取选项(按此顺序),并以与默认python optionparser兼容的方式解析它们。因此,允许非常灵活的方式配置脚本。它还添加了一些其他有用的附加功能。
- _ affinity.py_uu:Linux CPU关联。
- Based on sched.h and bits/sched.h,
- see man pages for sched_getaffinity and sched_setaffinity
- also provides a cpuset class to convert between human readable cpusets and the bit version Linux priority
- Based on sys/resources.h and bits/resources.h see man pages for getpriority and setpriority
- _ asyncprocess.py:允许在windows和posix平台上使用异步子进程的模块
- Based on a [python recipe](http://code.activestate.com/recipes/440554/) by Josiah Carlson
- added STDOUT handle and recv_some
- _ daemon.py_uu:[sander marechal开发的通用守护程序类](http://www.jejik.com/articles/2007/02/a_simple_unix_linux_daemon_in_python/)
- _ date and time.py_uu:一个具有各种便利函数和类的模块,用于处理日期、时间和时区。
- _ nagios.py_uu:这个模块提供了缓存和报告脚本执行结果的功能,这些结果很容易被nagios/icinga解释。
- _ run.py_uuu:python模块执行命令,可以利用异步进程,根据字典回答问题
- supports a whole lot of ways to input, process and output the command. (filehandles, PIPE, pty, stdout, logging…)
- _ mail.py:标准python邮件库的包装器。
- Send a plain text message
- Send an HTML message, with a plain text alternative
##垃圾箱 python脚本的集合,这些示例说明如何使用fancylogger登录到守护进程,但不应直接使用。 -_ logdaemon.py_:在端口上侦听udp数据包并将其记录到文件的守护进程,与fancylogger一起工作。 -_ startogdemon.py_uu:脚本,它将为您启动logdaemon并为fancylogger设置环境变量。
#许可证 vsc base在gnu库通用公共许可证(lgpl)版本2或任何更高版本下可用。
#致谢 VSC基地是在[根特大学](http://www.ugent.be/en)的支持下创建的, [佛兰德超级计算机中心(vsc)](https://vscentrum.be/nl/en), 佛兰德研究基金会 以及[经济、科学和创新部(ewi)](http://www.ewi-vlaanderen.be/en)。