Skip to main content

GitHub Repository

View source code and contribute

Features

  • Compatible with Python 2.6+ and Python 3
  • No external dependencies
  • Supports large messages
  • Configurable retry logic with exponential backoff

Installation

Install the library using setup.py:

Quick Start

Test the client using the built-in demo:

Basic Usage

The bztcp.client.Client class handles the connection and streaming:

Configuration Options

Retry Configuration

Configure retry behavior with exponential backoff:

Advanced Usage

Low-Level Message Handling

For granular control over connection status and individual messages:

Message Status Constants

Key Methods

Error Handling

The library raises BzException for Benzinga-specific errors:

Complete Example

See Also