hashall


Namehashall JSON
Version 1.0.2 PyPI version JSON
download
home_pagehttps://pypi.org/project/hashall/
SummarySophisticate Hashed Data Structures
upload_time2024-07-08 04:07:43
maintainerNone
docs_urlNone
authorkhiat Mohammed Abderrezzak
requires_python>=3.6
licenseMIT
keywords hash
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # hashall


[![PyPI version](https://badge.fury.io/py/hashall.svg)](https://badge.fury.io/py/hashall)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)


This library was created to use indexed data structures such as list, tuple, str, bytes, and bytearray with keys like those used in dict (hash table)


## Installation


You can install `hashall` via pip:


```bash
pip install hashall
```


## Usage 


#### hlist 


```python
from hashall import hlist


x = hlist([1, 2, 3, 4, 5, 6])
print(x[3])
print(x[+3])
print(x["3"])
print(x["+3"])
print(x[-3])
print(x["-3"])
print(x["three"])
print(x["+three"])
print(x["-three"])
```


### Output


```bash
4
4
4
4
4
4
4
4
4
```


#### htuple


```python
from hashall import htuple


x = htuple([1, 2, 3, 4, 5, 6])
print(x[3])
print(x[+3])
print(x["3"])
print(x["+3"])
print(x[-3])
print(x["-3"])
print(x["three"])
print(x["+three"])
print(x["-three"])
```


### Output


```bash
4
4
4
4
4
4
4
4
4
```


#### hstr


```python
from hashall import hstr


x = hstr("hashall")
print(x[3])
print(x[+3])
print(x["3"])
print(x["+3"])
print(x[-4])
print(x["-4"])
print(x["three"])
print(x["+three"])
print(x["-four"])
```


### Output


```bash
h
h
h
h
h
h
h
h
h
```


#### hbytes


```python
from hashall import hbytes


x = hbytes(b"hashall")
print(x[3])
print(x[+3])
print(x["3"])
print(x["+3"])
print(x[-4])
print(x["-4"])
print(x["three"])
print(x["+three"])
print(x["-four"])
```


### Output


```bash
104
104
104
104
104
104
104
104
104
```

#### hbytearray


```python
from hashall import hbytearray


x = hbytearray(b"hashall")
print(x[3])
print(x[+3])
print(x["3"])
print(x["+3"])
print(x[-4])
print(x["-4"])
print(x["three"])
print(x["+three"])
print(x["-four"])
```


### Output


```bash
104
104
104
104
104
104
104
104
104
```


### Note


You can use all the methods you've been using with these data structures 


## License


This project is licensed under the MIT LICENSE - see the [LICENSE](https://opensource.org/licenses/MIT) for more details.

            

Raw data

            {
    "_id": null,
    "home_page": "https://pypi.org/project/hashall/",
    "name": "hashall",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": "hash",
    "author": "khiat Mohammed Abderrezzak",
    "author_email": "khiat.dev@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/74/fa/333598de91c0c1ae7cfab0e86ff53789c93caa21ce56dcdd8cf8839d797e/hashall-1.0.2.tar.gz",
    "platform": null,
    "description": "# hashall\n\n\n[![PyPI version](https://badge.fury.io/py/hashall.svg)](https://badge.fury.io/py/hashall)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n\nThis library was created to use indexed data structures such as list, tuple, str, bytes, and bytearray with keys like those used in dict (hash table)\n\n\n## Installation\n\n\nYou can install `hashall` via pip:\n\n\n```bash\npip install hashall\n```\n\n\n## Usage \n\n\n#### hlist \n\n\n```python\nfrom hashall import hlist\n\n\nx = hlist([1, 2, 3, 4, 5, 6])\nprint(x[3])\nprint(x[+3])\nprint(x[\"3\"])\nprint(x[\"+3\"])\nprint(x[-3])\nprint(x[\"-3\"])\nprint(x[\"three\"])\nprint(x[\"+three\"])\nprint(x[\"-three\"])\n```\n\n\n### Output\n\n\n```bash\n4\n4\n4\n4\n4\n4\n4\n4\n4\n```\n\n\n#### htuple\n\n\n```python\nfrom hashall import htuple\n\n\nx = htuple([1, 2, 3, 4, 5, 6])\nprint(x[3])\nprint(x[+3])\nprint(x[\"3\"])\nprint(x[\"+3\"])\nprint(x[-3])\nprint(x[\"-3\"])\nprint(x[\"three\"])\nprint(x[\"+three\"])\nprint(x[\"-three\"])\n```\n\n\n### Output\n\n\n```bash\n4\n4\n4\n4\n4\n4\n4\n4\n4\n```\n\n\n#### hstr\n\n\n```python\nfrom hashall import hstr\n\n\nx = hstr(\"hashall\")\nprint(x[3])\nprint(x[+3])\nprint(x[\"3\"])\nprint(x[\"+3\"])\nprint(x[-4])\nprint(x[\"-4\"])\nprint(x[\"three\"])\nprint(x[\"+three\"])\nprint(x[\"-four\"])\n```\n\n\n### Output\n\n\n```bash\nh\nh\nh\nh\nh\nh\nh\nh\nh\n```\n\n\n#### hbytes\n\n\n```python\nfrom hashall import hbytes\n\n\nx = hbytes(b\"hashall\")\nprint(x[3])\nprint(x[+3])\nprint(x[\"3\"])\nprint(x[\"+3\"])\nprint(x[-4])\nprint(x[\"-4\"])\nprint(x[\"three\"])\nprint(x[\"+three\"])\nprint(x[\"-four\"])\n```\n\n\n### Output\n\n\n```bash\n104\n104\n104\n104\n104\n104\n104\n104\n104\n```\n\n#### hbytearray\n\n\n```python\nfrom hashall import hbytearray\n\n\nx = hbytearray(b\"hashall\")\nprint(x[3])\nprint(x[+3])\nprint(x[\"3\"])\nprint(x[\"+3\"])\nprint(x[-4])\nprint(x[\"-4\"])\nprint(x[\"three\"])\nprint(x[\"+three\"])\nprint(x[\"-four\"])\n```\n\n\n### Output\n\n\n```bash\n104\n104\n104\n104\n104\n104\n104\n104\n104\n```\n\n\n### Note\n\n\nYou can use all the methods you've been using with these data structures \n\n\n## License\n\n\nThis project is licensed under the MIT LICENSE - see the [LICENSE](https://opensource.org/licenses/MIT) for more details.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Sophisticate Hashed Data Structures",
    "version": "1.0.2",
    "project_urls": {
        "Homepage": "https://pypi.org/project/hashall/"
    },
    "split_keywords": [
        "hash"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "966e29d9a8c8630a77c32ebaa7e6763c7852b5c23139018b505ec41f2f8a9e47",
                "md5": "b128cf02fc590b3e7166d6e859fe0956",
                "sha256": "37d5810b71e0058d2739c693e1a6ace5081a8246ee14c2dddc5b92348363ab1a"
            },
            "downloads": -1,
            "filename": "hashall-1.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b128cf02fc590b3e7166d6e859fe0956",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 3268,
            "upload_time": "2024-07-08T04:07:41",
            "upload_time_iso_8601": "2024-07-08T04:07:41.500428Z",
            "url": "https://files.pythonhosted.org/packages/96/6e/29d9a8c8630a77c32ebaa7e6763c7852b5c23139018b505ec41f2f8a9e47/hashall-1.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "74fa333598de91c0c1ae7cfab0e86ff53789c93caa21ce56dcdd8cf8839d797e",
                "md5": "19b039065f5497bd5bfcfed897f86f52",
                "sha256": "2172d8d02ee73b6d58abe070fc8689a13cfbd3d518c477cc210e7d50720b8f78"
            },
            "downloads": -1,
            "filename": "hashall-1.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "19b039065f5497bd5bfcfed897f86f52",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 3150,
            "upload_time": "2024-07-08T04:07:43",
            "upload_time_iso_8601": "2024-07-08T04:07:43.289709Z",
            "url": "https://files.pythonhosted.org/packages/74/fa/333598de91c0c1ae7cfab0e86ff53789c93caa21ce56dcdd8cf8839d797e/hashall-1.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-08 04:07:43",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "hashall"
}
        
Elapsed time: 0.40164s