LoopEx


NameLoopEx JSON
Version 0.0.1 PyPI version JSON
download
home_pageNone
SummaryA extension enhancing Python loop.
upload_time2024-09-02 14:16:01
maintainerNone
docs_urlNone
authorNone
requires_python>=3.0
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # LoopEx

A extension enhancing Python loop.

## Usage

First, install package via pip.

```
pip install loopex@git+https://github.com/glyzinieh/python-loop-extension
```

Second, import module before the loop.

```Python
from loopex import LoopEx
```

## Features

Now, one feature is available. We plan to add more features in the future.

### `do_while(condition)`

This enables you to implement "do...while" in Python in a simple way. This is similar to the while statement, but the expression is tested after the suite is executed.

```Python
do_while = LoopEx().do_while
result = ''
i = 0

while do_while(i < 5):
    i += 1
    result += str(i)

print(result) # 12345
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "LoopEx",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.0",
    "maintainer_email": null,
    "keywords": null,
    "author": null,
    "author_email": "glyzinieh <wisteriatp@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/70/5f/3c72ed3219b7181fac0c0d435e09795a0c5b92b04e993b95749fb79c3204/loopex-0.0.1.tar.gz",
    "platform": null,
    "description": "# LoopEx\n\nA extension enhancing Python loop.\n\n## Usage\n\nFirst, install package via pip.\n\n```\npip install loopex@git+https://github.com/glyzinieh/python-loop-extension\n```\n\nSecond, import module before the loop.\n\n```Python\nfrom loopex import LoopEx\n```\n\n## Features\n\nNow, one feature is available. We plan to add more features in the future.\n\n### `do_while(condition)`\n\nThis enables you to implement \"do...while\" in Python in a simple way. This is similar to the while statement, but the expression is tested after the suite is executed.\n\n```Python\ndo_while = LoopEx().do_while\nresult = ''\ni = 0\n\nwhile do_while(i < 5):\n    i += 1\n    result += str(i)\n\nprint(result) # 12345\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A extension enhancing Python loop.",
    "version": "0.0.1",
    "project_urls": {
        "Homepage": "https://github.com/glyzinieh/python-loop-extension",
        "Issues": "https://github.com/glyzinieh/python-loop-extension/issues"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8200dc28be230d223b6a02c0300950f99ce0ad252756bdbe01f7b81d7534ef45",
                "md5": "3582666a1bad7a6e025efcbbd890b800",
                "sha256": "dc0585feba5c4f27e6dce1a0a3db082028441602171a7e2866d866840d89bd67"
            },
            "downloads": -1,
            "filename": "loopex-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3582666a1bad7a6e025efcbbd890b800",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.0",
            "size": 2540,
            "upload_time": "2024-09-02T14:16:00",
            "upload_time_iso_8601": "2024-09-02T14:16:00.357459Z",
            "url": "https://files.pythonhosted.org/packages/82/00/dc28be230d223b6a02c0300950f99ce0ad252756bdbe01f7b81d7534ef45/loopex-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "705f3c72ed3219b7181fac0c0d435e09795a0c5b92b04e993b95749fb79c3204",
                "md5": "d67fbbf8c8defc926a4c200084661ddc",
                "sha256": "81008ee6ac632b002831f430cbb93a8511af50bcd1fb319e683e9927d8dbf078"
            },
            "downloads": -1,
            "filename": "loopex-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "d67fbbf8c8defc926a4c200084661ddc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.0",
            "size": 3379,
            "upload_time": "2024-09-02T14:16:01",
            "upload_time_iso_8601": "2024-09-02T14:16:01.956011Z",
            "url": "https://files.pythonhosted.org/packages/70/5f/3c72ed3219b7181fac0c0d435e09795a0c5b92b04e993b95749fb79c3204/loopex-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-02 14:16:01",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "glyzinieh",
    "github_project": "python-loop-extension",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "loopex"
}
        
Elapsed time: 0.60762s