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

Uploaded Python 3

File details

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

File metadata

  • Download URL: q2terminal-0.1.12.tar.gz
  • Upload date:
  • Size: 2.2 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.12.tar.gz
Algorithm Hash digest
SHA256 f6ea919a93cd886f664ee613823ac1b83274844362fa57c521db5ab9ff9c3c09
MD5 cb46a52b955221db75e5621afdf3f01d
BLAKE2b-256 dc8f19bf9bd9a671807a1b71f54dd506a35df16e66023f72602299ef50b77b39

See more details on using hashes here.

File details

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

File metadata

  • Download URL: q2terminal-0.1.12-py3-none-any.whl
  • Upload date:
  • Size: 2.5 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.12-py3-none-any.whl
Algorithm Hash digest
SHA256 c2107ac5624bb758e7f08645833f0854321ea8b127f5793eea61613dbfb5b2d4
MD5 f1d33dc73c7a54ad44e49cd7717e862b
BLAKE2b-256 df821f79c5576cca02e358e994a4dc53e0e7b98eccac9ff73bb149066d780bdc

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