{"id":16933105,"url":"https://github.com/bbc2/shuffled","last_synced_at":"2025-08-18T19:34:27.174Z","repository":{"id":10230378,"uuid":"59954817","full_name":"bbc2/shuffled","owner":"bbc2","description":"Python random permutations of large integer ranges","archived":false,"fork":false,"pushed_at":"2025-02-09T12:33:15.000Z","size":156,"stargazers_count":10,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T14:39:04.602Z","etag":null,"topics":["cryptography","iterator","python","randomization"],"latest_commit_sha":null,"homepage":null,"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/bbc2.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}},"created_at":"2016-05-29T17:10:32.000Z","updated_at":"2025-02-09T12:33:18.000Z","dependencies_parsed_at":"2024-02-28T19:25:15.366Z","dependency_job_id":"e412de26-366f-41bd-b480-61da0bb5cea7","html_url":"https://github.com/bbc2/shuffled","commit_stats":{"total_commits":47,"total_committers":2,"mean_commits":23.5,"dds":"0.23404255319148937","last_synced_commit":"8f42becd8abc34bce6b16b52f6961d69d849e57a"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbc2%2Fshuffled","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbc2%2Fshuffled/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbc2%2Fshuffled/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbc2%2Fshuffled/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bbc2","download_url":"https://codeload.github.com/bbc2/shuffled/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248460827,"owners_count":21107552,"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":["cryptography","iterator","python","randomization"],"created_at":"2024-10-13T20:48:36.135Z","updated_at":"2025-04-11T18:41:52.516Z","avatar_url":"https://github.com/bbc2.png","language":"Python","readme":"# Shuffled: Random iterators for large integer ranges\n\nShuffled is a library for iterating randomly and without repetition over integer ranges.\nIt doesn't store all the integers in memory so that you can work with ranges of up to\n2\u003csup\u003e128\u003c/sup\u003e elements, even with your standard RAM available.\n\n```python\n\u003e\u003e\u003e shuffled_range = Shuffled(10)\n\u003e\u003e\u003e list(shuffled_range)\n[4, 1, 2, 9, 8, 5, 3, 0, 6, 7]\n\u003e\u003e\u003e same_shuffled_range = Shuffled(10, seed=shuffled_range.seed)\n\u003e\u003e\u003e list(same_shuffled_range)\n[4, 1, 2, 9, 8, 5, 3, 0, 6, 7]\n```\n\n```python\n\u003e\u003e\u003e network = ipaddress.IPv4Network('10.0.0.0/8')\n\u003e\u003e\u003e shuffled_range = Shuffled(network.num_addresses)\n\u003e\u003e\u003e for index in shuffled_range:\n...     print(network[index])\n...\n10.24.41.126\n10.67.199.15\n10.240.82.199\n10.79.219.74\n10.166.105.25\n10.19.5.91\n[...]\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbc2%2Fshuffled","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbbc2%2Fshuffled","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbc2%2Fshuffled/lists"}