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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for q2terminal-0.1.15.tar.gz
Algorithm Hash digest
SHA256 a82eb595ffff8cf6b29732bd4b42f26a86aba37b3d46f75d057d2a1a90bfda0c
MD5 be8606e591dbab27896ad92aeb8eac55
BLAKE2b-256 ca4ea23f9af615e296893479c4cc816aea8c76a0cfd45c654f7b74ce5967cdf4

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for q2terminal-0.1.15-py3-none-any.whl
Algorithm Hash digest
SHA256 8b1a7bcd6a8d2ea5a421226aed1e93462455005efffc08fde6817f34d35e3dc4
MD5 4e148e6a419d486dea868748c0fdcf49
BLAKE2b-256 bf0dfd2d0bf2abc9c4d039188f87ad931e70db5b69df32f612128a56ba5840c8

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