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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for q2terminal-0.1.17.tar.gz
Algorithm Hash digest
SHA256 5a5ccb4c0a61357fd05cb6abeb328dbcdf6bbf909421e05502c8380197b6d45a
MD5 c127afee4f87194223ebf9103f62f4b9
BLAKE2b-256 17b70b19687d9ed97eb11185945c6140c55a8109b79101e14ad6ff5c68000a1e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: q2terminal-0.1.17-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.7 Windows/10

File hashes

Hashes for q2terminal-0.1.17-py3-none-any.whl
Algorithm Hash digest
SHA256 d66c3e302af53b071bbc9907d0138a6e14bbea383754415daac460c124449e5c
MD5 e42f9054ea95897b2ed1f98f85de154f
BLAKE2b-256 e26bca270b325913b1051bb94c88b084474f94ca0a6c11a27155d0c53d8ec54b

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