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

Uploaded Python 3

File details

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

File metadata

  • Download URL: q2terminal-0.1.16.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.16.tar.gz
Algorithm Hash digest
SHA256 0175beec9822a4d45dcdee034b70551799f151ed10e471deed610bec77bc3a98
MD5 5e4770c283629faa4856e0b8ae57a000
BLAKE2b-256 433fc01e83d1a4a6ad4e9097e30063cf99d7a62cd5da0d413de43ff5a986e272

See more details on using hashes here.

File details

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

File metadata

  • Download URL: q2terminal-0.1.16-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.16-py3-none-any.whl
Algorithm Hash digest
SHA256 90413cc0a149431ffe56a99de613ef6b21a179d04c4b78268ff02c0026289e8c
MD5 c02a30143cb74c6b09542b20d494477d
BLAKE2b-256 22408df1e161fd34c26fc13e4ad13595ce821b11c2c5c715dbc866b9a66587e0

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