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

Usage

from py_troya_connect import ExtraTerminal

# Try basic operations
# Connect to a session
with ExtraTerminal("1") as terminal:
    # Send a command
    terminal.send_command("your command")
    
    # Read screen content
    screen_content = terminal.read_screen()
    for line in screen_content:
        print(line)
        
    # Wait for specific text
    if terminal.wait_for_text("Expected text", timeout=30):
        print("Text found!")

Features

  • Connect to Extra Terminal sessions
  • Send commands
  • Read screen content
  • Wait for specific text to appear
  • List available sessions

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.0.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.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py_troya_connect-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 f8fc181075b46b98ece74304039efbc6a24f198b8d48992eb9b8f7172f61f6da
MD5 79083d19c5f811e9e2b2f4d4eb68c652
BLAKE2b-256 f00d41ae371e1a0340661609e017019c097d58ecd4001600dd999747cdb3ec57

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py_troya_connect-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 783bdacacbc1ed6ae07f1d070e81890aa48a6799da99dd747ca882cd1514b6df
MD5 dc2aa408244d333f1d1c4cff5fd7ce1d
BLAKE2b-256 81bc514e83031a834850076acc055a3ff45963e5b48da834ea327a61841150be

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