{"id":16508517,"url":"https://github.com/osteele/bootle","last_synced_at":"2025-10-28T03:31:29.588Z","repository":{"id":50203944,"uuid":"142034804","full_name":"osteele/bootle","owner":"osteele","description":"“Should array indices start at 0 or 1? My compromise of 0.5 was rejected without, I thought, proper consideration.” — Stan Kelly-Bootle","archived":false,"fork":false,"pushed_at":"2022-09-04T16:00:04.000Z","size":15,"stargazers_count":8,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-06T17:13:46.678Z","etag":null,"topics":["humor","python","python-package"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/osteele.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-07-23T15:38:18.000Z","updated_at":"2023-08-29T08:28:02.000Z","dependencies_parsed_at":"2022-09-05T15:30:51.760Z","dependency_job_id":null,"html_url":"https://github.com/osteele/bootle","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/osteele%2Fbootle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osteele%2Fbootle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osteele%2Fbootle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osteele%2Fbootle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/osteele","download_url":"https://codeload.github.com/osteele/bootle/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238590593,"owners_count":19497350,"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":["humor","python","python-package"],"created_at":"2024-10-11T15:45:59.069Z","updated_at":"2025-10-28T03:31:29.584Z","avatar_url":"https://github.com/osteele.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bootle: Half-Index Lists for Python\n\n“Should array indices start at 0 or 1? My compromise of 0.5 was rejected\nwithout, I thought, proper consideration.” — Stan Kelly-Bootle\n\n## Installation\n\n```bash\npip3 install bootle\n```\n\n## Usage\n\n```python\nfrom bootle import List\n\nxs = List([1, 2, 3])\nassert xs[0.5] == 1\nassert xs[:1.5] == [1]\nxs[1.5] == 2\nassert xs.index(2) == 1.5\n```\n\n## References\n\n* [\"Why numbering should start at zero\"](https://www.cs.utexas.edu/users/EWD/transcriptions/EWD08xx/EWD831.html), Edsger W. Dijkstra, 1982\n* [Why Numbering Should Start At Zero](http://wiki.c2.com/?WhyNumberingShouldStartAtZero), WikiWikiWeb\n* [Why Numbering Should Start At One](http://wiki.c2.com/?WhyNumberingShouldStartAtOne),  WikiWikiWeb\n* [Zero-based numbering](https://en.wikipedia.org/wiki/Zero-based_numbering), Wikipedia\n\n## License\n\n[WTFPL](http://www.wtfpl.net)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosteele%2Fbootle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fosteele%2Fbootle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosteele%2Fbootle/lists"}