A fast and reliable distributed task processing library for Python 3

A fast and reliable distributed task processing library for Python 3. Fork of dramatiq.io Installation If you want to use it with RabbitMQ $ pipenv install ‘remoulade[rabbitmq]’ or if you want to use it with Redis $ pipenv install ‘remoulade[redis]’ Quickstart Make sure you’ve got RabbitMQ running, then create a new file calledexample.py: from remoulade.brokers.rabbitmq import RabbitmqBroker import remoulade import requests import sys broker = RabbitmqBroker() remoulade.set_broker(broker) @remoulade.actor def count_words(url): response = requests.get(url) count = len(response.text.split(” “)) print(f”There are {count} […]

Read more

Full-screen console debugger for Python

Its goal is to provide all the niceties of modern GUI-based debuggers in a more lightweight and keyboard-friendly package. PuDB allows you to debug code right where you write and test it–in a terminal. If you’ve worked with the excellent (but nowadays ancient) DOS-based Turbo Pascal or C tools, PuDB’s UI might look familiar. Here’s a screenshot: You may watch a screencast, too. Features Syntax-highlighted source, the stack, breakpoints and variables are all visible at once and continuously updated. This […]

Read more

An improbable web debugger through WebSockets

Description wdb is a full featured web debugger based on a client-server architecture. The wdb server which is responsible of managing debugging instances along with browser connections (through websockets) is based on Tornado. The wdb clients allow step by step debugging, in-program python code execution, code edition (based on CodeMirror) setting breakpoints… Due to this architecture, all of this is fully compatible with multithread and multiprocess programs. wdb works with python 2 (2.6, 2.7), python 3 (3.2, 3.3, 3.4, 3.5) […]

Read more

In-process service that will accept unix domain socket connections and present the stacktraces

Manhole is in-process service that will accept unix domain socket connections and present the stacktraces for all threads and an interactive prompt. It can either work as a python daemon thread waiting for connections at all times or a signal handler (stopping your application and waiting for a connection). Access to the socket is restricted to the application’s effective user id or root. This is just like Twisted’s manhole. It’s simpler (no dependencies), it only runs on Unix domain sockets […]

Read more

Debugger capable of attaching to and injecting code into python processes

DISCLAIMER: This is not an official google project, this is just something I wrote while at Google. What this is Pyringe is a python debugger capable of attaching to running processes, inspecting their state and even of injecting python code into them while they’re running. With pyringe, you can list threads, get tracebacks, inspect locals/globals/builtins of running functions, all without having to prepare your program for it. What this is not A “Google project”. It’s my internship project that got […]

Read more

A Python package providing rich and interactive visualizations

vprof is a Python package providing rich and interactive visualizations for various Python program characteristics such as running time and memory usage. It supports Python 3.4+ and distributed under BSD license. The project is in active development and some of its features might not work as expected. Screenshots Contributing All contributions are highly encouraged! You can add new features, report and fix existing bugs and write docs and tutorials. Feel free to open an issue or send a pull request! […]

Read more

A drop-in replacement for Django’s runserver

About A drop in replacement for Django’s built-in runserver command. Features include: An extendable interface for handling things such as real-time logging. Integration with the werkzeug interactive debugger. Threaded (default) and multi-process development servers. Ability to specify a WSGI application as your target environment. Note django-devserver works on Django 1.3 and newer Installation To install the latest stable version: pip install git+git://github.com/dcramer/django-devserver#egg=django-devserver django-devserver has some optional dependancies, which we highly recommend installing. pip install sqlparse — pretty SQL formatting pip […]

Read more

A toolbar overlay for debugging Flask applications

This is a port of the excellent django-debug-toolbar for Flask applications. Installation Installing is simple with pip: $ pip install flask-debugtoolbar Usage Setting up the debug toolbar is simple: from flask import Flask from flask_debugtoolbar import DebugToolbarExtension app = Flask(__name__) # the toolbar is only enabled in debug mode: app.debug = True # set a ‘SECRET_KEY’ to enable the Flask session cookies app.config[‘SECRET_KEY’] = ” toolbar = DebugToolbarExtension(app) The toolbar will automatically be injected into Jinja templates when debug mode […]

Read more

A pure-Python library for parsing and analyzing ELF files and DWARF debugging information

pyelftools is a pure-Python library for parsing and analyzing ELF files and DWARF debugging information. See the User’s guide for more details. Pre-requisites As a user of pyelftools, one only needs Python to run. It works with Python versions 2.7 and 3.x (x >= 5). For hacking on pyelftools the requirements are a bit more strict, please see the hacking guide. Installing pyelftools can be installed from PyPI (Python package index): > pip install pyelftools Alternatively, you can download the […]

Read more
1 45 46 47 48