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

Uploaded Python 3

File details

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

File metadata

  • Download URL: q2terminal-0.1.7.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.7.tar.gz
Algorithm Hash digest
SHA256 e6a79de4ae9bc83925495a9daf94e629f9f1f493b4f33a97b80ae8bea0db0433
MD5 d348ccfff45274d6ea78607982de07fe
BLAKE2b-256 f3357b54bedfe40ac837377eea6ece082ad95d30e9d3939b3fb7455198166e15

See more details on using hashes here.

File details

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

File metadata

  • Download URL: q2terminal-0.1.7-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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 636f6e4d9d315d3f0e4edd5dd3dff42e8eda104dd79bd105e188277c0058aee5
MD5 3bc778130f83c3c69135bc8a3d07a689
BLAKE2b-256 570c80b81f2107acb843f351b3de314ae00a7a80ac2e07f204adf0622e9cf8a9

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