{"id":16700052,"url":"https://github.com/clok/sig","last_synced_at":"2025-03-23T14:31:44.250Z","repository":{"id":37021751,"uuid":"452124535","full_name":"clok/sig","owner":"clok","description":"Statistics in Go - CLI tool for quick statistical analysis of data streams","archived":false,"fork":false,"pushed_at":"2025-03-13T14:36:03.000Z","size":59,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-13T15:33:37.253Z","etag":null,"topics":["cli","go","golang","simple-statistics","statistics","stats"],"latest_commit_sha":null,"homepage":"https://clok.sh/sig/","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/clok.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-26T03:12:01.000Z","updated_at":"2024-01-10T14:22:43.000Z","dependencies_parsed_at":"2022-08-18T19:30:48.699Z","dependency_job_id":"4cbb205a-8fde-43ad-8182-64e1f41cda33","html_url":"https://github.com/clok/sig","commit_stats":{"total_commits":41,"total_committers":3,"mean_commits":"13.666666666666666","dds":"0.46341463414634143","last_synced_commit":"599a1c80c6c015849f5f57c9d14b48749694854d"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clok%2Fsig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clok%2Fsig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clok%2Fsig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clok%2Fsig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clok","download_url":"https://codeload.github.com/clok/sig/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245115999,"owners_count":20563264,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","go","golang","simple-statistics","statistics","stats"],"created_at":"2024-10-12T18:09:10.984Z","updated_at":"2025-03-23T14:31:43.828Z","avatar_url":"https://github.com/clok.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sig\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-brightgreen.svg)](https://github.com/clok/sig/blob/master/LICENSE)\n[![Go Report Card](https://goreportcard.com/badge/clok/sig)](https://goreportcard.com/report/clok/sig)\n[![Coverage Status](https://coveralls.io/repos/github/clok/sig/badge.svg)](https://coveralls.io/github/clok/sig)\n[![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go\u0026logoColor=white)](https://pkg.go.dev/github.com/clok/sig?tab=overview)\n\nStatistics in Go - CLI tool for quick statistical analysis of data streams\n\n\u003e Please see [the docs for details on the commands.](./docs/sig.md)\n\n```text\n$ sig --help\nNAME:\n   sig - Statistics in Go - CLI tool for quick statistical analysis of data streams\n\nUSAGE:\n   sig [global options] command [command options] [arguments...]\n\nAUTHOR:\n   Derek Smith \u003cderek@clokwork.net\u003e\n\nCOMMANDS:\n   simple      simple statistics - one time batch process\n   stream      stream process\n   version, v  Print version info\n   help, h     Shows a list of commands or help for one command\n\nGLOBAL OPTIONS:\n   --help, -h     show help (default: false)\n   --version, -v  print the version (default: false)\n\nCOPYRIGHT:\n   (c) 2022 Derek Smith\n```\n\n- [Documentation](./docs/sig.md)\n- [Use Cases](#use-cases)\n    - [Simple](#simple)\n    - [Stream](#stream)\n- [Installation](#installation)\n    - [Homebrew](#homebrewhttpsbrewsh-for-macos-users)\n    - [curl binary](#curl-binary)\n    - [docker](#dockerhttpswwwdockercom)\n- [Development](#development)\n- [Versioning](#versioning)\n- [Authors](#authors)\n- [License](#license)\n\n## Use Cases\n\n### Simple\n\n```text\n$ cat tmp/random.log | sig simple \nN       Min     Max     Mean    Mode    Median  Sum     Std Dev Variance        p50     p75     p90     p95     p99     Q1      Q2      Q3      Outliers        Mild    Extreme\n17021   0       255     127.84  70      127     2.176007e+06    74.0224 5479.3108       127     192     231     243     253     64      127     192     0       0       0\n```\n\n```text\n$ sig simple -t -p 'tmp/*.log'\nN       17021\nMin     0\nMax     255\nMean    127.84\nMode    70\nMedian  127\nSum     2.176007e+06\nStd Dev 74.0224\nVariance        5479.3108\np50     127\np75     192\np90     231\np95     243\np99     253\nQ1      64\nQ2      127\nQ3      192\nOutliers        0\nMild    0\nExtreme 0\n```\n\n### Stream\n\n```text\n$ cat tmp/random.log | sig stream\nN\t5000000\nMin\t1258\nMax\t2084\nMean\t2.28595\nMode\t239\nMedian\t224.55\nSum\t1.139274e+07\nStd Dev\t4.717073\nVariance\t22.24969850\np50\t2245\np75\t2245.5\np90\t4445\np95\t5145\np99\t117.55\nQ1\t107.5\nQ2\t224.55\nQ3\t224.55\nOutliers\t538195\nMild\t341450\nExtreme\t196745\n\n[22] next refresh at N modulo 1,000,000 == 0\n\n... THEN ...\n\nN\t11388121\nMin\t1\nMax\t2084\nMean\t1.56\nMode\t1\nMedian\t1\nSum\t1.7780861e+07\nStd Dev\t3.1893\nVariance\t10.1714\np50\t1\np75\t2\np90\t2\np95\t3\np99\t7\nQ1\t1\nQ2\t1\nQ3\t2\nOutliers\t538195\nMild\t341450\nExtreme\t196745\n\nDone. Processed 11,388,121 rows\n```\n\n\u003e More to come ...\n\n## Installation\n\n### [Homebrew](https://brew.sh) (for macOS users)\n\n```\nbrew tap clok/sig\nbrew install sig\n```\n\n### curl binary\n\n```\n$ curl https://i.jpillora.com/clok/sig! | bash\n```\n\n### [docker](https://www.docker.com/)\n\nThe compiled docker images are maintained\non [GitHub Container Registry (ghcr.io)](https://github.com/orgs/clok/packages/container/package/sig). We maintain the\nfollowing tags:\n\n- `edge`: Image that is build from the current `HEAD` of the main line branch.\n- `latest`: Image that is built from the [latest released version](https://github.com/clok/sig/releases)\n- `x.y.z` (versions): Images that are build from the tagged versions within Github.\n\n```bash\ndocker pull ghcr.io/clok/sig\ndocker run -v \"$PWD\":/workdir ghcr.io/clok/sig --version\n```\n\n### man page\n\nTo install `man` page:\n\n```\n$ sig install-manpage\n```\n\n## Development\n\n1. Fork the [clok/sig](https://github.com/clok/sig) repo\n1. Use `go \u003e= 1.17`\n1. Branch \u0026 Code\n1. Run linters :broom: `golangci-lint run`\n    - The project uses [golangci-lint](https://golangci-lint.run/usage/install/#local-installation)\n1. Commit with a Conventional Commit\n1. Open a PR\n\n## Versioning\n\nWe employ [git-chglog](https://github.com/git-chglog/git-chglog) to manage the [CHANGELOG.md](CHANGELOG.md). For the\nversions available, see the [tags on this repository](https://github.com/clok/sig/tags).\n\n## Authors\n\n* **Derek Smith** - [@clok](https://github.com/clok)\n\nSee also the list of [contributors](https://github.com/clok/sig/contributors) who participated in this project.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclok%2Fsig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclok%2Fsig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclok%2Fsig/lists"}