z0lib


Namez0lib JSON
Version 2.0.13 PyPI version JSON
download
home_pagehttps://github.com/zeroincombenze/tools
SummaryBash zeroincombenze lib
upload_time2024-11-02 07:54:46
maintainerNone
docs_urlNone
authorAntonio Maria Vigliotti
requires_pythonNone
licenseAffero GPL
keywords bash optargs
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            ============
z0lib 2.0.13
============



|Maturity| |license gpl|



Overview
========

z0lib is a simple bash and python library.

It was created to give support to bash and python software.
The package has both bash version and both python version of functions.
Since 2022, bash development was abandoned and only python code is still upgraded.

.. important::

    However, most functions are still available for bash scripts.

The available libraries are:

* z0librc: bash version library
* z0librun.py: python version library



Features
--------

+--------------+------+--------+-----------------------------------------------------------------+
| Description  | bash | python | Note(s)                                                         |
+--------------+------+--------+-----------------------------------------------------------------+
| run_traced   | ✅   | ✅     | Run os command with trace                                       |
+--------------+------+--------+-----------------------------------------------------------------+
| xuname       | ✅   | ❌     | OS indentity (python has native function)                       |
+--------------+------+--------+-----------------------------------------------------------------+
| parseoptargs | ✅   | ❌     | Command line parser (python has native function)                |
+--------------+------+--------+-----------------------------------------------------------------+
| link_cfg     | ✅   | ❌     | Get values from configuration file (python has native function) |
+--------------+------+--------+-----------------------------------------------------------------+



Getting started
===============


Prerequisites
-------------

Zeroincombenze(R) tools requires:

* Linux Centos 7/8 or Debian 9/10/11 or Ubuntu 16/18/20/22/24
* python 2.7+, some tools require python 3.7+, best python 3.9+
* bash 5.0+



Installation
------------

Stable version via Python Package
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

::

    pip install z0lib

Current version via Git
~~~~~~~~~~~~~~~~~~~~~~~

::

    cd $HOME
    [[ ! -d ./tools ]] && git clone https://github.com/zeroincombenze/tools.git
    cd ./tools
    ./install_tools.sh -pUT
    source $HOME/devel/activate_tools



Upgrade
-------

Stable version via Python Package
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

::

    pip install --upgrade z0lib

Current version via Git
~~~~~~~~~~~~~~~~~~~~~~~

::

    cd ./tools
    ./install_tools.sh -pUT
    source $HOME/devel/activate_tools



ChangeLog History
-----------------

2.0.13 (2024-10-31)
~~~~~~~~~~~~~~~~~~~

* [FIX] os_system minor fixes

2.0.12 (2024-08-22)
~~~~~~~~~~~~~~~~~~~

* [FIX] os_system with verbose

2.0.11 (2024-07-13)
~~~~~~~~~~~~~~~~~~~

* [IMP] New function os_system
* [IMP] New function print_flush

2.0.10 (2024-07-07)
~~~~~~~~~~~~~~~~~~~

* [IMP] run_traced improvements
* [IMP] Python 3.6 deprecated

2.0.9 (2024-02-01)
~~~~~~~~~~~~~~~~~~

* [IMP] Internal matadata

2.0.8 (2023-10-16)
~~~~~~~~~~~~~~~~~~

* [FIX] parseopt

2.0.7 (2023-07-20)
~~~~~~~~~~~~~~~~~~

* [FIX] run_traced return system exit code
* [IMP] run_traced: new rtime parameter to show rtime output
* [IMP] New main

2.0.5 (2023-05-14)
~~~~~~~~~~~~~~~~~~

* [FIX] Sometime configuration init fails
* [IMP] Configuration name LOCAL_PKGS read real packages
* [IMP] is_pypi function more precise

2.0.4 (2023-04-10)
~~~~~~~~~~~~~~~~~~

* [FIX] run_traced: cd does not work w/o alias
* [IMP] coveralls and codecov are not more dependencies

2.0.3 (2022-12-22)
~~~~~~~~~~~~~~~~~~

* [FIX] run_traced: --switch sometime crashes
* [FIX] run_traced: alias function

2.0.2 (2022-12-07)
~~~~~~~~~~~~~~~~~~

* [FIX] best recognition of python version
* [FIX] run_traced: fail with python 2

2.0.1 (2022-10-20)
~~~~~~~~~~~~~~~~~~

* [IMP] Stable version

2.0.0.4.1 (2022-10-20)
~~~~~~~~~~~~~~~~~~~~~~

* [FIX] run_traced: wrong execution for "cd <path>; ..."
* [IMP] CFG_init 'ALL': set ODOO_ROOT

2.0.0.4 (2022-10-05)
~~~~~~~~~~~~~~~~~~~~

* [IMP] python2 tests

2.0.0.3 (2022-09-30)
~~~~~~~~~~~~~~~~~~~~

* [FIX] run_traced return code

2.0.0.2 (2022-09-14)
~~~~~~~~~~~~~~~~~~~~

* [IMP] run_traced for python apps

2.0.0.1 (2022-09-06)
~~~~~~~~~~~~~~~~~~~~

* [IMP] set_pybin accept filename
* [IMP] check_pythonpath removed

2.0.0 (2022-08-10)
~~~~~~~~~~~~~~~~~~

* [REF] Partial refactoring for shell scripts



Credits
=======

Copyright
---------

SHS-AV s.r.l. <https://www.shs-av.com/>


Authors
-------

* `SHS-AV s.r.l. <https://www.zeroincombenze.it>`__



Contributors
------------

* `Antonio M. Vigliotti <antoniomaria.vigliotti@gmail.com>`__


|
|

.. |Maturity| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
    :target: https://odoo-community.org/page/development-status
    :alt: 
.. |license gpl| image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
    :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
    :alt: License: AGPL-3
.. |license opl| image:: https://img.shields.io/badge/licence-OPL-7379c3.svg
    :target: https://www.odoo.com/documentation/user/9.0/legal/licenses/licenses.html
    :alt: License: OPL
.. |Tech Doc| image:: https://www.zeroincombenze.it/wp-content/uploads/ci-ct/prd/button-docs-2.svg
    :target: https://wiki.zeroincombenze.org/en/Odoo/2.0.13/dev
    :alt: Technical Documentation
.. |Help| image:: https://www.zeroincombenze.it/wp-content/uploads/ci-ct/prd/button-help-2.svg
    :target: https://wiki.zeroincombenze.org/it/Odoo/2.0.13/man
    :alt: Technical Documentation
.. |Try Me| image:: https://www.zeroincombenze.it/wp-content/uploads/ci-ct/prd/button-try-it-2.svg
    :target: https://erp2.zeroincombenze.it
    :alt: Try Me
.. |Zeroincombenze| image:: https://avatars0.githubusercontent.com/u/6972555?s=460&v=4
   :target: https://www.zeroincombenze.it/
   :alt: Zeroincombenze
.. |en| image:: https://raw.githubusercontent.com/zeroincombenze/grymb/master/flags/en_US.png
   :target: https://www.facebook.com/Zeroincombenze-Software-gestionale-online-249494305219415/
.. |it| image:: https://raw.githubusercontent.com/zeroincombenze/grymb/master/flags/it_IT.png
   :target: https://www.facebook.com/Zeroincombenze-Software-gestionale-online-249494305219415/
.. |check| image:: https://raw.githubusercontent.com/zeroincombenze/grymb/master/awesome/check.png
.. |no_check| image:: https://raw.githubusercontent.com/zeroincombenze/grymb/master/awesome/no_check.png
.. |menu| image:: https://raw.githubusercontent.com/zeroincombenze/grymb/master/awesome/menu.png
.. |right_do| image:: https://raw.githubusercontent.com/zeroincombenze/grymb/master/awesome/right_do.png
.. |exclamation| image:: https://raw.githubusercontent.com/zeroincombenze/grymb/master/awesome/exclamation.png
.. |warning| image:: https://raw.githubusercontent.com/zeroincombenze/grymb/master/awesome/warning.png
.. |same| image:: https://raw.githubusercontent.com/zeroincombenze/grymb/master/awesome/same.png
.. |late| image:: https://raw.githubusercontent.com/zeroincombenze/grymb/master/awesome/late.png
.. |halt| image:: https://raw.githubusercontent.com/zeroincombenze/grymb/master/awesome/halt.png
.. |info| image:: https://raw.githubusercontent.com/zeroincombenze/grymb/master/awesome/info.png
.. |xml_schema| image:: https://raw.githubusercontent.com/zeroincombenze/grymb/master/certificates/iso/icons/xml-schema.png
   :target: https://github.com/zeroincombenze/grymb/blob/master/certificates/iso/scope/xml-schema.md
.. |DesktopTelematico| image:: https://raw.githubusercontent.com/zeroincombenze/grymb/master/certificates/ade/icons/DesktopTelematico.png
   :target: https://github.com/zeroincombenze/grymb/blob/master/certificates/ade/scope/Desktoptelematico.md
.. |FatturaPA| image:: https://raw.githubusercontent.com/zeroincombenze/grymb/master/certificates/ade/icons/fatturapa.png
   :target: https://github.com/zeroincombenze/grymb/blob/master/certificates/ade/scope/fatturapa.md
.. |chat_with_us| image:: https://www.shs-av.com/wp-content/chat_with_us.gif
   :target: https://t.me/Assitenza_clienti_powERP
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/zeroincombenze/tools",
    "name": "z0lib",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "bash, optargs",
    "author": "Antonio Maria Vigliotti",
    "author_email": "antoniomaria.vigliotti@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/d9/75/30f333b61abb6b8b60cb258ba4cba4cc1a74b663e84477274fbec6a7352f/z0lib-2.0.13.tar.gz",
    "platform": null,
    "description": "============\nz0lib 2.0.13\n============\n\n\n\n|Maturity| |license gpl|\n\n\n\nOverview\n========\n\nz0lib is a simple bash and python library.\n\nIt was created to give support to bash and python software.\nThe package has both bash version and both python version of functions.\nSince 2022, bash development was abandoned and only python code is still upgraded.\n\n.. important::\n\n    However, most functions are still available for bash scripts.\n\nThe available libraries are:\n\n* z0librc: bash version library\n* z0librun.py: python version library\n\n\n\nFeatures\n--------\n\n+--------------+------+--------+-----------------------------------------------------------------+\n| Description  | bash | python | Note(s)                                                         |\n+--------------+------+--------+-----------------------------------------------------------------+\n| run_traced   | \u2705   | \u2705     | Run os command with trace                                       |\n+--------------+------+--------+-----------------------------------------------------------------+\n| xuname       | \u2705   | \u274c     | OS indentity (python has native function)                       |\n+--------------+------+--------+-----------------------------------------------------------------+\n| parseoptargs | \u2705   | \u274c     | Command line parser (python has native function)                |\n+--------------+------+--------+-----------------------------------------------------------------+\n| link_cfg     | \u2705   | \u274c     | Get values from configuration file (python has native function) |\n+--------------+------+--------+-----------------------------------------------------------------+\n\n\n\nGetting started\n===============\n\n\nPrerequisites\n-------------\n\nZeroincombenze(R) tools requires:\n\n* Linux Centos 7/8 or Debian 9/10/11 or Ubuntu 16/18/20/22/24\n* python 2.7+, some tools require python 3.7+, best python 3.9+\n* bash 5.0+\n\n\n\nInstallation\n------------\n\nStable version via Python Package\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n::\n\n    pip install z0lib\n\nCurrent version via Git\n~~~~~~~~~~~~~~~~~~~~~~~\n\n::\n\n    cd $HOME\n    [[ ! -d ./tools ]] && git clone https://github.com/zeroincombenze/tools.git\n    cd ./tools\n    ./install_tools.sh -pUT\n    source $HOME/devel/activate_tools\n\n\n\nUpgrade\n-------\n\nStable version via Python Package\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n::\n\n    pip install --upgrade z0lib\n\nCurrent version via Git\n~~~~~~~~~~~~~~~~~~~~~~~\n\n::\n\n    cd ./tools\n    ./install_tools.sh -pUT\n    source $HOME/devel/activate_tools\n\n\n\nChangeLog History\n-----------------\n\n2.0.13 (2024-10-31)\n~~~~~~~~~~~~~~~~~~~\n\n* [FIX] os_system minor fixes\n\n2.0.12 (2024-08-22)\n~~~~~~~~~~~~~~~~~~~\n\n* [FIX] os_system with verbose\n\n2.0.11 (2024-07-13)\n~~~~~~~~~~~~~~~~~~~\n\n* [IMP] New function os_system\n* [IMP] New function print_flush\n\n2.0.10 (2024-07-07)\n~~~~~~~~~~~~~~~~~~~\n\n* [IMP] run_traced improvements\n* [IMP] Python 3.6 deprecated\n\n2.0.9 (2024-02-01)\n~~~~~~~~~~~~~~~~~~\n\n* [IMP] Internal matadata\n\n2.0.8 (2023-10-16)\n~~~~~~~~~~~~~~~~~~\n\n* [FIX] parseopt\n\n2.0.7 (2023-07-20)\n~~~~~~~~~~~~~~~~~~\n\n* [FIX] run_traced return system exit code\n* [IMP] run_traced: new rtime parameter to show rtime output\n* [IMP] New main\n\n2.0.5 (2023-05-14)\n~~~~~~~~~~~~~~~~~~\n\n* [FIX] Sometime configuration init fails\n* [IMP] Configuration name LOCAL_PKGS read real packages\n* [IMP] is_pypi function more precise\n\n2.0.4 (2023-04-10)\n~~~~~~~~~~~~~~~~~~\n\n* [FIX] run_traced: cd does not work w/o alias\n* [IMP] coveralls and codecov are not more dependencies\n\n2.0.3 (2022-12-22)\n~~~~~~~~~~~~~~~~~~\n\n* [FIX] run_traced: --switch sometime crashes\n* [FIX] run_traced: alias function\n\n2.0.2 (2022-12-07)\n~~~~~~~~~~~~~~~~~~\n\n* [FIX] best recognition of python version\n* [FIX] run_traced: fail with python 2\n\n2.0.1 (2022-10-20)\n~~~~~~~~~~~~~~~~~~\n\n* [IMP] Stable version\n\n2.0.0.4.1 (2022-10-20)\n~~~~~~~~~~~~~~~~~~~~~~\n\n* [FIX] run_traced: wrong execution for \"cd <path>; ...\"\n* [IMP] CFG_init 'ALL': set ODOO_ROOT\n\n2.0.0.4 (2022-10-05)\n~~~~~~~~~~~~~~~~~~~~\n\n* [IMP] python2 tests\n\n2.0.0.3 (2022-09-30)\n~~~~~~~~~~~~~~~~~~~~\n\n* [FIX] run_traced return code\n\n2.0.0.2 (2022-09-14)\n~~~~~~~~~~~~~~~~~~~~\n\n* [IMP] run_traced for python apps\n\n2.0.0.1 (2022-09-06)\n~~~~~~~~~~~~~~~~~~~~\n\n* [IMP] set_pybin accept filename\n* [IMP] check_pythonpath removed\n\n2.0.0 (2022-08-10)\n~~~~~~~~~~~~~~~~~~\n\n* [REF] Partial refactoring for shell scripts\n\n\n\nCredits\n=======\n\nCopyright\n---------\n\nSHS-AV s.r.l. <https://www.shs-av.com/>\n\n\nAuthors\n-------\n\n* `SHS-AV s.r.l. <https://www.zeroincombenze.it>`__\n\n\n\nContributors\n------------\n\n* `Antonio M. Vigliotti <antoniomaria.vigliotti@gmail.com>`__\n\n\n|\n|\n\n.. |Maturity| image:: https://img.shields.io/badge/maturity-Beta-yellow.png\n    :target: https://odoo-community.org/page/development-status\n    :alt: \n.. |license gpl| image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg\n    :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html\n    :alt: License: AGPL-3\n.. |license opl| image:: https://img.shields.io/badge/licence-OPL-7379c3.svg\n    :target: https://www.odoo.com/documentation/user/9.0/legal/licenses/licenses.html\n    :alt: License: OPL\n.. |Tech Doc| image:: https://www.zeroincombenze.it/wp-content/uploads/ci-ct/prd/button-docs-2.svg\n    :target: https://wiki.zeroincombenze.org/en/Odoo/2.0.13/dev\n    :alt: Technical Documentation\n.. |Help| image:: https://www.zeroincombenze.it/wp-content/uploads/ci-ct/prd/button-help-2.svg\n    :target: https://wiki.zeroincombenze.org/it/Odoo/2.0.13/man\n    :alt: Technical Documentation\n.. |Try Me| image:: https://www.zeroincombenze.it/wp-content/uploads/ci-ct/prd/button-try-it-2.svg\n    :target: https://erp2.zeroincombenze.it\n    :alt: Try Me\n.. |Zeroincombenze| image:: https://avatars0.githubusercontent.com/u/6972555?s=460&v=4\n   :target: https://www.zeroincombenze.it/\n   :alt: Zeroincombenze\n.. |en| image:: https://raw.githubusercontent.com/zeroincombenze/grymb/master/flags/en_US.png\n   :target: https://www.facebook.com/Zeroincombenze-Software-gestionale-online-249494305219415/\n.. |it| image:: https://raw.githubusercontent.com/zeroincombenze/grymb/master/flags/it_IT.png\n   :target: https://www.facebook.com/Zeroincombenze-Software-gestionale-online-249494305219415/\n.. |check| image:: https://raw.githubusercontent.com/zeroincombenze/grymb/master/awesome/check.png\n.. |no_check| image:: https://raw.githubusercontent.com/zeroincombenze/grymb/master/awesome/no_check.png\n.. |menu| image:: https://raw.githubusercontent.com/zeroincombenze/grymb/master/awesome/menu.png\n.. |right_do| image:: https://raw.githubusercontent.com/zeroincombenze/grymb/master/awesome/right_do.png\n.. |exclamation| image:: https://raw.githubusercontent.com/zeroincombenze/grymb/master/awesome/exclamation.png\n.. |warning| image:: https://raw.githubusercontent.com/zeroincombenze/grymb/master/awesome/warning.png\n.. |same| image:: https://raw.githubusercontent.com/zeroincombenze/grymb/master/awesome/same.png\n.. |late| image:: https://raw.githubusercontent.com/zeroincombenze/grymb/master/awesome/late.png\n.. |halt| image:: https://raw.githubusercontent.com/zeroincombenze/grymb/master/awesome/halt.png\n.. |info| image:: https://raw.githubusercontent.com/zeroincombenze/grymb/master/awesome/info.png\n.. |xml_schema| image:: https://raw.githubusercontent.com/zeroincombenze/grymb/master/certificates/iso/icons/xml-schema.png\n   :target: https://github.com/zeroincombenze/grymb/blob/master/certificates/iso/scope/xml-schema.md\n.. |DesktopTelematico| image:: https://raw.githubusercontent.com/zeroincombenze/grymb/master/certificates/ade/icons/DesktopTelematico.png\n   :target: https://github.com/zeroincombenze/grymb/blob/master/certificates/ade/scope/Desktoptelematico.md\n.. |FatturaPA| image:: https://raw.githubusercontent.com/zeroincombenze/grymb/master/certificates/ade/icons/fatturapa.png\n   :target: https://github.com/zeroincombenze/grymb/blob/master/certificates/ade/scope/fatturapa.md\n.. |chat_with_us| image:: https://www.shs-av.com/wp-content/chat_with_us.gif\n   :target: https://t.me/Assitenza_clienti_powERP",
    "bugtrack_url": null,
    "license": "Affero GPL",
    "summary": "Bash zeroincombenze lib",
    "version": "2.0.13",
    "project_urls": {
        "Changelog": "https://github.com/zeroincombenze/tools/blob/master/z0lib/egg-info/CHANGELOG.rst",
        "Documentation": "https://zeroincombenze-tools.readthedocs.io/en/latest/#z0lib",
        "Homepage": "https://github.com/zeroincombenze/tools",
        "Source": "https://github.com/zeroincombenze/tools/tree/master/z0lib"
    },
    "split_keywords": [
        "bash",
        " optargs"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d97530f333b61abb6b8b60cb258ba4cba4cc1a74b663e84477274fbec6a7352f",
                "md5": "03fa9608e2a53f5e51ef9ebe2123b05d",
                "sha256": "1525d9e3212c6336191feb6e848802729abcc47c4291dcb6097b8bf6d07d4097"
            },
            "downloads": -1,
            "filename": "z0lib-2.0.13.tar.gz",
            "has_sig": false,
            "md5_digest": "03fa9608e2a53f5e51ef9ebe2123b05d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 69349,
            "upload_time": "2024-11-02T07:54:46",
            "upload_time_iso_8601": "2024-11-02T07:54:46.288870Z",
            "url": "https://files.pythonhosted.org/packages/d9/75/30f333b61abb6b8b60cb258ba4cba4cc1a74b663e84477274fbec6a7352f/z0lib-2.0.13.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-02 07:54:46",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "zeroincombenze",
    "github_project": "tools",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "lcname": "z0lib"
}
        
Elapsed time: 0.37574s