You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Serialise/deserialise flatbuffers blobs from kafka.
4
-
This currently deserialises https://github.com/ess-dmsc/python-streaming-data-types, but I am working to make it agnostic. Python bindings for the respective schema will need to be generated.
3
+
ISIS-specific Kafka tools.
4
+
Deserialises [the ESS flatbuffers blobs](https://github.com/ess-dmsc/python-streaming-data-types) from Kafka.
5
+
6
+
Also allows replaying data in a topic.
5
7
6
8
# Usage
9
+
10
+
To run the latest version, install [uv](https://docs.astral.sh/uv/getting-started/installation/) and use `uvx saluki <args>`.
11
+
12
+
alternatively you can `pip install saluki` and run it from a `venv`.
13
+
7
14
See `saluki --help` for all options.
8
15
9
-
## Listen to a topic for updates
16
+
## `listen` - Listen to a topic for updates
10
17
`saluki listen mybroker:9092/mytopic` - This will listen for updates for `mytopic` on `mybroker`.
11
18
12
-
## Consume from a topic
19
+
### Filter to specific schemas
20
+
21
+
`saluki listen mybroker:9092/mytopic -f f144 -f f142` - This will listen for updates but ignore messages with schema IDs of `f142` or `f144`
22
+
23
+
## `consume`- Consume from a topic
13
24
`saluki consume mybroker:9092/mytopic -p 1 -o 123456 -m 10` - This will print 9 messages before (and inclusively the offset specified) offset `123456` of `mytopic` on `mybroker`, in partition 1.
14
25
15
26
Use the `-g` flag to go the other way, ie. in the above example to consume the 9 messages _after_ offset 123456
16
27
17
-
# Install
18
-
`pip install saluki`
28
+
You can also filter out messages to specific schema(s) with the `-f` flag, like the example above for `listen`.
29
+
30
+
## `sniff` - List all topics and their high, low watermarks and number of messages
`saluki play mybroker:9092/source_topic mybroker:9092/dest_topic -o 123 125` - This will forward messages at offset 123, 124 and 125 in the `source_topic` to the `dest_topic`
57
+
58
+
### Between timestamps
59
+
60
+
`saluki play mybroker:9092/source_topic mybroker:9092/dest_topic -t 1762209990 1762209992` - This will forward messages between the two given timestamps.
0 commit comments