A light-weight library for easy interaction between Python and GNU screen.
Project description
screen.py
Description
A light-weight library for easy interaction between Python and GNU screen.
This library allows you create, find and kill screen sessions programmatically from Python, as well as send (string) commands to these sessions. You can use this to start other software inside a screen session from a Python script, like this:
import screens
# Start a new session and give it something to do
session = screens.Session('myName')
session.send_command('echo hello')
# Kill a screen session with a particular name
session = screens.get_session_by_name('myName')
session.kill()
# Print all the id of all sessions
for session in screens.get_sessions():
print(session.id)
Installation
pip install --upgrade screens.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
screens_py-0.5.0.post2.tar.gz
(14.7 kB
view details)
Built Distribution
File details
Details for the file screens_py-0.5.0.post2.tar.gz
.
File metadata
- Download URL: screens_py-0.5.0.post2.tar.gz
- Upload date:
- Size: 14.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c7f49b89b0ef31903099185243fd65858bb2f1350d448a1eda81825f469bb33c |
|
MD5 | 19a5888820a9ee214121c8fab6c0c125 |
|
BLAKE2b-256 | 3ff19c60e64a31e7f28d7b37b5114b6b7225b1dd7129781ff2c5b6062a4f00c8 |
File details
Details for the file screens_py-0.5.0.post2-py3-none-any.whl
.
File metadata
- Download URL: screens_py-0.5.0.post2-py3-none-any.whl
- Upload date:
- Size: 15.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1842d323b6f485ef6edb8e9a5402d97e477a72bf6991b7e1a2933e88aa443e6 |
|
MD5 | a67f75e09967d9342fd8f7c80b84dad7 |
|
BLAKE2b-256 | 456e0b7eb7523d39f96a538deed3f20c41aa34e1e0ddf1cd29420b6b1d5f85aa |