Skip to main content

EventStore CLI tool for reading and following streams

Project description

esdbcat

PyPI version License Python Versions

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"
  }
}

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

Filter events by type:

esdbcat -t UserCreated 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.2.0.tar.gz (17.6 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.2.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for esdbcat-0.2.0.tar.gz
Algorithm Hash digest
SHA256 22cf783e9b5716aa46c395df1328810f22dc78867976e6e6ddb6850ab25132e7
MD5 fa3a18f03f626ac9eaf2ec9f72e38465
BLAKE2b-256 0dd9ec8338d9786c217e260244c4e5ce21bdbc4cfb15037f14396b3bf823b3ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: esdbcat-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e4ab7967ae01aa1f0f9bfccfde645824717d3ff0c05c9c5f75ce6547dad6e6b0
MD5 8381e453dfddab2a2af50041e8915444
BLAKE2b-256 c58c4a03e5cf4de94a85f4e5f95bd9193fd056748675444f608596c9f4216706

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