API doc generator for NoneBot.
Reason this release was yanked:
export pre-release
Project description
nb-autodoc
������
��������� NoneBot ��� API ���������������������������������������������������������������
��������������������������������������������������������������������������������������� Google Style Docstring ��� Docstring ������������������������������������������������������
������������������ nb-autodoc ��������� ast ������������������ stub file ������������������������������������
Cheat Sheet
������������
Module
"""
description.
FrontMatter:
sidebar: auto
option:
(anything nested)
"""
������: FrontMatter ������������ description ���������
Class
"""
������:
name: desc
kwargs: other desc
������:
attr1: desc
"""
__init__
������������������������������������������������ docstring ������������������
������������������������������������������������
Function
"""
������:
name: desc, case in ['case1', 'case2']
- `case1`: desc
- `case2`: desc
name2 (Union[pkg.foo.Foo, str]): desc
������:
Optional[pkg.foo.Foo]: ������
������:
```python
print('hello world!')
```
������������
"""
������������������������������������������������������������������������������������������������������������ url link���
���������������������������������������������������������������������������������
������������������������������������������������������������ ^(?! )([\w\.\[\], ]+)(?: *\(([\w\.\[\], ]+)\))?(.*?):
������������������������������������������������������������ annotation ������ url link ������������������������������������
Variable
������������������������
������������
������: 1.1.0+
������ (1.1.0+):
name (annotation) {version}`1.1.0+`: desc
������������Variable ������������������������������������
������������: 1.1.0+
���������������������
-
version
{version}`1.1.0+`
-
ref
{ref}`pkg.foo.Foo`
������������������
��������������� __autodoc__
������������������������������������������������������������������������������������ True ������ False���
���:
__autodoc__ = {
"MyClass": True,
"MyClass.attr": False
}
������������������������������������������������ docstring���������������������������������������������������
������: ��������������������������������������������� True ��������������������������������������� stub file ���������������
Schedule
-
reduce code redundancy
-
���������������������������������������������������������������������������������������������������������������
-
������������������
-
������������������
Development Roadmap
-
1.0
-
������ AST ��������������������������������������������������������� import_module ��������������������������������������������������������������������������������������������� docstring ���������������������������������������������������������������������������������
-
������ AST ������
if TYPE_CHECKING
��������� import ��� importfrom (performance relative import) ��������������������������� attributes dict���������������get_type_hints
������������������������������������ callable ��������� -
��������� pyi ������������������������ overload ���������������
-
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for nb_autodoc-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a5213b91d81630b43178d1889a35927dae2f85fb7b964493a919eb66ac5a9a7 |
|
MD5 | 9e680a6dcccc5baae680106772136d32 |
|
BLAKE2b-256 | f5426465ac8c516fcbbd527d06b757e321b536cce51e89994059dee0171a132b |