jetblack_markdown.metadata
module jetblack_markdown.metadata
Summary
Meta data
class ArgumentDescriptor(Descriptor)
Summary
A descriptor for arguments
Parameters
name: strThe argument name
The argument type
The arguments description
The default value. Defaults to ARG_DESCRIPTOR_EMPTY.
property ArgumentDescriptor.descriptor_type
Summary
The descriptor type
property ArgumentDescriptor.is_optional
Summary
Indicates whether the argument is optional
Description
Note that an argument is optional if it has a default value, not if it has the Optional[...] type decoration.
class CallableDescriptor(Descriptor)
Summary
A descriptor for a callable
Parameters
qualifier: strThe qualifier part of the name
The name of the callable
The callables summary docstring
The callables description docstring
The callables arguments
The callables return type
The callables return description
The type of callable
True if the callable is async
True if the callable is a generator
A list of the exceptions raised
A list of examples
The module name
The package name
The file name
property CallableDescriptor.callable_type_description
Summary
The function type name.
Description
One of: 'class', 'method', 'async generator function' 'generator function', 'function'
property CallableDescriptor.descriptor_type
Summary
The descriptor type
class method CallableDescriptor.create
Summary
Create a callable descriptor from a callable
Parameters
signature: Optional[Signature]The signature. Defaults to None.
The docstring. Defaults to None.
The function type. Defaults to CallableType.FUNCTION.
If true prefer the docstring.
An overload for the qualifier. Defaults to None.
If true the class if defined in the __init__.py
.
Returns
CallableDescriptor: A callable descriptorclass CallableType(Enum)
Summary
An enum indicating the type of a callable
Parameters
value: Any names: Any (optional) module: Any (optional) qualname: Any (optional) type: Any (optional) start: Any (optional)class ClassDescriptor(Descriptor)
Summary
A class descriptor
Parameters
name: strThe class name
The docstring summary
The docstring description
The constructor
The class attributes
The class properties
The class methods
The class methods
Examples from the docstring
The module
The package
The file,
The base classes
property ClassDescriptor.descriptor_type
Summary
The descriptor type
class method ClassDescriptor.create
Summary
Create a class
Parameters
class_from_init: boolIf True take the docstring from the init function
If True ignore __XXX__ functions
If True ignore private methods (those prefixed _XXX)
If True ignore inherited methods
The importing module, defaults to None
If true prefer the docstring.
If true the class if defined in the __init__.py
.
Returns
ClassDescriptor: The class descriptorclass Descriptor
Summary
The descriptor base class
property Descriptor.descriptor_type
Summary
The descriptor type
class ModuleDescriptor(Descriptor)
Summary
A module descriptor
Parameters
name: strThe module name
The module summary
The module description
The attribute list
Examples from the docstring
The package name
The file name
Classes in the module
Functions in the module
The child modules
property ModuleDescriptor.descriptor_type
Summary
The descriptor type
class method ModuleDescriptor.create
Summary
Create a module descriptor
Parameters
class_from_init: boolIf True take the docstring from the init function
If True ignore __XXX__ functions
If True ignore private methods (those prefixed _XXX)
If True ignore the __all__ member.
If true prefer the docstring
If true follow the module tree
Returns
ModuleDescriptor: A module descriptorclass PropertyDescriptor(Descriptor)
Summary
A properties descriptor
Parameters
qualifier: strThe qualifier
The property name
The summary from the docstring
The description from the docstring
The property type
If True the property can be set
If True the property can be deleted
A list of the exceptions the property might raise.
A list of examples from the docstring
property PropertyDescriptor.descriptor_type
Summary
The descriptor type
class method PropertyDescriptor.create
Summary
Create a property descriptor from
Parameters
klass: AnyThe class object
The name of the property
Returns
PropertyDescriptor: A property descriptorclass RaisesDescriptor(Descriptor)
Summary
A raises descriptor
Parameters
type_: strThe type of exception raised
The exception description
property RaisesDescriptor.descriptor_type
Summary
The descriptor type