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']
Metadata
Release files for qterm 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| qterm-0.0.2.tar.gz | 15.8 kB | Without provenance | Details for qterm-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| qterm-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for qterm-0.0.2-py3-none-any.whl |
Total release size: 32.2 kB
Release files / qterm-0.0.2.tar.gz
| Download URL | qterm-0.0.2.tar.gz |
|---|---|
| Size | 15.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1c4a8369aad3667c07e55e1a5ef6265595dd70f219a91588664bed28a35a1b41
|
|
BLAKE2b-256 checksum How to use checksums |
2eb67c010b910216b173b2206c3cc4fd13fa7d3b8b2f7b3e51602afd2cace65f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / qterm-0.0.2-py3-none-any.whl
| Download URL | qterm-0.0.2-py3-none-any.whl |
|---|---|
| Size | 16.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b51fa964e9de219c86ff7c0c897276ba501f0519c6a10ea60cdc22972b35ac09
|
|
BLAKE2b-256 checksum How to use checksums |
f4c0e50709358f85e07aa12d3f9bcd3c6190e6bc6e0291683968c77041fb049d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for qterm 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.