Skip to main content

No project description provided

Project description

Python application

Interaction with a terminal session

from q2terminal.q2terminal import Q2Terminal
import sys

t = Q2Terminal()
t.run("programm", echo=True)
assert t.exit_code != 0

assert t.run("$q2 = 123") == []
assert t.run("echo $q2") == ["123"]


if "win32" in sys.platform:
    t.run("notepad")
    assert t.exit_code == 0

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

q2terminal-0.1.14.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

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

q2terminal-0.1.14-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file q2terminal-0.1.14.tar.gz.

File metadata

  • Download URL: q2terminal-0.1.14.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.0 CPython/3.11.0 Windows/10

File hashes

Hashes for q2terminal-0.1.14.tar.gz
Algorithm Hash digest
SHA256 c0271948f307335f593a1a6fa45b8fdd06f8a4d6de7315bea027a6eb7fc8b553
MD5 b76dc63cf4d0752a6b01e556457503e1
BLAKE2b-256 3adf5018714ac191cbb770a1682a83bc5efdd6e032a487dc6f891c2c289fddaa

See more details on using hashes here.

File details

Details for the file q2terminal-0.1.14-py3-none-any.whl.

File metadata

  • Download URL: q2terminal-0.1.14-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.0 CPython/3.11.0 Windows/10

File hashes

Hashes for q2terminal-0.1.14-py3-none-any.whl
Algorithm Hash digest
SHA256 bde19745cea738d0dd70b757828682ebb66a53d372d28d0377610dca3f39e509
MD5 72163499eeef1a193dfe7bb29a7d1768
BLAKE2b-256 c2932c4d335891b1c5d94bd2825df0778efaf34644365a1f0c121e7b82c39c01

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