Metadata-Version: 2.1
Name: singer_summarize
Version: 0.0.1a3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Rust
License-File: LICENSE
Summary: Singer target that summarizes a tap's output
Keywords: singer.io,target
Home-Page: https://github.com/edgarrmondragon/singer-rust
Author-email: Edgar Ramirez <edgarrm358@gmail.com>
Maintainer-email: Edgar Ramirez <edgarrm358@gmail.com>
License: MIT
Requires-Python: >=3.7
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: repository, https://github.com/edgarrmondragon/singer-rust

# singer-summarize

A POC Singer target that summarizes a tap's output.

## Build

### Binary

```shell
cargo build -p singer_summarize --release
```

This will create a binary at `target/release/singer-summarize`.

### Python

```shell
mature build --release
```

This will create a Python wheel at `target/wheels/`.

## Usage

Copy the binary to your `PATH`:

```shell
cp target/release/singer-summarize ~/.local/bin
```

Test it with a Singer tap:

```console
$ tap-exchangeratesapi -c config.json | singer-summarize
{
  "streams": {
    "exchange_rate": {
      "schema": 1,
      "record": 100,
      "activate_version": 0,
      "batch": 0
    }
  },
  "state": {
    "count": 1,
    "last_seen": {
        "start_date": "2020-01-01",
    }
  }
}
```

