Skip to main content

QTerm is a Python module for spawning child applications and controlling them automatically

Project description

QTerm

QTerm is a Python module for spawning child applications and controlling them automatically.

Install

pip install qterm

Usage

To interract with a child process use QTerm class:

from qterm import QTerm

with QTerm() as term:
    print(term.exec('cd'))

In case command prompt pattern changes use temp_prompt method:

from qterm import QTerm, PYTHON

print(PYTHON)

with QTerm() as term:
    with term.temp_prompt(*PYTHON):
        print(term.exec('1+1'))

# TermArgs(SPAWN_COMMAND='python', PROMPT=re.compile('^>>> '), EXIT_COMMAND='exit()')
# ['2']

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

qterm-0.0.2.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qterm-0.0.2-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file qterm-0.0.2.tar.gz.

File metadata

  • Download URL: qterm-0.0.2.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for qterm-0.0.2.tar.gz
Algorithm Hash digest
SHA256 1c4a8369aad3667c07e55e1a5ef6265595dd70f219a91588664bed28a35a1b41
MD5 8090423ac40d45112e1dc9d1f152e17a
BLAKE2b-256 2eb67c010b910216b173b2206c3cc4fd13fa7d3b8b2f7b3e51602afd2cace65f

See more details on using hashes here.

File details

Details for the file qterm-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: qterm-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 16.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for qterm-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b51fa964e9de219c86ff7c0c897276ba501f0519c6a10ea60cdc22972b35ac09
MD5 c4ee05ba7fd79dcde9280bd04f7b93be
BLAKE2b-256 f4c0e50709358f85e07aa12d3f9bcd3c6190e6bc6e0291683968c77041fb049d

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