Skip to main content

Author

七魔陌

  • Email: qimomo.17@qq.com
  • 0.1.7 : -使用0.1.3版本: from pythonlinux.pythonlinux import * -本模块是在Python中执行简单Linux命令(实现方法)

主要是作者不会Windows上cmd命令而制作的一个模块 里面有一个su : su qi #登录用户qi 用之前使用命令 pythonlinux-file-path you_path_file 设置su与histort.txt的位置 比如在 /data/data/pythonlinux/里面有su与histort.txt 命令就是: pythonlinux-file-path /data/data/pythonlinux/

import pythonlinux a=linux(linux_file_path='/data/data/pythonlinux/') a.run('pythonlinux-file-path /data/data/pythonlinux/') ''' '''python
import pylinux a=linux() a.run('pylinux-file-path /data/data/pythonlinux/') ''' su文件:(json文件) { "用户名":{"密码":"xxx","路径":["xxx","xxx"]} } 比如: 用户名: qi 密码 : 123 访问路径: /data/data/pythonlinux/和/data/data/py/app/ 就写成 { "qi":{"密码":"123","路径":["/data/data/pythonlinux/","/data/data/py/app/"]} } 没密码: { "qi":{"密码":"0","路径":["/data/data/pythonlinux/","/data/data/py/app/"]} } 程序最高访问权限: { "qi":{"密码":"123","路径":["0"]} } 多个: { "qi":{"密码":"123","路径":["/data/data/pythonlinux/","/data/data/py/app/"]}, "ii":{"密码":"123","路径":["/data/","/data/data/"]} } 使用例子1:模块版本0.1.3 使用例子2:模块版本0.1.3

Release files for qimomo-py-linux 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qimomo-py-linux 0.1.7
File Size Uploaded
qimomo_py_linux-0.1.7.tar.gz 11.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for qimomo-py-linux 0.1.7
File Interpreter ABI Platform
qimomo_py_linux-0.1.7-py3-none-any.whl Python 3 none any Details

Total release size: 21.7 kB

Release files / qimomo_py_linux-0.1.7.tar.gz

Download URL qimomo_py_linux-0.1.7.tar.gz
Size 11.1 kB
Tags Source
SHA-256 checksum
How to use checksums
bd3a24decd4ab17dee8b51b73e87635601d285059d89d6f2428aee48b69ec152
BLAKE2b-256 checksum
How to use checksums
c2c4becb8f797b747b3d5494b83030bf13b85cf4d17e6b4500c70b0036d5fac5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.2

Release files / qimomo_py_linux-0.1.7-py3-none-any.whl

Download URL qimomo_py_linux-0.1.7-py3-none-any.whl
Size 10.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0baf8f10962634443cdcf62561ee2d7c89124f362371411d767faf4bb373779a
BLAKE2b-256 checksum
How to use checksums
155f782b3c5dd5121273219195ecf7f6850fc493dca8aa83f068c74e1a42cf24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.8.2

Release history Release notifications | RSS feed

0.1.9

2 release files

This release

0.1.7 This release

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page