{"id":34021064,"url":"https://github.com/hansalemaos/mixbalanced","last_synced_at":"2026-03-11T06:32:20.362Z","repository":{"id":182172213,"uuid":"668063310","full_name":"hansalemaos/mixbalanced","owner":"hansalemaos","description":"Mixes the elements of multiple lists in a balanced manner based on their proportional lengths.","archived":false,"fork":false,"pushed_at":"2023-07-19T00:13:24.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-15T04:46:15.843Z","etag":null,"topics":["bisect","sort"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/mixbalanced/","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/hansalemaos.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}},"created_at":"2023-07-19T00:13:00.000Z","updated_at":"2023-07-19T01:32:01.000Z","dependencies_parsed_at":"2023-07-19T01:50:59.931Z","dependency_job_id":null,"html_url":"https://github.com/hansalemaos/mixbalanced","commit_stats":null,"previous_names":["hansalemaos/mixbalanced"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hansalemaos/mixbalanced","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fmixbalanced","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fmixbalanced/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fmixbalanced/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fmixbalanced/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hansalemaos","download_url":"https://codeload.github.com/hansalemaos/mixbalanced/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fmixbalanced/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30373467,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-11T06:09:32.197Z","status":"ssl_error","status_checked_at":"2026-03-11T06:09:17.086Z","response_time":84,"last_error":"SSL_read: 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":["bisect","sort"],"created_at":"2025-12-13T15:42:01.890Z","updated_at":"2026-03-11T06:32:20.335Z","avatar_url":"https://github.com/hansalemaos.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mixes the elements of multiple lists in a balanced manner based on their proportional lengths.\r\n\r\n## pip install mixbalanced \r\n\r\n#### Tested against Windows 10 / Python 3.10 / Anaconda \r\n\r\n\r\n\r\n```python\r\n\r\n    \r\n\r\n    This function takes multiple lists as input and returns a new list that contains the elements of the input lists.\r\n    The elements are combined in a balanced manner based on their proportional lengths. Longer lists contribute more\r\n    elements to the resulting list.\r\n\r\n    Parameters:\r\n        *args: Variable-length argument list, containing multiple lists/tuples.\r\n\r\n    Returns:\r\n        list: A new list containing the elements from the input lists/tuples mixed in a balanced manner.\r\n\r\n    Example:\r\n        from mixbalanced import mix_balanced\r\n        l1 = [\"Antonio\"] * 10\r\n        l2 = [\"Paulo\"] * 5\r\n        l3 = [\"Anna\"] * 15\r\n        l4 = [\"Maria\"] * 3\r\n        mix = mix_balanced(l1, l2, l3, l4)\r\n        print(mix)\r\n        Output: ['Anna', 'Antonio', 'Anna', 'Antonio', 'Paulo', 'Anna', 'Anna', 'Antonio', 'Anna', 'Maria',\r\n                 'Anna', 'Antonio', 'Paulo', 'Anna', 'Antonio', 'Anna', 'Antonio', 'Paulo', 'Anna', 'Anna',\r\n                 'Maria', 'Antonio', 'Anna', 'Antonio', 'Paulo', 'Anna', 'Anna', 'Antonio', 'Anna', 'Antonio',\r\n                 'Paulo', 'Anna', 'Maria']\r\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhansalemaos%2Fmixbalanced","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhansalemaos%2Fmixbalanced","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhansalemaos%2Fmixbalanced/lists"}