pytablewriter-altrow-theme


Namepytablewriter-altrow-theme JSON
Version 0.2.0 PyPI version JSON
download
home_pagehttps://github.com/thombashi/pytablewriter-altrow-theme
SummaryA pytablewriter plugin to provide a theme that colored rows alternatively.
upload_time2023-10-08 02:13:41
maintainer
docs_urlNone
authorTsuyoshi Hombashi
requires_python>=3.7
licenseMIT License
keywords pytablewriter plugin theme
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            .. contents:: **pytablewriter-altrow-theme**
   :backlinks: top
   :depth: 2


Summary
============================================
.. image:: https://badge.fury.io/py/pytablewriter-altrow-theme.svg
    :target: https://badge.fury.io/py/pytablewriter-altrow-theme
    :alt: PyPI package version

.. image:: https://img.shields.io/pypi/pyversions/pytablewriter-altrow-theme.svg
    :target: https://pypi.org/project/pytablewriter-altrow-theme
    :alt: Supported Python versions

.. image:: https://img.shields.io/pypi/implementation/pytablewriter-altrow-theme.svg
    :target: https://pypi.org/project/pytablewriter-altrow-theme
    :alt: Supported Python implementations

.. image:: https://github.com/thombashi/pytablewriter-altrow-theme/actions/workflows/ci.yml/badge.svg
    :target: https://github.com/thombashi/pytablewriter-altrow-theme/actions/workflows/ci.yml
    :alt: CI status of Linux/macOS/Windows

.. image:: https://coveralls.io/repos/github/thombashi/pytablewriter-altrow-theme/badge.svg?branch=master
    :target: https://coveralls.io/github/thombashi/pytablewriter-altrow-theme?branch=master
    :alt: Test coverage: coveralls

``pytablewriter-altrow-theme`` is a `pytablewriter <https://github.com/thombashi/pytablewriter>`__ plugin to provide a theme that colored rows alternatively.


Installation
============================================
::

    pip install pytablewriter-altrow-theme

Usage
============================================

:Sample Code:
    .. code-block:: python

        import pytablewriter as ptw

        writer = ptw.TableWriterFactory.create_from_format_name(
            "markdown",
            headers=["INT", "STR"],
            value_matrix=[
                [1, "hoge"],
                [2, "foo"],
                [3, "bar"],
            ],
            margin=1,
            theme="altrow",
        )
        writer.write_table()

:Output:
    .. figure:: https://cdn.jsdelivr.net/gh/thombashi/pytablewriter-altrow-theme@master/ss/ptw-altrow-theme_example_default.png
       :scale: 100%
       :alt: https://github.com/thombashi/pytablewriter-altrow-theme/blob/master/ss/ptw-altrow-theme_example_default.png

You can change the color of the theme by using the ``color`` parameter:

:Sample Code:
    .. code-block:: python

        import pytablewriter as ptw

        writer = ptw.TableWriterFactory.create_from_format_name(
            "markdown",
            headers=["INT", "STR"],
            value_matrix=[
                [1, "hoge"],
                [2, "foo"],
                [3, "bar"],
            ],
            margin=1,
        )

        writer.set_theme("altrow", color="yellow")

        writer.write_table()

:Output:
    .. figure:: https://cdn.jsdelivr.net/gh/thombashi/pytablewriter-altrow-theme@master/ss/ptw-altrow-theme_example_yellow.png
       :scale: 100%
       :alt: https://github.com/thombashi/pytablewriter-altrow-theme/blob/master/ss/ptw-altrow-theme_example_yellow.png


Other Examples
--------------------------------------------
- HTML example: `source file <https://github.com/thombashi/pytablewriter-altrow-theme/blob/master/examples/write_html.py>`__ and `the output <https://thombashi.github.io/pytablewriter-altrow-theme/example.html>`__


Dependencies
============================================
- Python 3.7+
- `Python package dependencies (automatically installed) <https://github.com/thombashi/pytablewriter-altrow-theme/network/dependencies>`__


Related Projects
============================================
- `pytablewriter <https://github.com/thombashi/pytablewriter>`__
- `pytablewriter-altcol-theme <https://github.com/thombashi/pytablewriter-altcol-theme>`__

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/thombashi/pytablewriter-altrow-theme",
    "name": "pytablewriter-altrow-theme",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "pytablewriter,plugin,theme",
    "author": "Tsuyoshi Hombashi",
    "author_email": "tsuyoshi.hombashi@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/9d/8d/144c978726e61b0b30a065ce3cb2ed9810fa08a8102a59029b447272c9e4/pytablewriter-altrow-theme-0.2.0.tar.gz",
    "platform": null,
    "description": ".. contents:: **pytablewriter-altrow-theme**\n   :backlinks: top\n   :depth: 2\n\n\nSummary\n============================================\n.. image:: https://badge.fury.io/py/pytablewriter-altrow-theme.svg\n    :target: https://badge.fury.io/py/pytablewriter-altrow-theme\n    :alt: PyPI package version\n\n.. image:: https://img.shields.io/pypi/pyversions/pytablewriter-altrow-theme.svg\n    :target: https://pypi.org/project/pytablewriter-altrow-theme\n    :alt: Supported Python versions\n\n.. image:: https://img.shields.io/pypi/implementation/pytablewriter-altrow-theme.svg\n    :target: https://pypi.org/project/pytablewriter-altrow-theme\n    :alt: Supported Python implementations\n\n.. image:: https://github.com/thombashi/pytablewriter-altrow-theme/actions/workflows/ci.yml/badge.svg\n    :target: https://github.com/thombashi/pytablewriter-altrow-theme/actions/workflows/ci.yml\n    :alt: CI status of Linux/macOS/Windows\n\n.. image:: https://coveralls.io/repos/github/thombashi/pytablewriter-altrow-theme/badge.svg?branch=master\n    :target: https://coveralls.io/github/thombashi/pytablewriter-altrow-theme?branch=master\n    :alt: Test coverage: coveralls\n\n``pytablewriter-altrow-theme`` is a `pytablewriter <https://github.com/thombashi/pytablewriter>`__ plugin to provide a theme that colored rows alternatively.\n\n\nInstallation\n============================================\n::\n\n    pip install pytablewriter-altrow-theme\n\nUsage\n============================================\n\n:Sample Code:\n    .. code-block:: python\n\n        import pytablewriter as ptw\n\n        writer = ptw.TableWriterFactory.create_from_format_name(\n            \"markdown\",\n            headers=[\"INT\", \"STR\"],\n            value_matrix=[\n                [1, \"hoge\"],\n                [2, \"foo\"],\n                [3, \"bar\"],\n            ],\n            margin=1,\n            theme=\"altrow\",\n        )\n        writer.write_table()\n\n:Output:\n    .. figure:: https://cdn.jsdelivr.net/gh/thombashi/pytablewriter-altrow-theme@master/ss/ptw-altrow-theme_example_default.png\n       :scale: 100%\n       :alt: https://github.com/thombashi/pytablewriter-altrow-theme/blob/master/ss/ptw-altrow-theme_example_default.png\n\nYou can change the color of the theme by using the ``color`` parameter:\n\n:Sample Code:\n    .. code-block:: python\n\n        import pytablewriter as ptw\n\n        writer = ptw.TableWriterFactory.create_from_format_name(\n            \"markdown\",\n            headers=[\"INT\", \"STR\"],\n            value_matrix=[\n                [1, \"hoge\"],\n                [2, \"foo\"],\n                [3, \"bar\"],\n            ],\n            margin=1,\n        )\n\n        writer.set_theme(\"altrow\", color=\"yellow\")\n\n        writer.write_table()\n\n:Output:\n    .. figure:: https://cdn.jsdelivr.net/gh/thombashi/pytablewriter-altrow-theme@master/ss/ptw-altrow-theme_example_yellow.png\n       :scale: 100%\n       :alt: https://github.com/thombashi/pytablewriter-altrow-theme/blob/master/ss/ptw-altrow-theme_example_yellow.png\n\n\nOther Examples\n--------------------------------------------\n- HTML example: `source file <https://github.com/thombashi/pytablewriter-altrow-theme/blob/master/examples/write_html.py>`__ and `the output <https://thombashi.github.io/pytablewriter-altrow-theme/example.html>`__\n\n\nDependencies\n============================================\n- Python 3.7+\n- `Python package dependencies (automatically installed) <https://github.com/thombashi/pytablewriter-altrow-theme/network/dependencies>`__\n\n\nRelated Projects\n============================================\n- `pytablewriter <https://github.com/thombashi/pytablewriter>`__\n- `pytablewriter-altcol-theme <https://github.com/thombashi/pytablewriter-altcol-theme>`__\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "A pytablewriter plugin to provide a theme that colored rows alternatively.",
    "version": "0.2.0",
    "project_urls": {
        "Changlog": "https://github.com/thombashi/pytablewriter-altrow-theme/releases",
        "Homepage": "https://github.com/thombashi/pytablewriter-altrow-theme",
        "Source": "https://github.com/thombashi/pytablewriter-altrow-theme",
        "Tracker": "https://github.com/thombashi/pytablewriter-altrow-theme/issues"
    },
    "split_keywords": [
        "pytablewriter",
        "plugin",
        "theme"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2f18f55b6f7bce415245eb98b5b3162220158ae767040beeda3da538138fb652",
                "md5": "826c4434fdf3ff3c18808114c9aca23a",
                "sha256": "d508866d2904130f6d3164067386d8442fb22ab4bf1a14f2c2fdd7083ec81084"
            },
            "downloads": -1,
            "filename": "pytablewriter_altrow_theme-0.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "826c4434fdf3ff3c18808114c9aca23a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 4693,
            "upload_time": "2023-10-08T02:13:40",
            "upload_time_iso_8601": "2023-10-08T02:13:40.026011Z",
            "url": "https://files.pythonhosted.org/packages/2f/18/f55b6f7bce415245eb98b5b3162220158ae767040beeda3da538138fb652/pytablewriter_altrow_theme-0.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9d8d144c978726e61b0b30a065ce3cb2ed9810fa08a8102a59029b447272c9e4",
                "md5": "4e697fbfcc93a0dd8789804f6898cb3e",
                "sha256": "f30617d423259a02081182677bc0abefe0a91015da44b71f7c0f8324dc480a4d"
            },
            "downloads": -1,
            "filename": "pytablewriter-altrow-theme-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "4e697fbfcc93a0dd8789804f6898cb3e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 6363,
            "upload_time": "2023-10-08T02:13:41",
            "upload_time_iso_8601": "2023-10-08T02:13:41.904195Z",
            "url": "https://files.pythonhosted.org/packages/9d/8d/144c978726e61b0b30a065ce3cb2ed9810fa08a8102a59029b447272c9e4/pytablewriter-altrow-theme-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-08 02:13:41",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "thombashi",
    "github_project": "pytablewriter-altrow-theme",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "pytablewriter-altrow-theme"
}
        
Elapsed time: 0.12859s