typed-trie


Nametyped-trie JSON
Version 0.1.0 PyPI version JSON
download
home_pagehttps://github.com/henadzit/typed-trie
SummaryA pure Python implementation of a trie with typing.
upload_time2024-03-07 22:04:10
maintainer
docs_urlNone
authorhenadzit
requires_python>=3.11,<4.0
licenseMIT
keywords trie
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # typed-trie

A pure Python implementation of [trie](https://en.wikipedia.org/wiki/Trie) with typing.

## Usage

```
>>> from typed_trie import Trie
>>>
>>> trie = Trie()
>>> trie["how to cook"] = 1
>>> trie["how to swim"] = 2
>>> trie["who is john doe"] = 3
>>> list(trie.items_by_prefix("how to"))
[('how to cook', 1), ('how to swim', 2)]
>>> del trie["how to cook"]
```

## License

`typed-trie` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/henadzit/typed-trie",
    "name": "typed-trie",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.11,<4.0",
    "maintainer_email": "",
    "keywords": "trie",
    "author": "henadzit",
    "author_email": "henadzi.tsaryk@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/54/f9/02a62c5035f71c391d1c0b9fd149fd9acb74de98f95ea55744a6fd7823bd/typed_trie-0.1.0.tar.gz",
    "platform": null,
    "description": "# typed-trie\n\nA pure Python implementation of [trie](https://en.wikipedia.org/wiki/Trie) with typing.\n\n## Usage\n\n```\n>>> from typed_trie import Trie\n>>>\n>>> trie = Trie()\n>>> trie[\"how to cook\"] = 1\n>>> trie[\"how to swim\"] = 2\n>>> trie[\"who is john doe\"] = 3\n>>> list(trie.items_by_prefix(\"how to\"))\n[('how to cook', 1), ('how to swim', 2)]\n>>> del trie[\"how to cook\"]\n```\n\n## License\n\n`typed-trie` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A pure Python implementation of a trie with typing.",
    "version": "0.1.0",
    "project_urls": {
        "Homepage": "https://github.com/henadzit/typed-trie",
        "Repository": "https://github.com/henadzit/typed-trie"
    },
    "split_keywords": [
        "trie"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3c1528795dec19951f49eb5c21a76099849b5022e2013d75f8cac1216e0e449f",
                "md5": "aa81beb4cf772777a4903f031b173f7d",
                "sha256": "3de47090e880539b5e0afa25e3cbb7606e001023d79b4ea017d4c82f9f7e600c"
            },
            "downloads": -1,
            "filename": "typed_trie-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "aa81beb4cf772777a4903f031b173f7d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11,<4.0",
            "size": 3200,
            "upload_time": "2024-03-07T22:04:08",
            "upload_time_iso_8601": "2024-03-07T22:04:08.330873Z",
            "url": "https://files.pythonhosted.org/packages/3c/15/28795dec19951f49eb5c21a76099849b5022e2013d75f8cac1216e0e449f/typed_trie-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "54f902a62c5035f71c391d1c0b9fd149fd9acb74de98f95ea55744a6fd7823bd",
                "md5": "5b96e96e0ceb4aedcb84d81866ed2d30",
                "sha256": "0495c6517a84487ebab5ce0ebb20b2b3d8b9b610a4d1e2361be08457a30ec46b"
            },
            "downloads": -1,
            "filename": "typed_trie-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "5b96e96e0ceb4aedcb84d81866ed2d30",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11,<4.0",
            "size": 2649,
            "upload_time": "2024-03-07T22:04:10",
            "upload_time_iso_8601": "2024-03-07T22:04:10.167464Z",
            "url": "https://files.pythonhosted.org/packages/54/f9/02a62c5035f71c391d1c0b9fd149fd9acb74de98f95ea55744a6fd7823bd/typed_trie-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-07 22:04:10",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "henadzit",
    "github_project": "typed-trie",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "typed-trie"
}
        
Elapsed time: 0.19660s