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.1.tar.gz (5.8 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.1-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py_troya_connect-0.1.1.tar.gz
  • Upload date:
  • Size: 5.8 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.1.tar.gz
Algorithm Hash digest
SHA256 78420a47599f0bfb07949a7202945a9a8564736d7b7a7c67a3be7d49762efb36
MD5 f1f00bc5fc5e90547ad4412b2523660c
BLAKE2b-256 351ae1bc84a718e3aae3b9716647de558fccfa81cdd243360d306caf80c87c0b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_troya_connect-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 29d428b5131fbd1f2a77a401fb188df8bb77c08dfd4cd400926ddb99c32063ea
MD5 b76874378c9fa93f6bfce8e9df729bbe
BLAKE2b-256 580bae5e737c878e8cc64fd4dedceb3f169b6985baf965a668f1e81eb1f78974

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