mkdocs-table-reader-plugin-3.1.0


توضیحات

MkDocs plugin to directly insert tables from files into markdown.
ویژگی مقدار
سیستم عامل OS Independent
نام فایل mkdocs-table-reader-plugin-3.1.0
نام mkdocs-table-reader-plugin
نسخه کتابخانه 3.1.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Tim Vink
ایمیل نویسنده vinktim@gmail.com
آدرس صفحه اصلی https://github.com/timvink/mkdocs-table-reader-plugin
آدرس اینترنتی https://pypi.org/project/mkdocs-table-reader-plugin/
مجوز MIT
[![Actions Status](https://github.com/timvink/mkdocs-table-reader-plugin/workflows/pytest/badge.svg)](https://github.com/timvink/mkdocs-table-reader-plugin/actions) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/mkdocs-table-reader-plugin) ![PyPI](https://img.shields.io/pypi/v/mkdocs-table-reader-plugin) ![PyPI - Downloads](https://img.shields.io/pypi/dm/mkdocs-table-reader-plugin) [![codecov](https://codecov.io/gh/timvink/mkdocs-table-reader-plugin/branch/master/graph/badge.svg)](https://codecov.io/gh/timvink/mkdocs-table-reader-plugin) ![GitHub contributors](https://img.shields.io/github/contributors/timvink/mkdocs-table-reader-plugin) ![PyPI - License](https://img.shields.io/pypi/l/mkdocs-table-reader-plugin) # mkdocs-table-reader-plugin [MkDocs](https://www.mkdocs.org/) plugin that enables a markdown tag like `{{ read_csv('table.csv') }}` to directly insert various table formats into a page. > For a workflow with other plugins see the blogpost [building reproducible reports with MkDocs](https://timvink.nl/reproducible-reports-with-mkdocs/) ## Installation Install the plugin using `pip`: ```bash pip install mkdocs-table-reader-plugin ``` Next, add the following lines to your `mkdocs.yml`: ```yml plugins: - search - table-reader ``` > If you have no `plugins` entry in your config file yet, you'll likely also want to add the `search` plugin. MkDocs enables it by default if there is no `plugins` entry set. ## Usage In your markdown files you can now use: ```html {{ read_csv('path_to_table.csv') }} ``` Where the path is relative to the location of your project's `mkdocs.yml` file, _or_ your project's `docs/` directory, _or_ the location of your markdown source file (all 3 possible locations will be searched, in that order). - There are [readers](https://timvink.github.io/mkdocs-table-reader-plugin/readers/) available for many common table formats, like `.csv`, `.fwf`, `.json`, `.xls`, `.xlsx`, `.yaml`, `.feather` and `.tsv`. There is also the `read_raw()` reader that will allow you to insert tables (or other content) already in markdown format. - `table-reader` is compatible with [`mkdocs-macros-plugin`](https://mkdocs-macros-plugin.readthedocs.io/en/latest/). This enables further automation like filtering tables or inserting directories of tables. See the documentation on [compatibility with macros plugin](howto/use_jinja2.md) for more examples. ## Documentation and how-to guides See [timvink.github.io/mkdocs-table-reader-plugin/](https://timvink.github.io/mkdocs-table-reader-plugin/)


نیازمندی

مقدار نام
- mkdocs>=1.0
- pandas>=1.1
- tabulate>=0.8.7
- PyYAML>=5.4.1


زبان مورد نیاز

مقدار نام
>=3.8 Python


نحوه نصب


نصب پکیج whl mkdocs-table-reader-plugin-3.1.0:

    pip install mkdocs-table-reader-plugin-3.1.0.whl


نصب پکیج tar.gz mkdocs-table-reader-plugin-3.1.0:

    pip install mkdocs-table-reader-plugin-3.1.0.tar.gz