or run

tessl search
Log in

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
pypipkg:pypi/azure-servicebus@7.14.x
tile.json

tessl/pypi-azure-servicebus

tessl install tessl/pypi-azure-servicebus@7.14.0

Microsoft Azure Service Bus Client Library for Python providing comprehensive messaging capabilities for enterprise applications.

Agent Success

Agent success rate when using this tile

92%

Improvement

Agent success rate improvement when using this tile compared to baseline

1.01x

Baseline

Agent success rate without this tile

91%

rubric.jsonevals/scenario-2/

{
  "context": "This criteria evaluates how well the engineer uses the azure-servicebus package's batch messaging capabilities to efficiently send messages to Service Bus queues. The focus is on proper usage of ServiceBusClient, ServiceBusSender, ServiceBusMessageBatch, and ServiceBusMessage classes and their methods.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "ServiceBusClient initialization",
      "description": "Creates ServiceBusClient using from_connection_string() method in the __init__ method, storing it as an instance variable for reuse across operations",
      "max_score": 15
    },
    {
      "name": "ServiceBusSender creation",
      "description": "Creates a ServiceBusSender using get_queue_sender() method with the queue_name parameter, properly managing its lifecycle",
      "max_score": 15
    },
    {
      "name": "ServiceBusMessageBatch creation",
      "description": "Creates message batches using sender.create_message_batch() method with max_size_in_bytes parameter in the create_batch method",
      "max_score": 15
    },
    {
      "name": "ServiceBusMessage creation",
      "description": "Creates ServiceBusMessage instances from message body strings to add to batches",
      "max_score": 10
    },
    {
      "name": "Batch add operation",
      "description": "Uses batch.add_message() method to add ServiceBusMessage objects to batches, properly handling the MessageSizeExceededError exception or checking return value to detect when batch is full",
      "max_score": 15
    },
    {
      "name": "Batch send operation",
      "description": "Uses sender.send_messages() method to send the ServiceBusMessageBatch to the queue in the send_batch method",
      "max_score": 10
    },
    {
      "name": "Multi-batch processing",
      "description": "Implements send_messages_in_batches() by creating new batches as needed when messages don't fit, handling overflow by sending current batch and creating a new one",
      "max_score": 15
    },
    {
      "name": "Resource cleanup",
      "description": "Properly closes ServiceBusClient using close() method or context manager (with statement) in the close() method to release resources",
      "max_score": 5
    }
  ]
}