{"id":17285591,"url":"https://github.com/jmaister/bitarray","last_synced_at":"2025-10-24T10:18:04.130Z","repository":{"id":13101629,"uuid":"15783108","full_name":"jmaister/bitarray","owner":"jmaister","description":"Python implementation of a bitarray","archived":false,"fork":false,"pushed_at":"2020-12-06T18:54:00.000Z","size":6,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-31T21:17:35.889Z","etag":null,"topics":["bitarray","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jmaister.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-09T23:41:57.000Z","updated_at":"2020-12-06T18:54:02.000Z","dependencies_parsed_at":"2022-07-21T16:18:47.651Z","dependency_job_id":null,"html_url":"https://github.com/jmaister/bitarray","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/jmaister%2Fbitarray","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmaister%2Fbitarray/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmaister%2Fbitarray/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmaister%2Fbitarray/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmaister","download_url":"https://codeload.github.com/jmaister/bitarray/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245697923,"owners_count":20657971,"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":["bitarray","python"],"created_at":"2024-10-15T09:56:57.120Z","updated_at":"2025-10-24T10:18:04.040Z","avatar_url":"https://github.com/jmaister.png","language":"Python","readme":"bitarray\n========\n\nFull Python implementation of a bitarray.\n\nMemory optimization: It packs 32 or 64 bits on a float. Depending on the platform.\n\nBlog entry with explanation on: [jordiburgos.com/post/2014/python-bitarray-sieve-eratosthenes.html](http://jordiburgos.com/post/2014/python-bitarray-sieve-eratosthenes.html)\n\nUsage:\n\n    MAX = 2^^32\n\n    ba = BitArray(MAX, initialize=1)\n    for n in xrange(2, MAX, 2):\n        ba.reset_bit(n)\n    \n    ba.set_bit(120)\n    \n    if ba.get_bit(120):\n        pass\n\nSample usage on pysieve.py\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmaister%2Fbitarray","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmaister%2Fbitarray","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmaister%2Fbitarray/lists"}