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.6.tar.gz (2.0 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.6-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: q2terminal-0.1.6.tar.gz
  • Upload date:
  • Size: 2.0 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.6.tar.gz
Algorithm Hash digest
SHA256 406a408fc9ce03be973e97d8d087f6f373f4374f31d8756f73e45312f5e97c53
MD5 f8783aeaff71a8e065452a1b5b881844
BLAKE2b-256 78e18b5e7120a61c60f1cce73e69585949270314b68cc0618bf226b706107019

See more details on using hashes here.

File details

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

File metadata

  • Download URL: q2terminal-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 2.2 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 236d8922c12dfe66e03f67d3dbd9e61e8f18c01becbbea6c58a7c279ee08a50f
MD5 cea89173daed56679067a0c4a3e16736
BLAKE2b-256 6e19cb4920b0fd6db4265529d5cee88b844a77a080e01b998ba02d6fe8ae36ab

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