Allows one to use tons of loops not natively supported in python
Project description
MoreLoops
MoreLoops is a library the brings loops from other languages (and some that don't yet exist) into Python
Instilation
python -m pip install moreloops
Dependencies
All dependencies for MoreLoops are auto-installed
- decorate_all_methods - For decorating all the methods inside a class
- docifyPLUS - For documenting documentables
Features
Functions
while_
- Parameters:
-
- bool_expr: str
-
- do: Callable
-
-
- Default: Nothing
-
-
- else_: Callable
-
-
- Default: Nothing
-
-
- oneline: bool
-
-
- Default: False
-
-
- vars_: list
-
-
- Default: [ ]
-
- Output:
-
- If oneline is True
-
-
- Returns: _Loops.While.oneline( )
-
-
- If oneline is False
-
-
- Returns: _Loops.While(bool_expr, do, else_, vars_)
-
until
- Parameters:
-
- bool_expr: str
-
- do: Callable
-
-
- Default: Nothing
-
-
- else_: Callable
-
-
- Default: Nothing
-
-
- oneline: bool
-
-
- Default: False
-
-
- vars_: list
-
-
- Default: [ ]
-
- Output:
-
- If oneline is True
-
-
- Returns: _Loops.Until.oneline( )
-
-
- If oneline is False
-
-
- Returns: _Loops.Until(bool_expr, do, else_, vars_)
-
-
-
-
- Note: _Loops.Until is a context manager and is designed to be used as such
-
-
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
moreloops-0.0.1.tar.gz
(3.6 kB
view details)
Built Distribution
File details
Details for the file moreloops-0.0.1.tar.gz
.
File metadata
- Download URL: moreloops-0.0.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbcb38b3c10a6a38b0dbda3bb6eabd2a3e2c98793608e7ac0551de25655a1af5 |
|
MD5 | 5bba45706c5a77ea7a0bb7e2e71438b6 |
|
BLAKE2b-256 | dfb5efce0e5a3e9914c7556b132aa75e8b46c607cfe1eb35d7c2f44cd7ad4724 |
File details
Details for the file moreloops-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: moreloops-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 523f4ce59b38a61e29a7cae61a5f9bacb0943aa12e02677b56d36b52e3eaf30e |
|
MD5 | e06cfa723414b89a98dea15fc411c820 |
|
BLAKE2b-256 | 1a49d3fb8552ffe9d096fd3f4099708debd7f9744e3d08cf369eb57020767f50 |