django-debug-toolbar: The Debugging Toolkit for Django
django-debug-toolbar is a tool sets to display various debug information about the current request and response in Django. ref: https://github.com/django-debug-toolbar/django-debug-toolbar Install $...
View ArticleTools for Profiling your Python Projects
The first aim of profiling is to test a representative system to identify what's slow, using too much RAM, causing too much disk I/O or network I/O. You should keep in mind that profiling typically...
View ArticleIPython: the Python REPL interpreter
IPython is a neat alternative of Python's builtin REPL (Read–Eval–Print Loop) interpreter, also a kernel of Jupyter. ref: https://ipython.org/ https://jupyter.org/ Useful Commands # cheatsheet...
View ArticleSpark troubleshooting
Apache Spark 2.x Troubleshooting Guide https://www.slideshare.net/jcmia1/a-beginners-guide-on-troubleshooting-spark-applications https://www.slideshare.net/jcmia1/apache-spark-20-tuning-guide Check...
View ArticleRemotely debug a Python app inside a Docker container in Visual Studio Code
Visual Studio Code with Python extension has "Remote Debugging" feature which means you could attach to a real remote host as well as a container on localhost. NOTE: While you trace Python code, the...
View Articlengrok: Share your localhost services with friends
Generate a https://xxx.ngrok.com URL for letting other people access your localhost services. ref: https://github.com/inconshreveable/ngrok https://github.com/localtunnel/localtunnel Install Download...
View Article碼天狗週刊 第 120 期 @vinta - Python, Docker, Kubernetes, Code Review
本文同步發表於 CodeTengu Weekly - Issue 120。 Remotely debug a Python app inside a Docker container in Visual Studio Code 之前因為開發環境都 containerized 了,但是偶爾又想要用一下 Visual Studio Code 的 Python debugger,所以就試了一下...
View ArticleFind circular imports in Python
What is circular imports? http://stackabuse.com/python-circular-imports/ You could use python -vv to inspect import relations. $ python -vv manage.py shell >>> from api.models import...
View ArticlePrint traceback call stack in Python
Extract Traceback From An Exception try: do_shit() except Exception as exc: print('----- start -----') tb = _hx_e.__traceback__ raise RuntimeError().with_traceback(tb) print('----- end -----') reef:...
View Articlemitmproxy: proxy any network traffic through your local machine
mitmproxy is your swiss-army knife for interactive HTTP/HTTPS proxy. In fact, it can be used to intercept, inspect, modify and replay web traffic such as HTTP/1, HTTP/2, WebSockets, or any other...
View Articleipdb: The interactive Python debugger with IPython
ipdb is an interactive Python Debugger with IPython integration, which features tab completion and syntax highlighting, etc. In layman's terms, ipdb is a better pdb. ref: https://github.com/gotcha/ipdb...
View Article
More Pages to Explore .....