{"id":21215,"library":"envoy","title":"Envoy","description":"Envoy is a simple API for running external processes in Python, wrapping subprocess with easy-to-use commands. Current version 0.0.3, released in 2013. The library is effectively abandoned and not recommended for new projects.","status":"deprecated","version":"0.0.3","language":"python","source_language":"en","source_url":"https://github.com/kennethreitz/envoy","tags":["subprocess","shell","process","deprecated"],"install":[{"cmd":"pip install envoy","lang":"bash","label":"Install from PyPI"}],"dependencies":[],"imports":[{"note":"Common mistake: users try to 'from envoy import' submodules, but envoy is a single module.","wrong":"from envoy import ...","symbol":"envoy","correct":"import envoy"}],"quickstart":{"code":"import envoy\nr = envoy.run('echo Hello, World!')\nprint(r.std_out)","lang":"python","description":"Runs a shell command and captures output."},"warnings":[{"fix":"Use subprocess.run with list arguments instead, or sanitize inputs thoroughly.","message":"Envoy uses subprocess shell=True by default, which can be a security risk if command strings include untrusted input.","severity":"gotcha","affected_versions":"all"},{"fix":"Replace envoy.run with subprocess.run(cmd, shell=True, capture_output=True, text=True) for equivalent behavior.","message":"Envoy is no longer maintained; use subprocess.run (Python 3.5+) or the sh library instead.","severity":"deprecated","affected_versions":"all"},{"fix":"Decode explicitly: r.std_out.decode('utf-8') if needed.","message":"envoy.run returns a Response object, but .std_out/.std_err are byte strings in Python 2, not decoded text.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Uninstall the conflicting package and install envoy from PyPI: pip install envoy --upgrade","cause":"Due to a naming conflict with another package or incorrect installation.","error":"AttributeError: module 'envoy' has no attribute 'run'"},{"fix":"Run: pip install envoy","cause":"Envoy must be installed via pip.","error":"ImportError: No module named envoy"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}