{"id":17311442,"url":"https://github.com/sumerc/pyctrie","last_synced_at":"2025-09-08T00:37:53.222Z","repository":{"id":66170265,"uuid":"230253407","full_name":"sumerc/pyctrie","owner":"sumerc","description":"Fast, pure C Trie dictionary","archived":false,"fork":false,"pushed_at":"2019-12-26T11:38:26.000Z","size":362,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T01:29:22.432Z","etag":null,"topics":["data-structures","dictionary","prefix","python","spellcheck","suffix","trie"],"latest_commit_sha":null,"homepage":"","language":"C","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/sumerc.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":"2019-12-26T11:35:25.000Z","updated_at":"2023-09-08T18:01:39.000Z","dependencies_parsed_at":"2023-03-16T11:00:31.032Z","dependency_job_id":null,"html_url":"https://github.com/sumerc/pyctrie","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sumerc/pyctrie","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumerc%2Fpyctrie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumerc%2Fpyctrie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumerc%2Fpyctrie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumerc%2Fpyctrie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sumerc","download_url":"https://codeload.github.com/sumerc/pyctrie/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumerc%2Fpyctrie/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274117514,"owners_count":25225103,"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","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["data-structures","dictionary","prefix","python","spellcheck","suffix","trie"],"created_at":"2024-10-15T12:40:37.913Z","updated_at":"2025-09-08T00:37:53.201Z","avatar_url":"https://github.com/sumerc.png","language":"C","readme":"Pyctrie\r\n===================\r\nFast, pure C [Trie](http://en.wikipedia.org/wiki/Trie) dictionary\r\n\r\nFeatures:\r\n===================\r\n  * Very fast. Same performance characteristics with Python's **dict**.\r\n  * Supports fast **suffix**, **prefix**, **correction** (spell) operations.\r\n  * Supports Python 2.6 \u003c= x \u003c= 3.4\r\n\r\nExample:\r\n===================\r\n\r\nIt is just like a dict:\r\n```python\r\nimport triez\r\ntr = triez.Trie()\r\ntr[u\"foo\"] = 1\r\ndel trie[u\"foo\"]\r\n```\r\n\r\nBut with extra features:\r\n```python\r\ntr[u\"foo\"] = 1\r\ntr.corrections(u\"fo\")\r\n{'foo'}\r\ntr[u\"foobar\"] = 1\r\ntr.prefixes(u\"foobar\")\r\n{'foo', 'foobar'}\r\ntr.suffixes(u\"foo\")\r\n{'foo', 'foobar'}\r\n```\r\n\r\nGenerator support:\r\n```python\r\ntr[u\"foo\"] = 1\r\ntr[u\"foobar\"] = 1\r\nfor x in tr.iter_suffixes(u\"foo\"):\r\n    print(x)\r\nfoo\r\nfoobar\r\n```\r\n\r\nLicense\r\n===================\r\n\r\nMIT","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsumerc%2Fpyctrie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsumerc%2Fpyctrie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsumerc%2Fpyctrie/lists"}