Skip to main content

A light-weight library for easy interaction between Python and GNU screen.

Project 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 pyscreen

#Start a new session and give it something to do
session = pyscreen.ScreenSession('myName')
session.send_command('echo hello')

#Kill a screen session with a particular name
session = pyscreen.get_session_with_name('testSession')
session.kill()

#Print all the id of all sessions
for session in pyscreen.get_all_sessions():
    print(session.id)

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

pyscreen-0.3.tar.gz (1.6 kB view details)

Uploaded Source

File details

Details for the file pyscreen-0.3.tar.gz.

File metadata

  • Download URL: pyscreen-0.3.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyscreen-0.3.tar.gz
Algorithm Hash digest
SHA256 96287bd1a9e5a132affd5a027cae7770390b958ab08c102210428f2b30eebd4a
MD5 17bcae0deccfa9d7ea8c8a51724a094c
BLAKE2b-256 7e8cf2a9d84623dfd35c786328ee21edf65ae83c6a2f1dedf8cd7737c9b0f3e0

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