Pass a variable as a SpooledTemporaryFile directly to subprocess.
$pip install subprocess-mem-only
from subprocess_mem_only import subprocess_with_spooledtempfile
var_as_binary= b'Hi there, how are you?\nYou are my best friend'
resi = subprocess_with_spooledtempfile(
command=["grep", r"\bmy\b"], content=var_as_binary
)
print(resi)
CompletedProcess(args=['grep', '\\bmy\\b'], returncode=0, stdout=b'You are my best friend\n', stderr=b'')
Metadata
Release files for subprocess-mem-only 0.10
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 |
|---|---|---|---|---|
| subprocess_mem_only-0.10.tar.gz | 3.2 kB | Without provenance | Details for subprocess_mem_only-0.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| subprocess_mem_only-0.10-py3-none-any.whl | Python 3 | none | any | Details for subprocess_mem_only-0.10-py3-none-any.whl |
Total release size: 7.8 kB
Release files / subprocess_mem_only-0.10.tar.gz
| Download URL | subprocess_mem_only-0.10.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
14ff43884931c2f35f1bcc275639ab0b2275f5575add42a52e3325ada57afef2
|
|
BLAKE2b-256 checksum How to use checksums |
2b0e826acc546f5950a1d26326c77fba34535b3bc1877b174489b541b8318c20
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / subprocess_mem_only-0.10-py3-none-any.whl
| Download URL | subprocess_mem_only-0.10-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0a60e25e60bf992f6ae5733a30d20984035158ff7a32d3d9551a4409ec0fa81c
|
|
BLAKE2b-256 checksum How to use checksums |
0b487c08bbe3784a3b2ac75a1c039d6f7b240b26cb895301d6d6ddc88048fc5c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Security for subprocess-mem-only 0.10
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.