管理类unix系统。
unix的Python项目详细描述
本模块旨在管理类unix操作系统。它同时管理本地或 以同样的方式远程主机。命令是否可以交互执行,以及 结果是一个包含三个元素的列表:
- the status of the command (boolean based on return code)
- the standard output (stdout)
- the error output (stderr)
对于在本地主机上执行的命令,使用的模块是subprocess,对于 远程主机,使用的模块是paramiko。
代码在github(http://github.com/fmenabe/python-unix)上可用
发布说明
1.0(2015-07-02)
- Manage localhost (subprocess) and remote hosts (SSH; paramiko) uniformly.
- Use controls for managing some behaviour (decoding outputs, locale, …).
- Implements basic commands for manipulating files and directories (^{tt3}$, ^{tt4}$, ^{tt5}$, …).
- Organize commands in objects accessible via properties:
- path API (^{tt6}$, ^{tt7}$, …)
- remote API for copying file using from one host to another
- users and groups API
- Manage Linux hosts:
- chroot
- autodetecting the distribution
- manage arch, debian, ubuntu, redhat, centos, …
0.1(2015-03-05)
- Initial version.