管理类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.

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java我能知道文件的哪个条目正在被修改吗?   多线程Java并发线程   java抓取包含多个页面的多个字母标签的网站   为什么if语句不排除Java中的另一个if语句?   Java可序列化哈希映射到ByteArray以创建blob   JavaEclipseLombokBuilder添加新建议   java将文件路径数组转换为文件数组,并计算每个文件的大小   在Java8流中添加大小数   Bouncy Castle 1.46之前版本的java兼容性问题   无法在AWS设备场上运行安卓 Java Appium测试   java为什么不使用mavenwarplugin将键与“WEBINF/classes/METAINF/MANIFEST.MF”合并?   java如何在引用子类的成员时调用super()   找不到java TestFx无头MonoclePlatformFactory   java AbstractMethodError onClientSessionEvent和“缺少控制媒体的权限”   正则表达式如何使用JAVA在字符串的大写字母前插入空格?   我的Spring安全项目中的java BCrypt(Spring安全)   java在我的网站上查看小程序更新时遇到问题   java如何使用schedule方法