Skip to main content

A Python interface for Attachmate Extra Terminal sessions

Project description

py-troya-connect

A Python interface for Attachmate Extra Terminal sessions.

Installation

pip install py-troya-connect

Basic Usage

from py_troya_connect import ExtraTerminal

# Simple screen reading
with ExtraTerminal("1") as terminal:
    screen_content = terminal.read_screen()
    for line in screen_content:
        print(line)

Interactive Session Selection

from py_troya_connect import ExtraTerminal

# Let user select session interactively
session_choice = ExtraTerminal.select_session()

# Connect to selected session
with ExtraTerminal(session_choice) as terminal:
    screen_content = terminal.read_screen()
    for line in screen_content:
        if line.strip():  # Only print non-empty lines
            print(line)

Advanced Usage

from py_troya_connect import ExtraTerminal

with ExtraTerminal("1") as terminal:
    # List available sessions
    sessions = terminal.list_available_sessions()
    print("Available sessions:", sessions)
    
    # Check system status
    status = terminal.check_system_status()
    print("System status:", status)
    
    # Get cursor position
    cursor_pos = terminal.get_cursor_position()
    print("Cursor position:", cursor_pos)

Requirements

  • Windows OS
  • Attachmate Extra! Terminal
  • Python 3.6+
  • pywin32

License

MIT License

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

py_troya_connect-0.1.25.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

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

py_troya_connect-0.1.25-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file py_troya_connect-0.1.25.tar.gz.

File metadata

  • Download URL: py_troya_connect-0.1.25.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.0

File hashes

Hashes for py_troya_connect-0.1.25.tar.gz
Algorithm Hash digest
SHA256 88d95baa0d12691cd64b7bf8fe8b4535a67621868fcac0c238e6c6f3069905bb
MD5 7991252351459d61200e6544102b4434
BLAKE2b-256 df4fcbe36bfd6858975f9038c5de716b8b1517b2442a480caad70a56226e2598

See more details on using hashes here.

File details

Details for the file py_troya_connect-0.1.25-py3-none-any.whl.

File metadata

File hashes

Hashes for py_troya_connect-0.1.25-py3-none-any.whl
Algorithm Hash digest
SHA256 faa6e4e2ece021c2b6f4b381ee0cf29f4cf7cf4573e72fe1e595c380e7174f25
MD5 1c4fd8662323176737dfffafa872620b
BLAKE2b-256 aef0dea16b526618ea6836f6bd7af5bbf016da95df9af47ec02b474ac90e57c6

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