question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using external libraries with mitmdump

See original GitHub issue
Steps to reproduce the problem:
  1. Develop a need to use an external package in your mitmdump script, e.g BeautifulSoup.
  2. Realize it’s not documented. 😛
Any other comments? What have you tried so far?

The only reference I was able to find online to this issue was on Discourse. Although the solution presented there did end up helping me solve the issue - the fact that this is not documented anywhere (as far as I could tell) in the official docs is not great.

I would be happy to submit a PR in the Scripts part of the docs, but I don’t think the solution I ended up using is very good - I just ran /path/to/mitmproxy/libexec/bin/pip3 install <libname>.

System information

Using version 2.0.1 on OSX, installed via homebrew.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:22 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
rikonorcommented, Apr 21, 2017

At the end of the day - none of this is documented in the docs, which is the biggest problem IMO.

2reactions
Kriechicommented, Apr 14, 2017

I’m not particularly happy with that, especially since this already works by using: $(brew --prefix mitmproxy)/libexec/bin/pip install my-dependency

The main problem is that packages will vanish when upgrading mitmproxy via homebrew-upgrade.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error while using external Python module in mitmproxy project
Mitmproxy and mitmdump functionalities are awesome. But I got some strange error behavior. I want to use some external module in my custom...
Read more >
Developers - Using external libraries with mitmdump - - Bountysource
Steps to reproduce the problem: Develop a need to use an external package in your mitmdump script, e.g BeautifulSoup. Realize it's not documented....
Read more >
mitmproxy docs - Read the Docs
libmproxy is the library that mitmproxy and mitmdump are built on. ... traffic, you should use an external host to run mitmproxy.
Read more >
You can do that using MiTM Proxy as well, as explained here
libmproxy is not recommended for external projects. Instead you should use "inline scripts" (embedding functionality in mitmproxy).
Read more >
Debian -- Details of package mitmproxy in buster
mitmproxy is an SSL-capable man-in-the-middle HTTP proxy. ... scripted changes to HTTP traffic using Python - SSL interception certs generated on the fly ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found