.. contents:: **pytablewriter-altcol-theme**
:backlinks: top
:depth: 2
Summary
============================================
.. image:: https://github.com/thombashi/pytablewriter-altcol-theme/actions/workflows/ci.yml/badge.svg
:target: https://github.com/thombashi/pytablewriter-altcol-theme/actions/workflows/ci.yml
:alt: CI status of Linux/macOS/Windows
.. image:: https://coveralls.io/repos/github/thombashi/pytablewriter-altcol-theme/badge.svg?branch=master
:target: https://coveralls.io/github/thombashi/pytablewriter-altcol-theme?branch=master
:alt: Test coverage: coveralls
.. image:: https://github.com/thombashi/pytablewriter-altcol-theme/actions/workflows/github-code-scanning/codeql/badge.svg
:target: https://github.com/thombashi/pytablewriter-altcol-theme/actions/workflows/github-code-scanning/codeql
:alt: CodeQL
``pytablewriter-altcol-theme`` is a `pytablewriter <https://github.com/thombashi/pytablewriter>`__ plugin to provide a terminal theme.
Installation
============================================
::
pip install pytablewriter-altcol-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="altcol",
)
writer.write_table()
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("altcol", color="yellow")
writer.write_table()
Other Examples
--------------------------------------------
- Generate HTML example: `source file <https://github.com/thombashi/pytablewriter-altcol-theme/blob/master/examples/write_html.py>`__ and `the output <https://thombashi.github.io/pytablewriter-altcol-theme/example.html>`__
Dependencies
============================================
- Python 3.7+
- `Python package dependencies (automatically installed) <https://github.com/thombashi/pytablewriter-altcol-theme/network/dependencies>`__
Related Projects
============================================
- `pytablewriter <https://github.com/thombashi/pytablewriter>`__
- `pytablewriter-altrow-theme <https://github.com/thombashi/pytablewriter-altrow-theme>`__
Raw data
{
"_id": null,
"home_page": "https://github.com/thombashi/pytablewriter-altcol-theme",
"name": "pytablewriter-altcol-theme",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "plugin,pytablewriter,theme",
"author": "Tsuyoshi Hombashi",
"author_email": "tsuyoshi.hombashi@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/ad/68/cca305c2c6e783702695c857181b5b1d973f40dda660d621b8944db52a3c/pytablewriter-altcol-theme-0.1.1.tar.gz",
"platform": null,
"description": ".. contents:: **pytablewriter-altcol-theme**\n :backlinks: top\n :depth: 2\n\n\nSummary\n============================================\n\n.. image:: https://github.com/thombashi/pytablewriter-altcol-theme/actions/workflows/ci.yml/badge.svg\n :target: https://github.com/thombashi/pytablewriter-altcol-theme/actions/workflows/ci.yml\n :alt: CI status of Linux/macOS/Windows\n\n.. image:: https://coveralls.io/repos/github/thombashi/pytablewriter-altcol-theme/badge.svg?branch=master\n :target: https://coveralls.io/github/thombashi/pytablewriter-altcol-theme?branch=master\n :alt: Test coverage: coveralls\n\n.. image:: https://github.com/thombashi/pytablewriter-altcol-theme/actions/workflows/github-code-scanning/codeql/badge.svg\n :target: https://github.com/thombashi/pytablewriter-altcol-theme/actions/workflows/github-code-scanning/codeql\n :alt: CodeQL\n\n``pytablewriter-altcol-theme`` is a `pytablewriter <https://github.com/thombashi/pytablewriter>`__ plugin to provide a terminal theme.\n\n\nInstallation\n============================================\n::\n\n pip install pytablewriter-altcol-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=\"altcol\",\n )\n writer.write_table()\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(\"altcol\", color=\"yellow\")\n\n writer.write_table()\n\n\nOther Examples\n--------------------------------------------\n- Generate HTML example: `source file <https://github.com/thombashi/pytablewriter-altcol-theme/blob/master/examples/write_html.py>`__ and `the output <https://thombashi.github.io/pytablewriter-altcol-theme/example.html>`__\n\n\nDependencies\n============================================\n- Python 3.7+\n- `Python package dependencies (automatically installed) <https://github.com/thombashi/pytablewriter-altcol-theme/network/dependencies>`__\n\n\nRelated Projects\n============================================\n- `pytablewriter <https://github.com/thombashi/pytablewriter>`__\n- `pytablewriter-altrow-theme <https://github.com/thombashi/pytablewriter-altrow-theme>`__\n",
"bugtrack_url": null,
"license": "MIT License",
"summary": "pytablewriter-altcol-theme is a pytablewriter plugin to provide a terminal theme.",
"version": "0.1.1",
"project_urls": {
"Changlog": "https://github.com/thombashi/pytablewriter-altcol-theme/releases",
"Homepage": "https://github.com/thombashi/pytablewriter-altcol-theme",
"Source": "https://github.com/thombashi/pytablewriter-altcol-theme",
"Tracker": "https://github.com/thombashi/pytablewriter-altcol-theme/issues"
},
"split_keywords": [
"plugin",
"pytablewriter",
"theme"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "eadac91ffeff4e84a08aed10d95a40594e088fa1901058c238679c51660d5027",
"md5": "cdc1fa1a9f55b4aa31923b8463891439",
"sha256": "b35b0aa1f0c351552bdf538b8f5a582d2141acc70c4eb6ffecf561db59da899b"
},
"downloads": -1,
"filename": "pytablewriter_altcol_theme-0.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "cdc1fa1a9f55b4aa31923b8463891439",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 4421,
"upload_time": "2023-10-08T08:47:04",
"upload_time_iso_8601": "2023-10-08T08:47:04.108587Z",
"url": "https://files.pythonhosted.org/packages/ea/da/c91ffeff4e84a08aed10d95a40594e088fa1901058c238679c51660d5027/pytablewriter_altcol_theme-0.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ad68cca305c2c6e783702695c857181b5b1d973f40dda660d621b8944db52a3c",
"md5": "313a989c7ae1b43113dced566d5e0d78",
"sha256": "20e052c42150726d8c6b4196128622a575293e99b5ac9ee92a7b971dfac7ab25"
},
"downloads": -1,
"filename": "pytablewriter-altcol-theme-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "313a989c7ae1b43113dced566d5e0d78",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 5981,
"upload_time": "2023-10-08T08:47:06",
"upload_time_iso_8601": "2023-10-08T08:47:06.015221Z",
"url": "https://files.pythonhosted.org/packages/ad/68/cca305c2c6e783702695c857181b5b1d973f40dda660d621b8944db52a3c/pytablewriter-altcol-theme-0.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-10-08 08:47:06",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "thombashi",
"github_project": "pytablewriter-altcol-theme",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "pytablewriter-altcol-theme"
}