{"categories":[{"label":"Artificial Intelligence","url":"https://skillfed.io/packages/category/scientific-engineering-artificial-intelligence/9"}],"enrichment":{"capability":"Provides the protocol layer for Clarifai's Python runners to communicate with the Clarifai API, including request cancellation support and optional auto-annotation features.","skillfed_tags":["grpc-protocol","request-cancellation","clarifai-ecosystem"],"use_cases":["Building custom Clarifai models that need to handle request cancellation when calling external inference servers","Integrating with Clarifai runners to enable graceful abort of long-running inference tasks","Tracking request IDs for debugging and monitoring model execution within the Clarifai platform","Implementing idempotent cleanup logic when requests are cancelled or connections are lost","Coordinating cancellation between Clarifai and downstream inference services like sglang or similar"],"what_it_does":"clarifai-protocol is the internal communication protocol layer for Clarifai's Python runner infrastructure. It handles serialization and deserialization of requests and responses between runner models and the Clarifai API, built on gRPC foundations. The package also provides request lifecycle management, including the ability to track and cancel in-flight requests when users abort operations.\n\nThe protocol supports request ID tracking and abort callbacks, allowing custom models to register handlers that fire when requests are cancelled or connections drop. This is particularly useful when models call external inference servers\u2014they can pass the request ID to those servers and abort them cleanly when the user cancels. The package is designed to be thread-safe and runs abort callbacks in background threads to avoid blocking the main protocol flow.","worth_installing":"Yes, if you are building models for the Clarifai platform or using clarifai SDK. The package is actively maintained, carries no known vulnerabilities, and uses a permissive Apache 2.0 license. Install friction is moderate due to compiled wheels, but platform coverage is broad. If you are not building Clarifai runners, this is likely a transitive dependency and not a direct choice."},"id":"clarifai-protocol","links":{"html":"https://skillfed.io/packages/clarifai-protocol","md":"https://skillfed.io/packages/clarifai-protocol.md","pypi":"https://pypi.org/project/clarifai-protocol/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-05-05","license_spdx":null,"license_treatment":"permissive","name":"clarifai-protocol","python_support":"supports_current","summary":"Clarifai Python Runner Protocol"},"popularity":{"monthly_downloads":135647,"position":11425,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.0.62"}
