{"id":37173238,"url":"https://github.com/loggdme/kyro","last_synced_at":"2026-01-14T20:14:57.006Z","repository":{"id":291595082,"uuid":"978120755","full_name":"loggdme/kyro","owner":"loggdme","description":"Collection of utilities and examples for creating efficient data pipelines in go with parallel queues and, rate limitiers and much more.","archived":false,"fork":false,"pushed_at":"2025-12-13T21:07:19.000Z","size":264,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-15T01:58:27.109Z","etag":null,"topics":["data","package"],"latest_commit_sha":null,"homepage":"","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/loggdme.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-05T13:57:40.000Z","updated_at":"2025-12-13T21:07:22.000Z","dependencies_parsed_at":"2025-05-05T15:29:21.336Z","dependency_job_id":"b8bd9367-63c2-4d91-ae59-4234a6a4a562","html_url":"https://github.com/loggdme/kyro","commit_stats":null,"previous_names":["loggdme/kyro"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/loggdme/kyro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loggdme%2Fkyro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loggdme%2Fkyro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loggdme%2Fkyro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loggdme%2Fkyro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loggdme","download_url":"https://codeload.github.com/loggdme/kyro/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loggdme%2Fkyro/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28434422,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["data","package"],"created_at":"2026-01-14T20:14:56.561Z","updated_at":"2026-01-14T20:14:56.994Z","avatar_url":"https://github.com/loggdme.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 Kyro\n\nWelcome to the **Kyro** project! This repository contains a collection of utilities and examples for working with pipelines, parallel queues, and rate limiters in Go. It is designed to help you build efficient and scalable data processing workflows.\n\n## 📦 Core Packages\n\nYou can find various examples demonstrating the usage of the core packages in the `examples` directory. Each example is self-contained and can be run independently.\n\n### 1. **Pipeline** (`pkg/pipeline`)\n\nThe `pipeline` package provides utilities for creating and executing sequential and parallel workflows.\n\n```go\nresult, err := pipeline.Execute(\n    pipeline.InSequence(\n        generateItems,\n        stringLength,\n        pipeline.InParallel(double, triple),\n        add,\n    ),\n)\n```\n\n### 2. **Parallel Queue** (`pkg/pqueue`)\n\nThe `pqueue` package enables parallel processing of items with configurable workers, progress notifications, and error handling.\n\n```go\nlimiter := kyro.NewRateLimiter(40, 40)\nerroredItems, err := pqueue.NewParallelQueue[int](40).\n    Enqueue(\u0026ids).\n    WithProgressNotifier(100, func(curr int, duration time.Duration, itemsPerSecond float64) {\n        log.Printf(\"Processed %d items in %s (%.2f items/sec)\", curr, duration, itemsPerSecond)\n    }).\n    OnProcessQueue(func(item int) error {\n        limiter.Wait()\n        \n        if item%420 == 0 {\n            return fmt.Errorf(\"simulated error for item %d\", item)\n        }\n        \n        return nil\n    }).\n    Done()\n```\n\n## 📄 License\n\nThis project is licensed under the MIT License. See the `LICENSE` file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floggdme%2Fkyro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floggdme%2Fkyro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floggdme%2Fkyro/lists"}