{"id":20901892,"url":"https://github.com/orktes/influunt","last_synced_at":"2025-05-13T03:30:58.720Z","repository":{"id":62921155,"uuid":"141242305","full_name":"orktes/influunt","owner":"orktes","description":"Dataflow programming for Golang and Python","archived":false,"fork":false,"pushed_at":"2018-08-12T11:59:42.000Z","size":92,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-15T12:10:58.495Z","etag":null,"topics":["dataflow-programming","golang","machine-learning","python"],"latest_commit_sha":null,"homepage":null,"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/orktes.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}},"created_at":"2018-07-17T06:31:47.000Z","updated_at":"2022-11-09T04:55:10.000Z","dependencies_parsed_at":"2022-11-09T06:45:14.584Z","dependency_job_id":null,"html_url":"https://github.com/orktes/influunt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orktes%2Finfluunt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orktes%2Finfluunt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orktes%2Finfluunt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orktes%2Finfluunt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orktes","download_url":"https://codeload.github.com/orktes/influunt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253867413,"owners_count":21976225,"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":["dataflow-programming","golang","machine-learning","python"],"created_at":"2024-11-18T11:37:52.070Z","updated_at":"2025-05-13T03:30:58.322Z","avatar_url":"https://github.com/orktes.png","language":"Go","readme":"WORK IN PROGRESS\n\n[![Build Status](https://travis-ci.org/orktes/influunt.svg?branch=master)](https://travis-ci.org/orktes/influunt)\n\n[![GoDoc](https://godoc.org/github.com/orktes/influunt/go?status.svg)](https://godoc.org/github.com/orktes/influunt/go)\n\n# influunt\nDataflow programming for Golang and Python\n\n## Example (create in Python \u0026 run in Go)\n\nFirst create the graph in python and save it to a file\n\n```python\nimport influunt\n\nwith influunt.Graph() as graph:\n    # input placeholder\n    inputItems = influunt.placeholder()\n\n    # Map items and returns value + 1\n    values = inputItems.map(lambda item, i : item.value + 1)\n\n    # Map items and return names\n    names = inputItems.map(lambda item, i : item.name)\n\n    # Save graph as a model and define inputs and outputs\n    influunt.save_model(\n\t\tgraph, \n\t\t{\"input\": inputItems},\n\t\t{\"values\": values, \"names\": names}, \n\t\t\"example.model\"\n\t)\n```\n\nLoad graph in go and execute\n\n```go\nimport (\n\t\"fmt\"\n\t\"os\"\n\n\t\"github.com/orktes/influunt/go\"\n\t\"github.com/orktes/influunt/go/executor\"\n)\n\nfunc main() {\n\tfile, _ := os.Open(\"example.model\")\n\tmodel, _ := influunt.ReadModel(file)\n\n\texec, _ := executor.NewModelExecutor(model)\n\tresults, _ := exec.Run(map[string]interface{}{\n\t\t\"input\": []map[string]interface{}{\n\t\t\t{\"name\": \"foo\", \"value\": 100},\n\t\t\t{\"name\": \"bar\", \"value\": 200},\n\t\t},\n\t})\n\n\tfmt.Printf(\"%+v\\n\", results[\"names\"])\n\t// [foo bar]\n\n\tfmt.Printf(\"%+v\\n\", results[\"values\"])\n\t// [101 201]\n}\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forktes%2Finfluunt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forktes%2Finfluunt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forktes%2Finfluunt/lists"}