Skip to main content

Stub files for confluent-kafka.

Project description

confluent-kafka-stubs

This package only contains type hints for the confluent-kafka python package. It may be useful to add type checking for mypy, or autocompletion in your language server.

This package is not endorsed by Confluent.

Installation

The package can be installed from PyPI, and needs to be installed in a location that tools like mypy can access. In my experience, installing it as a user package works well, at least with neovim and the official mypy package on Arch Linux. You can install it as a user package as follows:

pip install --user confluent-kafka-stubs

Updating

The package can be updated like any other PyPI package.

pip install --user --upgrade confluent-kafka-stubs

Status

This package should be considered a work in progress.

In the cimpl module, I believe all constants have been ported along with the following classes or functions:

  • KafkaError: class
  • KafkaException: class
  • Message: class
  • NewPartitions: class
  • NewTopic: class
  • TopicPartition: class
  • Producer: class
  • Consumer: class
  • libversion(): function
  • version(): function

Yet to be implemented in the cimpl module:

  • _AdminClientImpl?: class

Note: unlisted modules have not yet been processed.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

confluent_kafka_stubs-0.0.3.tar.gz (8.7 kB view hashes)

Uploaded Source

Built Distribution

confluent_kafka_stubs-0.0.3-py3-none-any.whl (9.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page