Skip to main content

Monkey patch for subprocess to use 8.3 filenames - Windows only (no dependencies)

Tested against Windows 10 / Python 3.10 / Anaconda

pip install subprocessmonkey

The module automatically converts long paths to their short 8.3 equivalents

import subprocess
from subprocessmonkey import patch_subprocess,subprocconfig
subprocconfig.minlen = None # minimum path length - calculated automatically if None
subprocconfig.convert_to_abs_path = True # \Windows to c:\\Windows
patch_subprocess() # updates subprocess.list2cmdline and subprocess.Popen._execute_child 


# Works like a charm :)

subprocess.Popen(r"ffplay C:\Users\hansc\Videos\sdf dsf sdf .mkv")

subprocess.Popen(r'cat C:\Users\hansc\Downloads\hosts (1)')

subprocess.run('ls C:\\Program Files')

Metadata

Release files for subprocessmonkey 0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for subprocessmonkey 0.10
File Size Uploaded Provenance Actions
subprocessmonkey-0.10.tar.gz 6.5 kB Without provenance Details for subprocessmonkey-0.10.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for subprocessmonkey 0.10
File Interpreter ABI Platform Actions
subprocessmonkey-0.10-py3-none-any.whl Python 3 none any Details for subprocessmonkey-0.10-py3-none-any.whl

Total release size: 13.7 kB

Release files / subprocessmonkey-0.10.tar.gz

Download URL subprocessmonkey-0.10.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7670f4eb641017aebf8e824e3929a2294c5a1a2909d4a6e6f4fdad1359db7328
BLAKE2b-256 checksum
How to use checksums
5130937679d51b9832ae229363163b5fac773d194078651119c1e074d3f48fd1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Release files / subprocessmonkey-0.10-py3-none-any.whl

Download URL subprocessmonkey-0.10-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1c5845ccd2cb930f5ed7183a513037e0cdeac42bb53de5371dd414ae5f5a8a0f
BLAKE2b-256 checksum
How to use checksums
91dcb81ce90ec162500f855d9c7265102f7bfdb56b39c7d53e8b75072d1f51f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.10

Security for subprocessmonkey 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.

Release history Release notifications | RSS feed

This release

0.10 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page