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.13.tar.gz (1.8 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.13-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: q2terminal-0.1.13.tar.gz
  • Upload date:
  • Size: 1.8 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.13.tar.gz
Algorithm Hash digest
SHA256 a3aff9ba2e829151e27addd52a647d2b43b7d6f5e0852436b2c5b94553b09cab
MD5 32aa53adf33392913839fe019c0688a0
BLAKE2b-256 653e5af6eeeba6eb9635552847534744c0988257a1e3645bb221b47455150162

See more details on using hashes here.

File details

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

File metadata

  • Download URL: q2terminal-0.1.13-py3-none-any.whl
  • Upload date:
  • Size: 2.4 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.13-py3-none-any.whl
Algorithm Hash digest
SHA256 d2680b0f671e0be6bf32d717b027172706a9cd26025682d7ae11281b07515a68
MD5 4b0073a9c3bbf4b3be1822b4d57181cb
BLAKE2b-256 cd2e3a8a229c31227fd485b815299bc31dc62bef90704a795863e04f658453a9

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