added-value


Nameadded-value JSON
Version 0.24.0 PyPI version JSON
download
home_pagehttps://github.com/sixty-north/added-value
SummarySphinx extension for embedding values extracted from Python modules
upload_time2023-03-29 12:13:43
maintainer
docs_urlNone
authorSixty North AS
requires_python
licenseBSD 3-clause
keywords sphinx documentation
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ===========
Added Value
===========

A Sphinx extension for embedding Python object *values* into documentation as text, lists
or tables.

This is achieved by adding new roles and directives which refer to Python objects which contain
the values to be represented. The extension provides roles for embedded single and lists of values,
and a sophisticated directive for rendering complex data structures like lists of dictionaries as
tables.


Status
======

Build status:

.. image:: https://github.com/sixty-north/added-value/workflows/CI/badge.svg?branch=master
     :target: https://github.com/sixty-north/added-value/actions?workflow=CI
     :alt: CI Status

.. image:: https://readthedocs.org/projects/added-value/badge/?version=latest
    :target: https://added-value.readthedocs.io/en/latest/?badge=latest
    :alt: Documentation Status


Installation
============

The ``added-value`` package is available on the Python Package Index (PyPI):

.. image:: https://badge.fury.io/py/added-value.svg
    :target: https://badge.fury.io/py/added-value

The package supports Python 3 only. To install::

  $ pip install added-value


Usage
=====

*Added Value* provides a number of roles and directives for embedding Python values into your
documentation. For example, sing added value we can extract the value of *pi* from the Python
Standard Library ``math`` module, and embed it in a sentence, using the ``format`` role provided
by *Added Values*, like this:

::

    The ratio of the circumference to the diameter of a circle is :format:`math.pi, .3f` to three
    decimal places.

Which gives:

    The ratio of the circumference to the diameter of a circle is 3.142 to three
    decimal places.

Powerful tools
--------------

Added value is powerful, and allows lists, dictionaries, and even complex data structures such as
lists of lists of dictionaries to be rendered into tables in various ways. Consult the
`documentation <https://added-value.readthedocs.io/en/latest/>`_ for more details.


Copyright 2023 Sixty North AS

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
   disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following
   disclaimer in the documentation and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products
   derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/sixty-north/added-value",
    "name": "added-value",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "sphinx documentation",
    "author": "Sixty North AS",
    "author_email": "systems+added-value@sixty-north.com",
    "download_url": "https://files.pythonhosted.org/packages/99/c9/b667154c95295fed0d130a93235188c2d18947089e0999ea6f51e4cf5a1a/added-value-0.24.0.tar.gz",
    "platform": null,
    "description": "===========\nAdded Value\n===========\n\nA Sphinx extension for embedding Python object *values* into documentation as text, lists\nor tables.\n\nThis is achieved by adding new roles and directives which refer to Python objects which contain\nthe values to be represented. The extension provides roles for embedded single and lists of values,\nand a sophisticated directive for rendering complex data structures like lists of dictionaries as\ntables.\n\n\nStatus\n======\n\nBuild status:\n\n.. image:: https://github.com/sixty-north/added-value/workflows/CI/badge.svg?branch=master\n     :target: https://github.com/sixty-north/added-value/actions?workflow=CI\n     :alt: CI Status\n\n.. image:: https://readthedocs.org/projects/added-value/badge/?version=latest\n    :target: https://added-value.readthedocs.io/en/latest/?badge=latest\n    :alt: Documentation Status\n\n\nInstallation\n============\n\nThe ``added-value`` package is available on the Python Package Index (PyPI):\n\n.. image:: https://badge.fury.io/py/added-value.svg\n    :target: https://badge.fury.io/py/added-value\n\nThe package supports Python 3 only. To install::\n\n  $ pip install added-value\n\n\nUsage\n=====\n\n*Added Value* provides a number of roles and directives for embedding Python values into your\ndocumentation. For example, sing added value we can extract the value of *pi* from the Python\nStandard Library ``math`` module, and embed it in a sentence, using the ``format`` role provided\nby *Added Values*, like this:\n\n::\n\n    The ratio of the circumference to the diameter of a circle is :format:`math.pi, .3f` to three\n    decimal places.\n\nWhich gives:\n\n    The ratio of the circumference to the diameter of a circle is 3.142 to three\n    decimal places.\n\nPowerful tools\n--------------\n\nAdded value is powerful, and allows lists, dictionaries, and even complex data structures such as\nlists of lists of dictionaries to be rendered into tables in various ways. Consult the\n`documentation <https://added-value.readthedocs.io/en/latest/>`_ for more details.\n\n\nCopyright 2023 Sixty North AS\n\nRedistribution and use in source and binary forms, with or without modification, are permitted provided that the\nfollowing conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following\n   disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following\n   disclaimer in the documentation and/or other materials provided with the distribution.\n\n3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products\n   derived from this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES,\nINCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\nSPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,\nWHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\nTHIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n",
    "bugtrack_url": null,
    "license": "BSD 3-clause",
    "summary": "Sphinx extension for embedding values extracted from Python modules",
    "version": "0.24.0",
    "split_keywords": [
        "sphinx",
        "documentation"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "25a0c33f692327b1987c616cad7e6b9e0b6c69ce5bd1e0f93dbd441ec6d8b1b6",
                "md5": "4e0d18e109977a635bf72ba8a6791844",
                "sha256": "637464409e84759cfae1d3809a944ac000d0655bffd46bed958ffb5b8569c1f8"
            },
            "downloads": -1,
            "filename": "added_value-0.24.0-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "4e0d18e109977a635bf72ba8a6791844",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 32689,
            "upload_time": "2023-03-29T12:13:42",
            "upload_time_iso_8601": "2023-03-29T12:13:42.371959Z",
            "url": "https://files.pythonhosted.org/packages/25/a0/c33f692327b1987c616cad7e6b9e0b6c69ce5bd1e0f93dbd441ec6d8b1b6/added_value-0.24.0-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "99c9b667154c95295fed0d130a93235188c2d18947089e0999ea6f51e4cf5a1a",
                "md5": "e23ad704ab0e82a3f4c9807d905ddd42",
                "sha256": "4c71f756db1589b596a0f2a35c8a35ddd86dd70b9335504c9ee29e2b95d40440"
            },
            "downloads": -1,
            "filename": "added-value-0.24.0.tar.gz",
            "has_sig": false,
            "md5_digest": "e23ad704ab0e82a3f4c9807d905ddd42",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 28381,
            "upload_time": "2023-03-29T12:13:43",
            "upload_time_iso_8601": "2023-03-29T12:13:43.682160Z",
            "url": "https://files.pythonhosted.org/packages/99/c9/b667154c95295fed0d130a93235188c2d18947089e0999ea6f51e4cf5a1a/added-value-0.24.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-03-29 12:13:43",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "sixty-north",
    "github_project": "added-value",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "added-value"
}
        
Elapsed time: 1.07250s