os-sys


Nameos-sys JSON
Version 2.1.4 PyPI version JSON
download
home_pagehttps://github.com/Matthijs990/os-sys-github/
Summarya big lib with many usefull tools and it are not only os and sys tools...
upload_time2019-12-10 20:06:44
maintainer
docs_urlNone
authorMatthijs labots
requires_python>=3
licenseGNU General Public License
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            update notes:
===========================

fixed:

os_sys.log: get_logger function

performance:

fixed some performance issues



working on:
===========================

bug fixing, making functions and classes faster and maybe adding threading support follow me on libaries.io for info about new releases









include:
===========================

    introduction

    server                                                                     

    description                                                                                                                                                                    

    home

    loading_bars

introduction:
===========================

    to install os_sys you type: pip install os_sys                                                                                  
    to upgrade os_sys you type: pip install --upgrade os_sys                                                                                  
    so lets get start to install os_sys                                                                                  


server:
===========================
you can read the server docs at https://www.stranica.nl/docs


discription:
===========================
    os_sys is a extra package for python(3)                                                                                  
    it's a extra to have a more easy use of the normal python libs                                                                                  
    plz look sometimes to my packages becuse i am making more own libs(extra is not that own lib)                                                                                  
    if i have more info i while show it here                                                                                   
    plz read the license                                                                                  





loading_bars:
Easy progress reporting for Python
==================================

|pypi|



Bars
----

There are 7 progress bars to choose from:

- ``Bar``
- ``ChargingBar``
- ``FillingSquaresBar``
- ``FillingCirclesBar``
- ``IncrementalBar``
- ``PixelBar``
- ``ShadyBar``

To use them, just call ``next`` to advance and ``finish`` to finish:

.. code-block:: python

    from os_sys.progress import bar

    bar = Bar('Processing', max=20)
    for i in range(20):
        # Do some work
        bar.next()
    bar.finish()

or use any bar of this class as a context manager:

.. code-block:: python

    from os_sys.progress import bar

    with Bar('Processing', max=20) as bar:
        for i in range(20):
            # Do some work
            bar.next()

The result will be a bar like the following: ::

    Processing |#############                   | 42/100

To simplify the common case where the work is done in an iterator, you can
use the ``iter`` method:

.. code-block:: python

    for i in Bar('Processing').iter(it):
        # Do some work

Progress bars are very customizable, you can change their width, their fill
character, their suffix and more:

.. code-block:: python

    bar = Bar('Loading', fill='@', suffix='%(percent)d%%')

This will produce a bar like the following: ::

    Loading |@@@@@@@@@@@@@                   | 42%

You can use a number of template arguments in ``message`` and ``suffix``:

==========  ================================
Name        Value
==========  ================================
index       current value
max         maximum value
remaining   max - index
progress    index / max
percent     progress * 100
avg         simple moving average time per item (in seconds)
elapsed     elapsed time in seconds
elapsed_td  elapsed as a timedelta (useful for printing as a string)
eta         avg * remaining
eta_td      eta as a timedelta (useful for printing as a string)
==========  ================================

Instead of passing all configuration options on instatiation, you can create
your custom subclass:

.. code-block:: python

    class FancyBar(Bar):
        message = 'Loading'
        fill = '*'
        suffix = '%(percent).1f%% - %(eta)ds'

You can also override any of the arguments or create your own:

.. code-block:: python

    class SlowBar(Bar):
        suffix = '%(remaining_hours)d hours remaining'
        @property
        def remaining_hours(self):
            return self.eta // 3600


Spinners
========

For actions with an unknown number of steps you can use a spinner:

.. code-block:: python

    from os_sys.progress import spinner

    spinner = Spinner('Loading ')
    while state != 'FINISHED':
        # Do some work
        spinner.next()

There are 5 predefined spinners:

- ``Spinner``
- ``PieSpinner``
- ``MoonSpinner``
- ``LineSpinner``
- ``PixelSpinner``

comming - ``working to a big update the 2.0.0 release``

home:
===========================

    plz visit my one website there you can post every program for python that you want:

    https://python-libs-com.webnode.nl/




            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Matthijs990/os-sys-github/",
    "name": "os-sys",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3",
    "maintainer_email": "",
    "keywords": "",
    "author": "Matthijs labots",
    "author_email": "py.libs@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/e7/1b/1b2e022722ef04cd9c831182fa5af0648e5d5cbe4aa911b74de85b984460/os_sys-2.1.4.tar.gz",
    "platform": "",
    "description": "\u00ef\u00bb\u00bfupdate notes:\n===========================\n\nfixed:\n\nos_sys.log: get_logger function\n\nperformance:\n\nfixed some performance issues\n\n\n\nworking on:\n===========================\n\nbug fixing, making functions and classes faster and maybe adding threading support follow me on libaries.io for info about new releases\n\n\n\n\n\n\n\n\n\ninclude:\n===========================\n\n    introduction\n\n    server                                                                     \n\n    description                                                                                                                                                                    \n\n    home\n\n    loading_bars\n\nintroduction:\n===========================\n\n    to install os_sys you type: pip install os_sys                                                                                  \n    to upgrade os_sys you type: pip install --upgrade os_sys                                                                                  \n    so lets get start to install os_sys                                                                                  \n\n\nserver:\n===========================\nyou can read the server docs at https://www.stranica.nl/docs\n\n\ndiscription:\n===========================\n    os_sys is a extra package for python(3)                                                                                  \n    it's a extra to have a more easy use of the normal python libs                                                                                  \n    plz look sometimes to my packages becuse i am making more own libs(extra is not that own lib)                                                                                  \n    if i have more info i while show it here                                                                                   \n    plz read the license                                                                                  \n\n\n\n\n\nloading_bars:\nEasy progress reporting for Python\n==================================\n\n|pypi|\n\n\n\nBars\n----\n\nThere are 7 progress bars to choose from:\n\n- ``Bar``\n- ``ChargingBar``\n- ``FillingSquaresBar``\n- ``FillingCirclesBar``\n- ``IncrementalBar``\n- ``PixelBar``\n- ``ShadyBar``\n\nTo use them, just call ``next`` to advance and ``finish`` to finish:\n\n.. code-block:: python\n\n    from os_sys.progress import bar\n\n    bar = Bar('Processing', max=20)\n    for i in range(20):\n        # Do some work\n        bar.next()\n    bar.finish()\n\nor use any bar of this class as a context manager:\n\n.. code-block:: python\n\n    from os_sys.progress import bar\n\n    with Bar('Processing', max=20) as bar:\n        for i in range(20):\n            # Do some work\n            bar.next()\n\nThe result will be a bar like the following: ::\n\n    Processing |#############                   | 42/100\n\nTo simplify the common case where the work is done in an iterator, you can\nuse the ``iter`` method:\n\n.. code-block:: python\n\n    for i in Bar('Processing').iter(it):\n        # Do some work\n\nProgress bars are very customizable, you can change their width, their fill\ncharacter, their suffix and more:\n\n.. code-block:: python\n\n    bar = Bar('Loading', fill='@', suffix='%(percent)d%%')\n\nThis will produce a bar like the following: ::\n\n    Loading |@@@@@@@@@@@@@                   | 42%\n\nYou can use a number of template arguments in ``message`` and ``suffix``:\n\n==========  ================================\nName        Value\n==========  ================================\nindex       current value\nmax         maximum value\nremaining   max - index\nprogress    index / max\npercent     progress * 100\navg         simple moving average time per item (in seconds)\nelapsed     elapsed time in seconds\nelapsed_td  elapsed as a timedelta (useful for printing as a string)\neta         avg * remaining\neta_td      eta as a timedelta (useful for printing as a string)\n==========  ================================\n\nInstead of passing all configuration options on instatiation, you can create\nyour custom subclass:\n\n.. code-block:: python\n\n    class FancyBar(Bar):\n        message = 'Loading'\n        fill = '*'\n        suffix = '%(percent).1f%% - %(eta)ds'\n\nYou can also override any of the arguments or create your own:\n\n.. code-block:: python\n\n    class SlowBar(Bar):\n        suffix = '%(remaining_hours)d hours remaining'\n        @property\n        def remaining_hours(self):\n            return self.eta // 3600\n\n\nSpinners\n========\n\nFor actions with an unknown number of steps you can use a spinner:\n\n.. code-block:: python\n\n    from os_sys.progress import spinner\n\n    spinner = Spinner('Loading ')\n    while state != 'FINISHED':\n        # Do some work\n        spinner.next()\n\nThere are 5 predefined spinners:\n\n- ``Spinner``\n- ``PieSpinner``\n- ``MoonSpinner``\n- ``LineSpinner``\n- ``PixelSpinner``\n\ncomming - ``working to a big update the 2.0.0 release``\n\nhome:\n===========================\n\n    plz visit my one website there you can post every program for python that you want:\n\n    https://python-libs-com.webnode.nl/\n\n\n\n",
    "bugtrack_url": null,
    "license": "GNU General Public License",
    "summary": "a big lib with many usefull tools and it are not only os and sys tools...",
    "version": "2.1.4",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "894aecf84210a9c02f4d246c10f28a50050c6934eb9257298eb6d7aeef32c38b",
                "md5": "a566cecd621a044ba9666d93ee91799f",
                "sha256": "3b177229b65c7cd1c26711370c4b5e007c9b815bbfe5d565627550716756bce3"
            },
            "downloads": -1,
            "filename": "os_sys-2.1.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a566cecd621a044ba9666d93ee91799f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3",
            "size": 15563873,
            "upload_time": "2019-12-10T20:06:28",
            "upload_time_iso_8601": "2019-12-10T20:06:28.038509Z",
            "url": "https://files.pythonhosted.org/packages/89/4a/ecf84210a9c02f4d246c10f28a50050c6934eb9257298eb6d7aeef32c38b/os_sys-2.1.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e71b1b2e022722ef04cd9c831182fa5af0648e5d5cbe4aa911b74de85b984460",
                "md5": "8c6388d2f7540f823022b29b9d93fb4a",
                "sha256": "cb2a44002a5b01cf2536c2177967ce613c6fd6daaad5c44f235d3f0a8837c207"
            },
            "downloads": -1,
            "filename": "os_sys-2.1.4.tar.gz",
            "has_sig": false,
            "md5_digest": "8c6388d2f7540f823022b29b9d93fb4a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3",
            "size": 3640427,
            "upload_time": "2019-12-10T20:06:44",
            "upload_time_iso_8601": "2019-12-10T20:06:44.899051Z",
            "url": "https://files.pythonhosted.org/packages/e7/1b/1b2e022722ef04cd9c831182fa5af0648e5d5cbe4aa911b74de85b984460/os_sys-2.1.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2019-12-10 20:06:44",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "Matthijs990",
    "github_project": "os-sys-github",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "os-sys"
}
        
Elapsed time: 0.05983s