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

Uploaded Python 3

File details

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

File metadata

  • Download URL: q2terminal-0.1.5.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.5.tar.gz
Algorithm Hash digest
SHA256 e4993efa95f01b373d388525e1099bbc5dbb6b440169f15fc011b996bae6a5f6
MD5 f21bb1b92edafd1a13a48f98c37bf58a
BLAKE2b-256 d9631585a8aeca37432c80b0b61ab5e325ca09c45a2bfd55f84b8f1f1f92bef6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: q2terminal-0.1.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1b39d9d73ed62b9ed194a9299a57ae52e4ff05b6e6ab180609712093827ccf7a
MD5 8dac9c22fb924850bcc9716099925ba4
BLAKE2b-256 0008b5ff1bba5a96b6e69ed5d170c163075b24ff23c9ed3bd00db482c93734f2

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