Skip to main content

EventStore CLI tool for reading and following streams

Project description

esdbcat

A command-line tool for reading EventStore streams, inspired by kafkacat.

AI Code Notice

This repository was near-entirely created by Claude 3.5 Sonnet. Good job Sonnet!

Installation

pip install esdbcat

Usage

Read all events from a stream:

esdbcat my-stream

The output will be JSON lines with event data and metadata (by default):

{
  "data": {
    "message": "Hello World"
  },
  "metadata": {
    "id": "1234-5678-90ab-cdef",
    "type": "TestEvent",
    "stream": "my-stream"
  }
}

Note: Your event data should be wrapped in a "body" field when writing events:

{
  "body": {
    "message": "Hello World"
  }
}

Follow a stream for new events:

esdbcat -f my-stream

Start reading from the end of the stream:

esdbcat -o end -f my-stream

Read only the last event:

esdbcat -o last my-stream

Exit after consuming 10 events:

esdbcat -c 10 my-stream

Read the special $all stream:

esdbcat $all

Quiet mode (suppress informational messages):

esdbcat -q my-stream

Verbose mode for debugging:

esdbcat -v my-stream

Connect to a specific EventStore instance:

esdbcat --host eventstore.example.com:2113 my-stream

Or use a full connection URL:

esdbcat --url "esdb://eventstore.example.com:2113?tls=false" my-stream

Read events without metadata:

esdbcat --no-metadata my-stream

Connect with authentication:

esdbcat --url "esdb://admin:changeit@localhost:2113?tls=false" my-stream

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

esdbcat-0.1.0.tar.gz (69.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

esdbcat-0.1.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file esdbcat-0.1.0.tar.gz.

File metadata

  • Download URL: esdbcat-0.1.0.tar.gz
  • Upload date:
  • Size: 69.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for esdbcat-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2c641a396a544c2521b0f42021eccba8b4fd663b70070c11b5161644e74e4719
MD5 1ce1cf4a78716ca814a57c83b8912e97
BLAKE2b-256 46ae7002f5857f7767ba4cb1e4943f123232d67b66b228df5b4be419c983ce87

See more details on using hashes here.

File details

Details for the file esdbcat-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: esdbcat-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for esdbcat-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 532b55478602b235c751779fb0216ed1cce5e6b9c6dfd851a526070d004466eb
MD5 05f90ef0e6b4d5859d3b313dbad7ca96
BLAKE2b-256 174a26c471cf2a24409b261bc6c507f9fb642c1f396c93478b386c8b9e7479ae

See more details on using hashes here.

Supported by

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