Skip to main content

do automate things on Linux

Project description

# auto_everything
Linux system automation

#### Installation
`pip3 install auto_everything`

#### Import
```
from auto_everything.base import Terminal
t = Terminal()
```

#### Run command & get reply
```
reply = t.run_command('uname -a')
print(reply)
```

#### Run program
`t.run_program('firefox')`

#### Run python script
`t.run_py('your_python_file_path')`

#### Run bash script
`t.run_sh('your_.sh_file_path')`

#### Detect if a program or script is running
```
status = t.is_running('terminal')
print(status)
```

#### Web automation
```
from auto_everything.web import Selenium
from time import sleep

my_selenium = Selenium("https://www.google.com")
d = my_selenium.driver

# get input box
xpath = '//*[@id="lst-ib"]'
element = my_selenium.wait_until_exists(xpath)

# text inputing
element.send_keys('\b' * 20, "yingshaoxo")

# click search button
element = my_selenium.wait_until_exists('//*[@id="tsf"]/div[2]/div[3]/center/input[1]')
element.click() # d.execute_script("arguments[0].click();", element)

# exit
sleep(3)
d.quit()
```


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

auto_everything-0.8.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

auto_everything-0.8-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file auto_everything-0.8.tar.gz.

File metadata

  • Download URL: auto_everything-0.8.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for auto_everything-0.8.tar.gz
Algorithm Hash digest
SHA256 90ad0fa68ec678e762bcf3ce73ae4ec39cbf3e7eeda6cfd44717378d79bcc30d
MD5 9a2f4334838bfdb03d30121c1153ea5a
BLAKE2b-256 8b264cab59e22f22b30ce7361eca89f4cda9fe56491482984fb335b7e0a042a1

See more details on using hashes here.

File details

Details for the file auto_everything-0.8-py3-none-any.whl.

File metadata

File hashes

Hashes for auto_everything-0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 d9a3f89c6bacc1e6e96710f94bc46b4d8a1ff1d310ba2274cc22dc112ecb0d3e
MD5 21def301df7f5f9747db2ef651ade341
BLAKE2b-256 e9293ba1c46d85bd005ed461356746bfc117e90aba340b77bcc1d94544c20e82

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page