Skip to main content

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


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 hashes)

Uploaded Source

Built Distribution

moreloops-0.0.1-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page