Warg


NameWarg JSON
Version 1.4.8 PyPI version JSON
download
home_pagehttps://github.com/pything/warg
SummaryA package for easing return of multiple values
upload_time2024-08-14 13:11:28
maintainerChristian Heider Lindbjerg
docs_urlNone
authorChristian Heider Lindbjerg
requires_python>=3.6
licenseApache License, Version 2.0
keywords python interface api
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage
            <!--![warg](.github/images/warg.svg)-->

<p align="center">
  <img src=".github/images/warg.svg" alt='Warg' />
</p>

<h1 align="center">Warg</h1>

<!--# Warg-->

| [![Build Status](https://travis-ci.com/aivclab/warg.svg?branch=master)](https://travis-ci.com/aivclab/warg) | [![Documentation](https://img.shields.io/static/v1?label=&message=docs&color=EE4C2C&style=for-the-badge)](https://pything.github.io/warg/) | [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black) | [![Coverage Status](https://coveralls.io/repos/github/aivclab/warg/badge.svg?branch=master)](https://coveralls.io/github/aivclab/warg?branch=master) | [![codebeat badge](https://codebeat.co/badges/e788d8e5-9934-44bf-85e2-b8043e5806bc)](https://codebeat.co/projects/github-com-pything-warg-master) | [![Codeship Status for pything/warg](https://app.codeship.com/projects/34b921f0-5e8f-0138-1e29-1ef237e9df62/status?branch=master)](https://app.codeship.com/projects/392349) | [![codecov](https://codecov.io/gh/pything/warg/branch/master/graph/badge.svg?token=g59R80u4j2)](https://codecov.io/gh/pything/warg) |
| ----------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |

| Workflows                                                                                                                                                                                                 |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ![Publish Python 🐍 distributions 📦 to PyPI and TestPyPI](https://github.com/pything/warg/workflows/Publish%20Python%20%F0%9F%90%8D%20distributions%20%F0%9F%93%A6%20to%20PyPI%20and%20TestPyPI/badge.svg) |
| ![On Push Any Documentation Check](https://github.com/pything/warg/workflows/On%20Push%20Any%20Documentation%20Check/badge.svg)                                                                           |
| ![CodeQL](https://github.com/pything/warg/workflows/CodeQL/badge.svg)                                                                                                                                     |

> Devour everything :wolf:
> Prey upon

![python](.github/images/python.svg)

______________________________________________________________________

`Old-Norse: Varg`

## Only for use with Python 3.6+

This package is a selection of generalised small utility classes for many use-cases in any python project, a brief
description of each follow. No external dependencies, #pure-python. Warg is strictly only using standard library
functionality, hopefully forever..

- A class for easing return of multiple values, implicit handling of args and kwargs and more. Neat access options to
    the underlying \_\_dict\_\_ of the class instance, supporting almost any variation that comes to mind.

- A class for executing any 'heavy' function asynchronously storing any results in a bounded queue. Note: communication
    and organisation is costly, intended for heavy processing functions and general queuing.

- A set of utility functions for parsing/sanitising python config files, and presenting attributes using common python
    conventions and practices.

- Some Mixin classes for iterating Mapping Types.

- A single base class and metaclass, differentiating on whether subclasses singletons should be instated on own subclass
    basis or on the supertype.

- A wrapper class, shorthand "GDKC", for delayed construction of class instances, with a persistent set of proposed
    kwargs that remain subject to change until final construction.

- A "contract" decorator, "kw passing" is a concept that lets one make a contract with the caller that all kwargs with
    be passed onwards to a receiver, this lets the caller inspect available kwargs of the the receiver function allowing
    for autocompletion, typing and documentation fetching.

- and more..

# Disclaimer

I personally view the collection of tools as a general extensions of the python language for my workflow. I seek to
provide implementations and ideas that should remain valid and useful even through future versions of the python
language.\
These tools are useful to me, I however suspect many of the assumptions and decisions that I made will be frowned upon
by more pythonic developers, hence why I would never propose any of these tools be provided in any other way than as
installable "extensions".\
I seek to make the implementations quite easy to read and intuitive to experienced python developers, but I would
refrain usage of "warg" if collaborating with less experienced python developers that would not inspect the
implementation details of the package.

Lastly use "warg" with caution for long term projects, as some features might break as python naturally evolves in
future releases. Warg uses some advanced features of python and sometimes abuse notation/syntax, with some pretty hard
assumptions on parameter input and interaction.

With these rambling comments in mind please have fun with it ![epic_face](.github/images/epic_face.png)

______________________________________________________________________

> With great power comes great responsibility :wink:

______________________________________________________________________

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/pything/warg",
    "name": "Warg",
    "maintainer": "Christian Heider Lindbjerg",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "christian.heider@alexandra.dk",
    "keywords": "python interface api",
    "author": "Christian Heider Lindbjerg",
    "author_email": "christian.heider@alexandra.dk",
    "download_url": "https://files.pythonhosted.org/packages/0d/07/4768fbd9a7e8ab0c09d31d33eaa92d098e4fda7ac2dd5c211f0bd3fc6779/warg-1.4.8.tar.gz",
    "platform": null,
    "description": "<!--![warg](.github/images/warg.svg)-->\n\n<p align=\"center\">\n  <img src=\".github/images/warg.svg\" alt='Warg' />\n</p>\n\n<h1 align=\"center\">Warg</h1>\n\n<!--# Warg-->\n\n| [![Build Status](https://travis-ci.com/aivclab/warg.svg?branch=master)](https://travis-ci.com/aivclab/warg) | [![Documentation](https://img.shields.io/static/v1?label=&message=docs&color=EE4C2C&style=for-the-badge)](https://pything.github.io/warg/) | [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black) | [![Coverage Status](https://coveralls.io/repos/github/aivclab/warg/badge.svg?branch=master)](https://coveralls.io/github/aivclab/warg?branch=master) | [![codebeat badge](https://codebeat.co/badges/e788d8e5-9934-44bf-85e2-b8043e5806bc)](https://codebeat.co/projects/github-com-pything-warg-master) | [![Codeship Status for pything/warg](https://app.codeship.com/projects/34b921f0-5e8f-0138-1e29-1ef237e9df62/status?branch=master)](https://app.codeship.com/projects/392349) | [![codecov](https://codecov.io/gh/pything/warg/branch/master/graph/badge.svg?token=g59R80u4j2)](https://codecov.io/gh/pything/warg) |\n| ----------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |\n\n| Workflows                                                                                                                                                                                                 |\n| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| ![Publish Python \ud83d\udc0d distributions \ud83d\udce6 to PyPI and TestPyPI](https://github.com/pything/warg/workflows/Publish%20Python%20%F0%9F%90%8D%20distributions%20%F0%9F%93%A6%20to%20PyPI%20and%20TestPyPI/badge.svg) |\n| ![On Push Any Documentation Check](https://github.com/pything/warg/workflows/On%20Push%20Any%20Documentation%20Check/badge.svg)                                                                           |\n| ![CodeQL](https://github.com/pything/warg/workflows/CodeQL/badge.svg)                                                                                                                                     |\n\n> Devour everything :wolf:\n> Prey upon\n\n![python](.github/images/python.svg)\n\n______________________________________________________________________\n\n`Old-Norse: Varg`\n\n## Only for use with Python 3.6+\n\nThis package is a selection of generalised small utility classes for many use-cases in any python project, a brief\ndescription of each follow. No external dependencies, #pure-python. Warg is strictly only using standard library\nfunctionality, hopefully forever..\n\n- A class for easing return of multiple values, implicit handling of args and kwargs and more. Neat access options to\n    the underlying \\_\\_dict\\_\\_ of the class instance, supporting almost any variation that comes to mind.\n\n- A class for executing any 'heavy' function asynchronously storing any results in a bounded queue. Note: communication\n    and organisation is costly, intended for heavy processing functions and general queuing.\n\n- A set of utility functions for parsing/sanitising python config files, and presenting attributes using common python\n    conventions and practices.\n\n- Some Mixin classes for iterating Mapping Types.\n\n- A single base class and metaclass, differentiating on whether subclasses singletons should be instated on own subclass\n    basis or on the supertype.\n\n- A wrapper class, shorthand \"GDKC\", for delayed construction of class instances, with a persistent set of proposed\n    kwargs that remain subject to change until final construction.\n\n- A \"contract\" decorator, \"kw passing\" is a concept that lets one make a contract with the caller that all kwargs with\n    be passed onwards to a receiver, this lets the caller inspect available kwargs of the the receiver function allowing\n    for autocompletion, typing and documentation fetching.\n\n- and more..\n\n# Disclaimer\n\nI personally view the collection of tools as a general extensions of the python language for my workflow. I seek to\nprovide implementations and ideas that should remain valid and useful even through future versions of the python\nlanguage.\\\nThese tools are useful to me, I however suspect many of the assumptions and decisions that I made will be frowned upon\nby more pythonic developers, hence why I would never propose any of these tools be provided in any other way than as\ninstallable \"extensions\".\\\nI seek to make the implementations quite easy to read and intuitive to experienced python developers, but I would\nrefrain usage of \"warg\" if collaborating with less experienced python developers that would not inspect the\nimplementation details of the package.\n\nLastly use \"warg\" with caution for long term projects, as some features might break as python naturally evolves in\nfuture releases. Warg uses some advanced features of python and sometimes abuse notation/syntax, with some pretty hard\nassumptions on parameter input and interaction.\n\nWith these rambling comments in mind please have fun with it ![epic_face](.github/images/epic_face.png)\n\n______________________________________________________________________\n\n> With great power comes great responsibility :wink:\n\n______________________________________________________________________\n",
    "bugtrack_url": null,
    "license": "Apache License, Version 2.0",
    "summary": "A package for easing return of multiple values",
    "version": "1.4.8",
    "project_urls": {
        "Download": "https://github.com/pything/warg/releases",
        "Homepage": "https://github.com/pything/warg"
    },
    "split_keywords": [
        "python",
        "interface",
        "api"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ded1d2c1f5dda23e931e72f146d696a921e57952e0d7ff30d954d89bdaa823f8",
                "md5": "b9ac7a0359c6c5b6a54e73a32f1ed647",
                "sha256": "9bc268855317c63462f7d16e8a2e664f24b0ead1edcfb6e4f4ab54878090198f"
            },
            "downloads": -1,
            "filename": "Warg-1.4.8-py36-none-any.whl",
            "has_sig": false,
            "md5_digest": "b9ac7a0359c6c5b6a54e73a32f1ed647",
            "packagetype": "bdist_wheel",
            "python_version": "py36",
            "requires_python": ">=3.6",
            "size": 98637,
            "upload_time": "2024-08-14T13:11:26",
            "upload_time_iso_8601": "2024-08-14T13:11:26.914197Z",
            "url": "https://files.pythonhosted.org/packages/de/d1/d2c1f5dda23e931e72f146d696a921e57952e0d7ff30d954d89bdaa823f8/Warg-1.4.8-py36-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0d074768fbd9a7e8ab0c09d31d33eaa92d098e4fda7ac2dd5c211f0bd3fc6779",
                "md5": "ab888ee4d6cde20f46cc1880595a193a",
                "sha256": "8e0892828b9ec6bf8bf5d5b31b2fcecc86810be9915a1564fe8b33cd88b30511"
            },
            "downloads": -1,
            "filename": "warg-1.4.8.tar.gz",
            "has_sig": false,
            "md5_digest": "ab888ee4d6cde20f46cc1880595a193a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 78719,
            "upload_time": "2024-08-14T13:11:28",
            "upload_time_iso_8601": "2024-08-14T13:11:28.471417Z",
            "url": "https://files.pythonhosted.org/packages/0d/07/4768fbd9a7e8ab0c09d31d33eaa92d098e4fda7ac2dd5c211f0bd3fc6779/warg-1.4.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-14 13:11:28",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "pything",
    "github_project": "warg",
    "travis_ci": true,
    "coveralls": true,
    "github_actions": true,
    "requirements": [],
    "tox": true,
    "lcname": "warg"
}
        
Elapsed time: 0.59539s