mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-17 00:07:37 +02:00
doc update
This commit is contained in:
19
docs/lib.md
19
docs/lib.md
@ -21,12 +21,14 @@ jc - JSON Convert lib module
|
|||||||
### parse
|
### parse
|
||||||
|
|
||||||
```python
|
```python
|
||||||
def parse(parser_mod_name: Union[str, ModuleType],
|
def parse(
|
||||||
data: Union[str, bytes, Iterable[str]],
|
parser_mod_name: Union[str, ModuleType],
|
||||||
quiet: bool = False,
|
data: Union[str, bytes, Iterable[str]],
|
||||||
raw: bool = False,
|
quiet: bool = False,
|
||||||
ignore_exceptions: bool = None,
|
raw: bool = False,
|
||||||
**kwargs) -> Union[Dict, List[Dict], Iterator[Dict]]
|
ignore_exceptions: bool = None,
|
||||||
|
**kwargs
|
||||||
|
) -> Union[JSONDictType, List[JSONDictType], Iterator[JSONDictType]]
|
||||||
```
|
```
|
||||||
|
|
||||||
Parse the string or bytes data using the supplied parser module.
|
Parse the string or bytes data using the supplied parser module.
|
||||||
@ -158,7 +160,8 @@ subset of `parser_mod_list()`.
|
|||||||
### parser\_info
|
### parser\_info
|
||||||
|
|
||||||
```python
|
```python
|
||||||
def parser_info(parser_mod_name: str, documentation: bool = False) -> Dict
|
def parser_info(parser_mod_name: str,
|
||||||
|
documentation: bool = False) -> JSONDictType
|
||||||
```
|
```
|
||||||
|
|
||||||
Returns a dictionary that includes the parser module metadata.
|
Returns a dictionary that includes the parser module metadata.
|
||||||
@ -179,7 +182,7 @@ Parameters:
|
|||||||
```python
|
```python
|
||||||
def all_parser_info(documentation: bool = False,
|
def all_parser_info(documentation: bool = False,
|
||||||
show_hidden: bool = False,
|
show_hidden: bool = False,
|
||||||
show_deprecated: bool = False) -> List[Dict]
|
show_deprecated: bool = False) -> List[JSONDictType]
|
||||||
```
|
```
|
||||||
|
|
||||||
Returns a list of dictionaries that includes metadata for all parser
|
Returns a list of dictionaries that includes metadata for all parser
|
||||||
|
@ -64,7 +64,7 @@ Returns:
|
|||||||
### is\_compatible
|
### is\_compatible
|
||||||
|
|
||||||
```python
|
```python
|
||||||
def is_compatible(compatible: List) -> bool
|
def is_compatible(compatible: List[str]) -> bool
|
||||||
```
|
```
|
||||||
|
|
||||||
Returns True if the parser is compatible with the running OS platform.
|
Returns True if the parser is compatible with the running OS platform.
|
||||||
@ -75,7 +75,7 @@ Returns True if the parser is compatible with the running OS platform.
|
|||||||
|
|
||||||
```python
|
```python
|
||||||
def compatibility(mod_name: str,
|
def compatibility(mod_name: str,
|
||||||
compatible: List,
|
compatible: List[str],
|
||||||
quiet: bool = False) -> None
|
quiet: bool = False) -> None
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -202,7 +202,7 @@ class timestamp()
|
|||||||
|
|
||||||
```python
|
```python
|
||||||
def __init__(datetime_string: str,
|
def __init__(datetime_string: str,
|
||||||
format_hint: Optional[Iterable] = None) -> None
|
format_hint: Optional[Iterable[int]] = None) -> None
|
||||||
```
|
```
|
||||||
|
|
||||||
Input a datetime text string of several formats and convert to a
|
Input a datetime text string of several formats and convert to a
|
||||||
|
2
man/jc.1
2
man/jc.1
@ -1,4 +1,4 @@
|
|||||||
.TH jc 1 2022-10-14 1.22.1 "JSON Convert"
|
.TH jc 1 2022-10-15 1.22.1 "JSON Convert"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
\fBjc\fP \- JSON Convert JSONifies the output of many CLI tools, file-types, and strings
|
\fBjc\fP \- JSON Convert JSONifies the output of many CLI tools, file-types, and strings
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
|
Reference in New Issue
Block a user