{"id":13504422,"url":"https://github.com/roma-glushko/migdalor","last_synced_at":"2025-08-02T13:07:50.632Z","repository":{"id":163646844,"uuid":"639102820","full_name":"roma-glushko/migdalor","owner":"roma-glushko","description":"🔆 A Kubernetes native peer discovery and cluster membership management library for your modern Python microservices","archived":false,"fork":false,"pushed_at":"2023-06-05T21:42:40.000Z","size":96,"stargazers_count":2,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-26T20:36:47.817Z","etag":null,"topics":["kubernetes","memebership-management","peer-discovery","python","python-asyncio"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/migdalor/","language":"Python","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/roma-glushko.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}},"created_at":"2023-05-10T19:07:57.000Z","updated_at":"2024-02-12T23:26:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"95eeabae-4abf-4866-9259-1665acbe7a8f","html_url":"https://github.com/roma-glushko/migdalor","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/roma-glushko/migdalor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roma-glushko%2Fmigdalor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roma-glushko%2Fmigdalor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roma-glushko%2Fmigdalor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roma-glushko%2Fmigdalor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roma-glushko","download_url":"https://codeload.github.com/roma-glushko/migdalor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roma-glushko%2Fmigdalor/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268393900,"owners_count":24243315,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["kubernetes","memebership-management","peer-discovery","python","python-asyncio"],"created_at":"2024-08-01T00:00:37.408Z","updated_at":"2025-08-02T13:07:50.587Z","avatar_url":"https://github.com/roma-glushko.png","language":"Python","funding_links":[],"categories":["Components"],"sub_categories":["Vectors"],"readme":"\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://github.com/roma-glushko/migdalor/blob/main/docs/imgs/logo-wide.png?raw=true\" width=\"100%\" alt=\"Migdalor - a Kubernetes native cluster management for modern Python\" /\u003e\n\u003c/p\u003e\n\n# Migdalor\n\nMigdalor is a cluster membership library for modern asyncio Python distributed systems running in Kubernetes.\n\nMigdalor doesn't require a separate broker (e.g. Redis, etcd, Zookeeper, Chubby, etc) to work, but leverage Kubernetes out-of-the-box capabilities\nto solve the peer discovery problem.\n\n## Features\n\n- 🐍 Modern Asyncio Pythonic API\n- 🔦 Brokerless Kubernetes native peer discovery based on headless services\n- 🔭 Hooks into membership change events \n- 🛠️ Ability to manage membership manually\n\n## Installation\n\n```bash\npip install midgalor\n# or\n# poetry add midgalor\n# pdm add midgalor\n```\n\n## Usage\n\n```python\nimport migdalor\n\ncluster = migdalor.Cluster(\n    node_address=(node_address),  # the current node address (e.g. 127.0.0.1:8001)\n    discovery=migdalor.KubernetesServiceDiscovery(service_address=cluster_address), # Kubernetes headless service address (e.g. cluster:8000)\n    ## Callbacks on different events\n    # nodes_added_handlers=[...] \n    # nodes_removed_handlers=[...],\n    ## Membership update rate\n    # update_every_secs=10,\n)\n\nawait cluster.start()\n\n# You can also add or remove nodes manually if you support that in your protocol\nawait cluster.add([(\"127.0.0.1\", 8001)])\n# await cluster.remove([(\"127.0.0.1\", 8001)])\n\nawait cluster.stop()\n```\n\nMidgalor comes with some comprehensive example to help you get started:\n- [The Party Cluster](/examples/party_cluster) - An example of using Migdalor to implement peer discovery in Kubernetes cluster\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froma-glushko%2Fmigdalor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froma-glushko%2Fmigdalor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froma-glushko%2Fmigdalor/lists"}