{"id":15920611,"url":"https://github.com/bmoscon/bit_array","last_synced_at":"2025-06-13T21:06:07.675Z","repository":{"id":57415334,"uuid":"68418716","full_name":"bmoscon/bit_array","owner":"bmoscon","description":"Pure Python Bit Array","archived":false,"fork":false,"pushed_at":"2016-10-03T12:53:25.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-04T12:53:22.178Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bmoscon.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":"2016-09-16T22:31:56.000Z","updated_at":"2019-01-22T08:24:25.000Z","dependencies_parsed_at":"2022-09-12T11:20:33.718Z","dependency_job_id":null,"html_url":"https://github.com/bmoscon/bit_array","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bmoscon/bit_array","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmoscon%2Fbit_array","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmoscon%2Fbit_array/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmoscon%2Fbit_array/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmoscon%2Fbit_array/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bmoscon","download_url":"https://codeload.github.com/bmoscon/bit_array/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bmoscon%2Fbit_array/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259719717,"owners_count":22901239,"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":[],"created_at":"2024-10-06T19:40:49.141Z","updated_at":"2025-06-13T21:06:07.654Z","avatar_url":"https://github.com/bmoscon.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bit Array\n\n[![Travis CI](https://travis-ci.org/bmoscon/bit_array.svg?branch=master)](https://travis-ci.org/bmoscon/bit_array)\n[![License](https://img.shields.io/badge/license-XFree86-blue.svg)](LICENSE)\n\n\n\nA simple bit array in pure python. Sample use:\n\n```\nb = BitArray(64)\nb[0] = 1\nb[1] = 0\n```\n\nYou can also initialize with a list:\n\n```\nb = BitArray([0,1,0,1,0,1,0,1])\nprint(b[1])\n\u003e\u003e\u003e 1\n```\n\nYou can also access parts of the array with slice operations:\n\n```\nsliced = b[0:4]\nprint(sliced[1])\n\u003e\u003e 1\nlen(sliced)\n\u003e\u003e\u003e 4\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbmoscon%2Fbit_array","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbmoscon%2Fbit_array","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbmoscon%2Fbit_array/lists"}