{"categories":[{"label":"Build Tools","url":"https://skillfed.io/packages/category/software-development-build-tools"}],"enrichment":{"capability":"Blockbuster detects and prevents blocking calls within an asyncio event loop by wrapping common blocking functions and raising BlockingError when they are called from async contexts.","skillfed_tags":["asyncio","testing","performance-debugging"],"use_cases":["Integrate into pytest test suites to automatically catch blocking calls in async code during test execution.","Verify that refactored legacy code no longer makes blocking calls when converted to async.","Identify third-party library calls that inadvertently block the event loop during development.","Validate that async APIs do not call blocking functions like time.sleep or file I/O operations.","Catch blocking socket or database operations in async networking or data-access layers."],"what_it_does":"Blockbuster is a testing utility that detects blocking calls within an asyncio event loop by wrapping common blocking functions from modules like time, os, socket, io, sqlite3, and threading. When a blocking operation is called from within an async context, it raises a BlockingError to alert developers. This helps identify performance bottlenecks and unpredictable behavior that can occur when blocking operations halt the entire event loop.\n\nThe package works by monkey-patching standard library functions and checking whether they are being invoked from within an asyncio event loop. It can be used manually by instantiating and activating a BlockBuster instance, as a context manager, or integrated into pytest test suites via fixtures. It supports customization through adding custom rules for third-party libraries and allowing blocking calls in specific contexts.","worth_installing":"Yes, if you write asyncio code and want to catch blocking calls during testing. The package is actively maintained, has low install friction, carries no known vulnerabilities, and solves a real problem in async development. The alpha status and single external dependency are minor considerations; the permissive license and broad Python version support make it straightforward to adopt in test suites."},"id":"blockbuster","links":{"html":"https://skillfed.io/packages/blockbuster","md":"https://skillfed.io/packages/blockbuster.md","pypi":"https://pypi.org/project/blockbuster/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-12-05","license_spdx":null,"license_treatment":"permissive","name":"blockbuster","python_support":"supports_current","summary":"Utility to detect blocking calls in the async event loop"},"popularity":{"monthly_downloads":3820467,"position":2489,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.5.26"}
