holzschu / a-shell

A terminal for iOS, with multiple windows
BSD 3-Clause "New" or "Revised" License
2.64k stars 116 forks source link

mitmproxy #260

Open metawops opened 3 years ago

metawops commented 3 years ago

It would be awesome if the open source, Python based proxy tool 'mitmproxy' could be run in a-Shell! mitmproxy can (in principle) be installed via pip. It's recommended to be installed via pipx. I was able to install pipx on a-Shell but installing mitmproxy via pipx didn't work. 😞

Any hints/help much appreciated!

holzschu commented 3 years ago

I'll have a look. It won't be simple or immediate: mitmproxy has a C component (the main command, mitmproxy), the Python package is only for the interface. So it will have to be cross-compiled.

mhils commented 3 years ago

Hi @holzschu! @metawops cross-posted this on our Slack, so I thought I'll drop by. mitmproxy itself is completely pure Python, but we do have some dependencies that are not, for example cryptography, Brotli, or zstandard. Brotli and zstandard we can probably make optional, but from experience cryptography is usually by far the hardest to port. Please let me know if we can help out in any way. :)

holzschu commented 3 years ago

Ah! That's good to know, especially since cryptography is already present (version 3.4.7).

gamer191 commented 2 months ago

@metawops how did you get pipx to work? It won’t work at all for me. I suspect I need to set PIPX_HOME but I have no clue how I’d do that

metawops commented 2 months ago

@metawops how did you get pipx to work? It won’t work at all for me. I suspect I need to set PIPX_HOME but I have no clue how I’d do that

Uh, that was over 3 years ago and since then – to be honest – I haven't used a-shell a lot! So, management summary: I don't remember, unfortunately.