veritas


Nameveritas JSON
Version 0.1.12 PyPI version JSON
download
home_pagehttps://github.com/lonnen/veritas
Summaryan executable implementation of the throwaway `_`
upload_time2023-10-17 06:08:30
maintainer
docs_urlNone
authorlonnen
requires_python
licenseBSD
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            veritas
=======

Veritas is a Python library implementing a throwaway variable that attempts to return true no matter how it is called upon.

It is intended for writing tests where you must provide some variables to an interface but your particular test will never read what happens to them. Veritas attempts to make sure that whatever the side effects on these variables it will not derail program execution. It implements comparable, numeric, callable, container, iterator, binary, in-place, unary, context manager, and async interfaces.

Needing this is a smell, but it can help you get things moving without requiring you to refactor the whole system.

|Build Status|

.. |Build Status| image:: https://github.com/lonnen/veritas/actions/workflows/main.yml/badge.svg?branch=main
   :target: https://github.com/lonnen/veritas/actions/workflows/main.yml

:Code:          https://github.com/lonnen/veritas/
:Issues:        https://github.com/lonnen/veritas/issues
:Releases:      https://pypi.org/project/veritas/#history
:License:       BSD 3-clause; See LICENSE

Install
=======

From PyPI
---------

Run::

    $ pip install veritas

For hacking
-----------

Run::

    $ git clone https://github.com/lonnen/veritas
    # Create and activate virtualenvironment, left to the reader as an excercise
    $ pip install -r requirements-dev.txt


Usage
=====

see tests for example usage

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/lonnen/veritas",
    "name": "veritas",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "lonnen",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/9d/81/2b81022035e22e58082ae9e8c20389165efe75b5ba3a64fe8dd316a51327/veritas-0.1.12.tar.gz",
    "platform": null,
    "description": "veritas\n=======\n\nVeritas is a Python library implementing a throwaway variable that attempts to return true no matter how it is called upon.\n\nIt is intended for writing tests where you must provide some variables to an interface but your particular test will never read what happens to them. Veritas attempts to make sure that whatever the side effects on these variables it will not derail program execution. It implements comparable, numeric, callable, container, iterator, binary, in-place, unary, context manager, and async interfaces.\n\nNeeding this is a smell, but it can help you get things moving without requiring you to refactor the whole system.\n\n|Build Status|\n\n.. |Build Status| image:: https://github.com/lonnen/veritas/actions/workflows/main.yml/badge.svg?branch=main\n   :target: https://github.com/lonnen/veritas/actions/workflows/main.yml\n\n:Code:          https://github.com/lonnen/veritas/\n:Issues:        https://github.com/lonnen/veritas/issues\n:Releases:      https://pypi.org/project/veritas/#history\n:License:       BSD 3-clause; See LICENSE\n\nInstall\n=======\n\nFrom PyPI\n---------\n\nRun::\n\n    $ pip install veritas\n\nFor hacking\n-----------\n\nRun::\n\n    $ git clone https://github.com/lonnen/veritas\n    # Create and activate virtualenvironment, left to the reader as an excercise\n    $ pip install -r requirements-dev.txt\n\n\nUsage\n=====\n\nsee tests for example usage\n",
    "bugtrack_url": null,
    "license": "BSD",
    "summary": "an executable implementation of the throwaway `_`",
    "version": "0.1.12",
    "project_urls": {
        "Homepage": "https://github.com/lonnen/veritas"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9cb842c7845c3705f542e9ea9fede5e915373f9389428f921edce42553354db5",
                "md5": "794471cf1560307204ddc20b11e3aa41",
                "sha256": "8d3fbee74c66a8d8523f5f4210eb0aa3beb6d02ec70f68a69fdbcddbbe7994af"
            },
            "downloads": -1,
            "filename": "veritas-0.1.12-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "794471cf1560307204ddc20b11e3aa41",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 5257,
            "upload_time": "2023-10-17T06:08:28",
            "upload_time_iso_8601": "2023-10-17T06:08:28.023814Z",
            "url": "https://files.pythonhosted.org/packages/9c/b8/42c7845c3705f542e9ea9fede5e915373f9389428f921edce42553354db5/veritas-0.1.12-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9d812b81022035e22e58082ae9e8c20389165efe75b5ba3a64fe8dd316a51327",
                "md5": "d713d60f092afd72b7f5b70545fcea60",
                "sha256": "9e8d589ff816997d2d86802a7217b0e2458c50872e2f428b62ad94211c4261c9"
            },
            "downloads": -1,
            "filename": "veritas-0.1.12.tar.gz",
            "has_sig": false,
            "md5_digest": "d713d60f092afd72b7f5b70545fcea60",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4906,
            "upload_time": "2023-10-17T06:08:30",
            "upload_time_iso_8601": "2023-10-17T06:08:30.506348Z",
            "url": "https://files.pythonhosted.org/packages/9d/81/2b81022035e22e58082ae9e8c20389165efe75b5ba3a64fe8dd316a51327/veritas-0.1.12.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-17 06:08:30",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "lonnen",
    "github_project": "veritas",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "veritas"
}
        
Elapsed time: 0.20309s