mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2026-06-19 22:28:17 +02:00
change name to JSON Convert
This commit is contained in:
+16
-13
@@ -16,11 +16,11 @@
|
||||
|
||||
# jc.utils
|
||||
|
||||
jc - JSON CLI output utility utils
|
||||
jc - JSON Convert utils
|
||||
|
||||
<a id="jc.utils.warning_message"></a>
|
||||
|
||||
### warning\_message
|
||||
#### warning\_message
|
||||
|
||||
```python
|
||||
def warning_message(message_lines: List[str]) -> None
|
||||
@@ -40,7 +40,7 @@ Returns:
|
||||
|
||||
<a id="jc.utils.error_message"></a>
|
||||
|
||||
### error\_message
|
||||
#### error\_message
|
||||
|
||||
```python
|
||||
def error_message(message_lines: List[str]) -> None
|
||||
@@ -60,10 +60,12 @@ Returns:
|
||||
|
||||
<a id="jc.utils.compatibility"></a>
|
||||
|
||||
### compatibility
|
||||
#### compatibility
|
||||
|
||||
```python
|
||||
def compatibility(mod_name: str, compatible: List, quiet: bool = False) -> None
|
||||
def compatibility(mod_name: str,
|
||||
compatible: List,
|
||||
quiet: bool = False) -> None
|
||||
```
|
||||
|
||||
Checks for the parser's compatibility with the running OS
|
||||
@@ -85,7 +87,7 @@ Returns:
|
||||
|
||||
<a id="jc.utils.has_data"></a>
|
||||
|
||||
### has\_data
|
||||
#### has\_data
|
||||
|
||||
```python
|
||||
def has_data(data: str) -> bool
|
||||
@@ -105,7 +107,7 @@ Returns:
|
||||
|
||||
<a id="jc.utils.convert_to_int"></a>
|
||||
|
||||
### convert\_to\_int
|
||||
#### convert\_to\_int
|
||||
|
||||
```python
|
||||
def convert_to_int(value: Union[str, float]) -> Optional[int]
|
||||
@@ -124,7 +126,7 @@ Returns:
|
||||
|
||||
<a id="jc.utils.convert_to_float"></a>
|
||||
|
||||
### convert\_to\_float
|
||||
#### convert\_to\_float
|
||||
|
||||
```python
|
||||
def convert_to_float(value: Union[str, int]) -> Optional[float]
|
||||
@@ -143,7 +145,7 @@ Returns:
|
||||
|
||||
<a id="jc.utils.convert_to_bool"></a>
|
||||
|
||||
### convert\_to\_bool
|
||||
#### convert\_to\_bool
|
||||
|
||||
```python
|
||||
def convert_to_bool(value: Union[str, int, float]) -> bool
|
||||
@@ -163,7 +165,7 @@ Returns:
|
||||
|
||||
<a id="jc.utils.input_type_check"></a>
|
||||
|
||||
### input\_type\_check
|
||||
#### input\_type\_check
|
||||
|
||||
```python
|
||||
def input_type_check(data: str) -> None
|
||||
@@ -173,7 +175,7 @@ Ensure input data is a string. Raises `TypeError` if not.
|
||||
|
||||
<a id="jc.utils.timestamp"></a>
|
||||
|
||||
### timestamp Objects
|
||||
## timestamp Objects
|
||||
|
||||
```python
|
||||
class timestamp()
|
||||
@@ -181,10 +183,11 @@ class timestamp()
|
||||
|
||||
<a id="jc.utils.timestamp.__init__"></a>
|
||||
|
||||
### \_\_init\_\_
|
||||
#### \_\_init\_\_
|
||||
|
||||
```python
|
||||
def __init__(datetime_string: str, format_hint: Union[List, Tuple, None] = None) -> None
|
||||
def __init__(datetime_string: str,
|
||||
format_hint: Union[List, Tuple, None] = None) -> None
|
||||
```
|
||||
|
||||
Input a datetime text string of several formats and convert to a
|
||||
|
||||
Reference in New Issue
Block a user