{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/7"}],"enrichment":{"capability":"Codefind locates code objects by filename and qualified name, retrieves all functions sharing a code object, and can replace a function's code with another's\u2014enabling runtime code patching.","skillfed_tags":["code-introspection","hot-reload","runtime-patching"],"use_cases":["Hot-reload and live-coding frameworks that need to update function implementations without restarting.","Interactive development environments where you want to patch a function's behavior on the fly.","Debugging tools that need to locate and inspect code objects by their qualified name.","Testing frameworks that need to replace function implementations during test execution.","Closure introspection when you need to find all instances of a closure created by a factory function."],"what_it_does":"Codefind is a low-level introspection and code-patching library that lets you locate Python code objects by their qualified name or filename, find all function instances that share the same code object, and dynamically replace a function's code with another's. It has no runtime dependencies and installs cleanly.\n\nThe package is primarily used as a building block for hot-reload and live-coding tools (notably jurigged). It exposes three main operations: find_code() to retrieve a code object from a module, get_functions() to enumerate all functions referencing a given code object, and conform() to swap one function's code for another's. This enables runtime patching of functions and their closures without reloading modules.","worth_installing":"Yes, if you are building a hot-reload or live-coding tool and accept the maintenance risk. The package is lightweight, has no dependencies, and solves a specific low-level problem well. However, maintenance is dormant, licensing is undeclared, and it is a niche tool\u2014install only if you have a concrete use case and can tolerate lack of active support."},"id":"codefind","links":{"html":"https://skillfed.io/packages/codefind","md":"https://skillfed.io/packages/codefind.md","pypi":"https://pypi.org/project/codefind/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2024-09-08","license_spdx":null,"license_treatment":"unclear","name":"codefind","python_support":"supports_current","summary":"Find code objects and their referents"},"popularity":{"monthly_downloads":571784,"position":5947,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.1.7"}
