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.8.tar.gz (2.0 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.8-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for q2terminal-0.1.8.tar.gz
Algorithm Hash digest
SHA256 90f8efbbb1c8df92755215e99c8989b507fc568f5fc6f3f7c87f17ae8c7edd6a
MD5 f5480907b02b4f46e262e6b696e1b70c
BLAKE2b-256 33ef18291a843e3b1add0ca60c5a03a131971edf3b22209f96b3dc79956d7d05

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for q2terminal-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 cf037f2856d613e384dace8bfc6e1c4b2d4fff1dfdbc1303989b4549080b139c
MD5 c9665facbf1e7209e9b939005b73d48b
BLAKE2b-256 38ed9d7c6395243ffd3deedaa08ffcc4bfff6ea8652325f1c153f5b646a56bdd

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