Skip to main content

No project description provided

Project description

Interaction with a terminal session

from q2terminal.q2terminal import Q2Terminal
import sys

t = Q2Terminal()
t.run("programm", echo=True)
assert t.exit_code is False

assert t.run("$q2 = 123") == []
assert t.run("echo $q2") == ["123"]


if "win32" in sys.platform:
    t.run("notepad")
    assert t.exit_code is True

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: q2terminal-0.1.4.tar.gz
  • Upload date:
  • Size: 1.9 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.4.tar.gz
Algorithm Hash digest
SHA256 fe0001fb74ccbeeff1427d9c8bdcc94a6c8f06ab13ce443a0012bf60d5f8a487
MD5 32146ae0f49f4ec3d599daa70a932ac1
BLAKE2b-256 916aef56f05d78a6ee87ca05693d2021116a42a2756a4fac048c237c9bc61f34

See more details on using hashes here.

File details

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

File metadata

  • Download URL: q2terminal-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 2.1 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 84755ace1724a90782d44e28e1ebf6c56d5b608becd0ed3b7f6046da0eec897c
MD5 0924593e20514075ea0a5a3784f47708
BLAKE2b-256 3c87f5f2850799cbc65c1efe6108e1a3c82611b72bed4294f65b6d58cec1e20d

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