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.11.tar.gz (2.1 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.11-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: q2terminal-0.1.11.tar.gz
  • Upload date:
  • Size: 2.1 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.11.tar.gz
Algorithm Hash digest
SHA256 70bfbf7180b4ebf891355c637854d129bda3e275c6148802b731aa00fb490bbd
MD5 571b1d297914b4aefc97cfb8606d85b3
BLAKE2b-256 024aef6ea0ef56dbd5d2e47dc93033438bbd4dc067ffb17c7d9996a307d59a14

See more details on using hashes here.

File details

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

File metadata

  • Download URL: q2terminal-0.1.11-py3-none-any.whl
  • Upload date:
  • Size: 2.3 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.11-py3-none-any.whl
Algorithm Hash digest
SHA256 9a0bc42056e81cf521e11d0a004888772647cab9a086ac81ad89ab6445adfb29
MD5 8be04a5a917a053fe700ada5b3d86a8e
BLAKE2b-256 83666b690edd312e8cbf5619010df19369a0a4366e3a411304fdcccc878df9f0

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