GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Get Started
  • Concepts
  • Quickstart
  • Ecosystem
  • Client Libraries
  • Features
  • Use Cases
  • Welcome
  • Contribution Guide
  • Wiki
  • Issue Tracking
  • Blog
  • Books
  • Case Studies

This view

  • Original page
  • New address

GeezerVison is showing pulsar.apache.org — Set up Python client | Apache Pulsar

To set up Python client library in Pulsar, complete the following steps.

Step 1: Install Python client library​

Use pip to install the latest version:

pip install 'pulsar-client==3.13.0'

You can install optional components alongside the client library:

# avro serialization
pip install 'pulsar-client[avro]==3.13.0'

# functions runtime
pip install 'pulsar-client[functions]==3.13.0'

# all optional components
pip install 'pulsar-client[all]==3.13.0'

Installation via PyPi is available for the following Python versions:

PlatformSupported Python versions
macOS (>= 11.0)3.7, 3.8, 3.9 and 3.10
Linux (including Alpine Linux)3.7, 3.8, 3.9 and 3.10

Step 2: Connect to Pulsar cluster​

To connect to Pulsar using client libraries, you need to specify a Pulsar protocol URL.

You can assign Pulsar protocol URLs to specific clusters and use the pulsar scheme. The following is an example of localhost with the default port 6650:

pulsar://localhost:6650

If you have multiple brokers, separate IP:port by commas:

pulsar://localhost:6550,localhost:6651,localhost:6652

If you use mTLS authentication, add +ssl in the scheme:

pulsar+ssl://pulsar.us-west.example.com:6651
Was this helpful?
✏️ Edit this page💡 Suggest changes🛟 Get support
  • Step 1: Install Python client library
  • Step 2: Connect to Pulsar cluster
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.