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

Uploaded Python 3

File details

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

File metadata

  • Download URL: q2terminal-0.1.9.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.9.tar.gz
Algorithm Hash digest
SHA256 208a664bc251c56543dd0bfae14664be929b7f430c416bed2c1c25e964db37fa
MD5 c36e57b6497cd899f96a81ff7ec64d97
BLAKE2b-256 d1ec5e3907ca119d03ba490f2239217a9d8ab900e7555d6f019583e3bff232a9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: q2terminal-0.1.9-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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 24c0a271d059eafe4b26f33ed1b469f40e60198b181e7f4c5b496d37d6200452
MD5 11ebd0132400cbf15c2654c1ff358187
BLAKE2b-256 6c293b31bf566501f1c4a692d91fd4f47bacaca4b5244096e5410292f0a3d6cb

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