heapq-container


Nameheapq-container JSON
Version 0.1 PyPI version JSON
download
home_pageNone
Summarya Container datatype wrapper for the Python standard library heapq module
upload_time2024-06-16 03:39:47
maintainerNone
docs_urlNone
authorlonnen
requires_python>=3.8
licenseApache-2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # heapq-container

[![PyPI](https://img.shields.io/pypi/v/heapq-container.svg)](https://pypi.org/project/heapq-container/)
[![Tests](https://github.com/lonnen/heapq-container/actions/workflows/test.yml/badge.svg)](https://github.com/lonnen/heapq-container/actions/workflows/test.yml)
[![Changelog](https://img.shields.io/github/v/release/lonnen/heapq-container?include_prereleases&label=changelog)](https://github.com/lonnen/heapq-container/releases)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/lonnen/heapq-container/blob/main/LICENSE)

a Container datatype wrapper for the Python standard library heapq module.

## Installation

Install this library using `pip`:
```bash
pip install heapq-container
```
## Usage

```python

from heapqueue import HeapQueue

 def heapsort(iterable):
    h = HeapQueue(iterable)
    return [h.pop() for _ in range(len(h))]

heapsort([1, 3, 5, 7, 9, 2, 4, 6, 8, 0])
# -> [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
```

## Development

To contribute to this library, first checkout the code. Then create a new virtual environment:
```bash
cd heapq-container
python -m venv venv
source venv/bin/activate
```
Now install the dependencies and test dependencies:
```bash
pip install -e '.[test]'
```
To run the tests:
```bash
pytest
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "heapq-container",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": "lonnen",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/14/22/7f7132a59c746e9e6b27148ea4f7f166618bbd71991458a922713eae3b42/heapq_container-0.1.tar.gz",
    "platform": null,
    "description": "# heapq-container\n\n[![PyPI](https://img.shields.io/pypi/v/heapq-container.svg)](https://pypi.org/project/heapq-container/)\n[![Tests](https://github.com/lonnen/heapq-container/actions/workflows/test.yml/badge.svg)](https://github.com/lonnen/heapq-container/actions/workflows/test.yml)\n[![Changelog](https://img.shields.io/github/v/release/lonnen/heapq-container?include_prereleases&label=changelog)](https://github.com/lonnen/heapq-container/releases)\n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/lonnen/heapq-container/blob/main/LICENSE)\n\na Container datatype wrapper for the Python standard library heapq module.\n\n## Installation\n\nInstall this library using `pip`:\n```bash\npip install heapq-container\n```\n## Usage\n\n```python\n\nfrom heapqueue import HeapQueue\n\n def heapsort(iterable):\n    h = HeapQueue(iterable)\n    return [h.pop() for _ in range(len(h))]\n\nheapsort([1, 3, 5, 7, 9, 2, 4, 6, 8, 0])\n# -> [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]\n```\n\n## Development\n\nTo contribute to this library, first checkout the code. Then create a new virtual environment:\n```bash\ncd heapq-container\npython -m venv venv\nsource venv/bin/activate\n```\nNow install the dependencies and test dependencies:\n```bash\npip install -e '.[test]'\n```\nTo run the tests:\n```bash\npytest\n```\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "a Container datatype wrapper for the Python standard library heapq module",
    "version": "0.1",
    "project_urls": {
        "CI": "https://github.com/lonnen/heapq-container/actions",
        "Changelog": "https://github.com/lonnen/heapq-container/releases",
        "Homepage": "https://github.com/lonnen/heapq-container",
        "Issues": "https://github.com/lonnen/heapq-container/issues"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2a7bfb0256f4f819310fb175e83411b0ff73ab8938bfc4b8da692f27b4d2b62f",
                "md5": "57332247b515938627759aeb7fac5eae",
                "sha256": "5f4b07fa28f55c8f0e946e57027004d52f8b9b151b28488d187d005d8dd0047c"
            },
            "downloads": -1,
            "filename": "heapq_container-0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "57332247b515938627759aeb7fac5eae",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 6885,
            "upload_time": "2024-06-16T03:39:45",
            "upload_time_iso_8601": "2024-06-16T03:39:45.650405Z",
            "url": "https://files.pythonhosted.org/packages/2a/7b/fb0256f4f819310fb175e83411b0ff73ab8938bfc4b8da692f27b4d2b62f/heapq_container-0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "14227f7132a59c746e9e6b27148ea4f7f166618bbd71991458a922713eae3b42",
                "md5": "1c08f856d8f0447dc7a942eb7b24caba",
                "sha256": "0e8ebc584e0ceec1ce84b082702e39ea10e4ab50334523ae846a17d93911552a"
            },
            "downloads": -1,
            "filename": "heapq_container-0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "1c08f856d8f0447dc7a942eb7b24caba",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 7537,
            "upload_time": "2024-06-16T03:39:47",
            "upload_time_iso_8601": "2024-06-16T03:39:47.017798Z",
            "url": "https://files.pythonhosted.org/packages/14/22/7f7132a59c746e9e6b27148ea4f7f166618bbd71991458a922713eae3b42/heapq_container-0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-16 03:39:47",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "lonnen",
    "github_project": "heapq-container",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "heapq-container"
}
        
Elapsed time: 0.25282s