معرفی شرکت ها


doc-to-readme-1.1.1


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Automated Python Module Documentation in Markdown File (README)
ویژگی مقدار
سیستم عامل -
نام فایل doc-to-readme-1.1.1
نام doc-to-readme
نسخه کتابخانه 1.1.1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده -
ایمیل نویسنده Mirjam Ziselsberger <ziselsberger@gmail.com>
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/doc-to-readme/
مجوز MIT License Copyright (c) 2023 Mirjam Ziselsberger Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# Automated (Python) Module Documentation in README ## What's this? Automated docstring extraction and creation/update of documentation (of python modules) in README File. ### Why? Because it's nice :-) ### How? [doc_to_md.py](src/doc_to_md/doc_to_md.py) loops through all Python files in the Repository and extracts the function calls + the corresponding short description from the docstrings. These are added to a dictionary and afterwards converted to a Markdown Table. Finally, the section **_Functions & Classes_** is appended / updated in the README File. > There are several options how to use it: > a) [Python Package](#a-install--use-python-package) > b) [CI Pipeline](#b-add-to-pipeline-github-gitlab-or-bitbucket) ### a) install & use Python Package Available on [PyPI](https://pypi.org/project/doc-to-readme) ```shell pip install doc-to-readme ``` - **Use within Python** ```python import doc_to_md.doc_to_md as dtm dtm.update_markdown_file( file="README.md", root_dir=None, # Directory used as root for searching modules, defaults to folder containing README.md exclude_modules=None, # List of modules to be excluded specified_modules=None, # Only these modules will be included separate=True # Create one table per module ) ``` - **Command Line** ```shell python -m doc_to_md.doc_to_md -f "README.md" [-r ROOT_DIR] [-e EXCLUDE_MODULES] [-m SELECTED_MODULES] [--separated] -r ROOT_DIR # Directory used as root for searching modules, defaults to folder containing README.md -e EXCLUDE_MODULES # List of modules to be excluded -m SELECTED_MODULES # Only these modules will be included --separated # Create one table per module ``` --- ### b) add to Pipeline (GitHub, GitLab or Bitbucket) _[Documentation](https://github.com/ziselsberger/doc_to_readme/blob/main/How_to_setup_the_pipelines.md) on how to set up the pipelines to update a file on every push._ > ### [**_Step-by-step guide_**](https://github.com/ziselsberger/use_doc_to_readme) on how to integrate _doc_to_readme_ in your Repository --- _Copyright &copy; 2023 by Mirjam Ziselsberger_ _This code is free to use under the terms of the [MIT license](/LICENSE)._ ## Functions & Classes ### [doc_to_md.py](./src/doc_to_md/doc_to_md.py) | Type | Name/Call | Description | | --- | --- | --- | | function | `loop_through_repo(file: str, root_dir: str = None, exclude_modules: Optional[Tuple[str, ...]] = None, specified_modules: Optional[Tuple[str, ...]] = None) -> None` | Collect documentation from functions & classes. | | function | `add_summary_to_md(overview_dict: Dict[str, Optional[Union[str, Dict[str, str]]]], markdown: str, separate: bool = True)` | Add Table with all Functions & Classes to Markdown file. | | function | `update_markdown_file(file: str = "../../README.md", root_dir: str = None, exclude_modules: Optional[Tuple[str, ...]] = ("test", "functions_for_testing", "classes_for_testing", "doc_to_md"), specified_modules: Optional[Tuple[str, ...]] = None, separate: bool = True)` | Add/update 'Functions & Classes' Section in Markdown file. | | function | `parse_through_file(file: str) -> Dict[str, Dict[str, str]]` | Parse through file, return dict with classes and functions. | Created with: [doc_to_readme](https://github.com/ziselsberger/doc_to_readme) [MIT](https://github.com/ziselsberger/doc_to_readme/blob/main/LICENSE) &copy; 2023 Mirjam Ziselsberger --- **Last Update:** 2023-05-03


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

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


نحوه نصب


نصب پکیج whl doc-to-readme-1.1.1:

    pip install doc-to-readme-1.1.1.whl


نصب پکیج tar.gz doc-to-readme-1.1.1:

    pip install doc-to-readme-1.1.1.tar.gz