Skip to main content

kafka-collector

collect kafka messages from multiple topics

Installation

pip install kafka_collector

Usage

$ kafka-collector -h
usage: kafka-collector [-h] [-v] [-t TOPICS] [-b BOOTSTRAP_SERVER] [-g GROUP]
                       [-o OUTPUT] [-c CAPTURE_DIR] [-m {cli,service}]
                       [-p PORT]
                       [--log-level {debug,info,warning,error,critical}]
                       [--debug]

collect kafka messages from multiple topics

options:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit
  -t, --topics TOPICS   comma separated list of kafka topics to be listened to
  -b, --bootstrap-server BOOTSTRAP_SERVER
                        kafka bootstrap server (default: localhost:9092)
  -g, --group GROUP     consumer group id (default: random uuid)
  -o, --output OUTPUT   output file path, use '-' for stdout (default: stdout)
  -c, --capture-dir CAPTURE_DIR
                        capture directory for service mode (default:
                        /tmp/kafka-collector)
  -m, --mode {cli,service}
                        run mode: cli or service (default: cli)
  -p, --port PORT       service port for service mode (default: 8080)
  --log-level {debug,info,warning,error,critical}
                        logging level (default: info)
  --debug               enable debug logging (shortcut for --log-level debug)

Environment Variables

  • KAFKA_TOPICS - comma separated list of topics
  • KAFKA_BOOTSTRAP_SERVER - bootstrap server address
  • KAFKA_GROUP - consumer group id
  • COLLECTOR_CAPTURE_DIR - capture directory for service mode
  • COLLECTOR_MODE - run mode (cli or service)
  • COLLECTOR_SERVICE_PORT - service port (must be integer)
  • LOG_LEVEL - logging level

Documentation

  • CLI Mode - Default mode for streaming messages to stdout or file
  • Service Mode - HTTP service mode with REST API for capture management

Deployment Examples

Links

Badges

GitHub GitHub last commit GitHub tag (latest by date) GitHub issues GitHub closed issues GitHub pull requests GitHub closed pull requests GitHub top language GitHub language count GitHub repo size GitHub code size in bytes

Workflow workflow workflow

Release GitHub release (latest by date) GitHub all releases GitHub Release Date

Quality-Qlty Maintainability Code Coverage

Quality-Sonar Code Smells Duplicated Lines (%) Bugs Vulnerabilities Technical Debt Maintainability Rating Security Rating Reliability Rating Quality Gate Status Lines of Code Coverage Sonar Violations (short format) Sonar Violations (short format) Sonar Violations (short format) Sonar Violations (short format) Sonar Violations (short format) Sonar Violations (short format) Sonar Violations (long format)

Wise visitors

Release files for kafka_collector 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kafka_collector 1.0.0
File Size Uploaded
kafka_collector-1.0.0.tar.gz 12.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kafka_collector 1.0.0
File Interpreter ABI Platform
kafka_collector-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 27.7 kB

Release files / kafka_collector-1.0.0.tar.gz

Download URL kafka_collector-1.0.0.tar.gz
Size 12.7 kB
Tags Source
SHA-256 checksum
How to use checksums
08538829d679c8aa7e0d9547e6d2633e3e497f29dbf6dd370afd70057cbf9ce3
BLAKE2b-256 checksum
How to use checksums
48f01517ab0f2639d1dfe106a5969b49c3f06a66bbe6efbd4445ce2767130a63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.3 CPython/3.14.3 Linux/6.17.0-1008-azure

Release files / kafka_collector-1.0.0-py3-none-any.whl

Download URL kafka_collector-1.0.0-py3-none-any.whl
Size 15.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c54d712fbba805000cfb144d5b3092533a4e16ab4fd78584bac604290ebf06bc
BLAKE2b-256 checksum
How to use checksums
0bb55071f980a450c8543a863009fefe47de7991817adccc1012bd8fc6614af4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.3 CPython/3.14.3 Linux/6.17.0-1008-azure

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page