{"id":17140817,"url":"https://github.com/wontonst/py-rollinghash","last_synced_at":"2025-03-24T08:16:27.844Z","repository":{"id":149399702,"uuid":"90923808","full_name":"wontonst/py-rollinghash","owner":"wontonst","description":"packaged python implementation of a rolling hash function","archived":false,"fork":false,"pushed_at":"2017-05-16T16:30:05.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-29T13:28:36.895Z","etag":null,"topics":["hash-functions","hashing","rolling-hash-functions"],"latest_commit_sha":null,"homepage":"","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/wontonst.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-11T01:29:22.000Z","updated_at":"2017-09-13T21:10:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"c45597c2-0108-418c-83f4-978955607e0e","html_url":"https://github.com/wontonst/py-rollinghash","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wontonst%2Fpy-rollinghash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wontonst%2Fpy-rollinghash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wontonst%2Fpy-rollinghash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wontonst%2Fpy-rollinghash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wontonst","download_url":"https://codeload.github.com/wontonst/py-rollinghash/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245232912,"owners_count":20581703,"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":["hash-functions","hashing","rolling-hash-functions"],"created_at":"2024-10-14T20:15:48.480Z","updated_at":"2025-03-24T08:16:27.804Z","avatar_url":"https://github.com/wontonst.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/wontonst/py-rollinghash.svg?branch=master)](https://travis-ci.org/wontonst/py-rollinghash)\n\n# RollingHash #\n\nThis is a python implementation of a rolling hash function. The implementation\nis based off the [wikipedia article](https://en.wikipedia.org/w/index.php?title=Rolling_hash\u0026oldid=751411496#Rabin-Karp_rolling_hash).\n\n# Installation #\n\nThe easiest way to install is simply ```pip install rollinghash```\n\nAlternatively you can clone this repository and run ```pip install /path/to/rollinghash```\n\n# Usage \u0026 API #\n\nThis package is very simple to use\n\n```\nimport rollinghash\n\na = rollinghash.RollingHash()\n# or alternatively\na = rollinghash.RollingHash('some stuff to hash first')\n\n# to add to the window\n\na.push('some more stuff')  # returns new hash of window\n\n# get current hash\ncurr_hash = a.hash\n\n# pop off first \n\na.pop() # returns new hash of window\n\n# alternatively pop more off\n\na.pop(10)\n```\n\nIf you pop more than there are values, it will pop everything off and return None\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwontonst%2Fpy-rollinghash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwontonst%2Fpy-rollinghash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwontonst%2Fpy-rollinghash/lists"}