Skip to main content

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


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)

Uploaded Source

Built Distribution

screens_py-0.5.0.post2-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

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

Hashes for screens_py-0.5.0.post2.tar.gz
Algorithm Hash digest
SHA256 c7f49b89b0ef31903099185243fd65858bb2f1350d448a1eda81825f469bb33c
MD5 19a5888820a9ee214121c8fab6c0c125
BLAKE2b-256 3ff19c60e64a31e7f28d7b37b5114b6b7225b1dd7129781ff2c5b6062a4f00c8

See more details on using hashes here.

File details

Details for the file screens_py-0.5.0.post2-py3-none-any.whl.

File metadata

File hashes

Hashes for screens_py-0.5.0.post2-py3-none-any.whl
Algorithm Hash digest
SHA256 c1842d323b6f485ef6edb8e9a5402d97e477a72bf6991b7e1a2933e88aa443e6
MD5 a67f75e09967d9342fd8f7c80b84dad7
BLAKE2b-256 456e0b7eb7523d39f96a538deed3f20c41aa34e1e0ddf1cd29420b6b1d5f85aa

See more details on using hashes here.

Supported by

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