screwhashcounter


Namescrewhashcounter JSON
Version 0.10 PyPI version JSON
download
home_pagehttps://github.com/hansalemaos/screwhashcounter
Summaryprovides a convenient and efficient way to count the occurrences of items (hashable and unhashable)
upload_time2023-07-02 22:45:38
maintainer
docs_urlNone
authorJohannes Fischer
requires_python
licenseMIT
keywords counter hash collections
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# provides a convenient and efficient way to count the occurrences of items (hashable and unhashable)

## pip install screwhashcounter

#### Tested against Windows 10 / Python 3.10 / Anaconda 

	
```python

Count the occurrences of items in a list, tuple and return a list of tuples with the item and its count.

Args:
	arg (list|tuple): The list|tuple containing items to be counted.

Returns:
	list[tuple]: A list of tuples where each tuple contains an item and its count.

Example:
	from screwhashcounter import countitems
	counted_items = countitems(
		["mississippi", [1, 2], [1, 2], {34, 4, 3}, {1: 2}, {1: 2}, None, 3]
	)
	print(counted_items)
	# Output: [('mississippi', 1), ([1, 2], 2), ({34, 3, 4}, 1), ({1: 2}, 2), (None, 1), (3, 1)]
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hansalemaos/screwhashcounter",
    "name": "screwhashcounter",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "Counter,hash,collections",
    "author": "Johannes Fischer",
    "author_email": "aulasparticularesdealemaosp@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/85/4e/ef82543c6d2681f1697f8f4c4af3b04f2d19a023902ab371fd515b84085f/screwhashcounter-0.10.tar.gz",
    "platform": null,
    "description": "\r\n# provides a convenient and efficient way to count the occurrences of items (hashable and unhashable)\r\n\r\n## pip install screwhashcounter\r\n\r\n#### Tested against Windows 10 / Python 3.10 / Anaconda \r\n\r\n\t\r\n```python\r\n\r\nCount the occurrences of items in a list, tuple and return a list of tuples with the item and its count.\r\n\r\nArgs:\r\n\targ (list|tuple): The list|tuple containing items to be counted.\r\n\r\nReturns:\r\n\tlist[tuple]: A list of tuples where each tuple contains an item and its count.\r\n\r\nExample:\r\n\tfrom screwhashcounter import countitems\r\n\tcounted_items = countitems(\r\n\t\t[\"mississippi\", [1, 2], [1, 2], {34, 4, 3}, {1: 2}, {1: 2}, None, 3]\r\n\t)\r\n\tprint(counted_items)\r\n\t# Output: [('mississippi', 1), ([1, 2], 2), ({34, 3, 4}, 1), ({1: 2}, 2), (None, 1), (3, 1)]\r\n```\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "provides a convenient and efficient way to count the occurrences of items (hashable and unhashable)",
    "version": "0.10",
    "project_urls": {
        "Homepage": "https://github.com/hansalemaos/screwhashcounter"
    },
    "split_keywords": [
        "counter",
        "hash",
        "collections"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f76f73400e53dd5b8c23f34d045312c41b221599b5031df913eb96a3e2c65c1e",
                "md5": "9cd142c8794154dede992b7b67f336ae",
                "sha256": "4df679deee8604323777d642c788de207689ce73e023afce7b89decdf463c1bd"
            },
            "downloads": -1,
            "filename": "screwhashcounter-0.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "9cd142c8794154dede992b7b67f336ae",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 4176,
            "upload_time": "2023-07-02T22:45:36",
            "upload_time_iso_8601": "2023-07-02T22:45:36.502560Z",
            "url": "https://files.pythonhosted.org/packages/f7/6f/73400e53dd5b8c23f34d045312c41b221599b5031df913eb96a3e2c65c1e/screwhashcounter-0.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "854eef82543c6d2681f1697f8f4c4af3b04f2d19a023902ab371fd515b84085f",
                "md5": "80b52f7f8ea931901f8c8e7e0da0291d",
                "sha256": "334feab6477938c1e2fe6aef0dabfa48159128b4305a93899d607396508c97e1"
            },
            "downloads": -1,
            "filename": "screwhashcounter-0.10.tar.gz",
            "has_sig": false,
            "md5_digest": "80b52f7f8ea931901f8c8e7e0da0291d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3099,
            "upload_time": "2023-07-02T22:45:38",
            "upload_time_iso_8601": "2023-07-02T22:45:38.130430Z",
            "url": "https://files.pythonhosted.org/packages/85/4e/ef82543c6d2681f1697f8f4c4af3b04f2d19a023902ab371fd515b84085f/screwhashcounter-0.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-02 22:45:38",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hansalemaos",
    "github_project": "screwhashcounter",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "screwhashcounter"
}
        
Elapsed time: 0.19855s