py416
Advanced tools
+1
-1
| Metadata-Version: 2.1 | ||
| Name: py416 | ||
| Version: 0.56 | ||
| Version: 0.57 | ||
| Summary: don't question my methods | ||
@@ -5,0 +5,0 @@ Author-email: Ezio416 <ezezio416@gmail.com> |
+1
-1
@@ -7,3 +7,3 @@ [build-system] | ||
| name = "py416" | ||
| version = "0.56" | ||
| version = "0.57" | ||
| authors = [ | ||
@@ -10,0 +10,0 @@ { name="Ezio416", email="ezezio416@gmail.com" }, |
| Metadata-Version: 2.1 | ||
| Name: py416 | ||
| Version: 0.56 | ||
| Version: 0.57 | ||
| Summary: don't question my methods | ||
@@ -5,0 +5,0 @@ Author-email: Ezio416 <ezezio416@gmail.com> |
@@ -6,3 +6,3 @@ ''' | ||
| Updated: 2022-11-21 | ||
| Version: 0.56 | ||
| Version: 0.57 | ||
@@ -12,3 +12,3 @@ A collection of various functions | ||
| from .general import * | ||
| __version__ = 0, 56 | ||
| __version__ = 0, 57 | ||
| v = __version__ |
+37
-13
| ''' | ||
| | Author: Ezio416 | ||
| | Created: 2022-10-11 | ||
| | Updated: 2022-11-10 | ||
| | Updated: 2022-11-23 | ||
@@ -22,3 +22,3 @@ - Functions for getting basic system information | ||
| def cpu(json: bool = False) -> Union[dict, str]: | ||
| def cpu(json: bool = False, json_indent: int = 4) -> Union[dict, str]: | ||
| ''' | ||
@@ -33,2 +33,6 @@ - gets info on the CPU | ||
| json_indent: int | ||
| - indentation level for JSON output | ||
| - default: 4 | ||
| Returns | ||
@@ -60,7 +64,7 @@ ------- | ||
| if json: | ||
| return dumps(cpu_info) | ||
| return dumps(cpu_info, indent=json_indent) | ||
| return cpu_info | ||
| def disks(json: bool = False) -> Union[dict, str]: | ||
| def disks(json: bool = False, json_indent: int = 4) -> Union[dict, str]: | ||
| ''' | ||
@@ -77,2 +81,6 @@ - gets disk usage on mapped drives on Windows (drives with a letter like C:) | ||
| json_indent: int | ||
| - indentation level for JSON output | ||
| - default: 4 | ||
| Returns | ||
@@ -109,7 +117,7 @@ ------- | ||
| if json: | ||
| return dumps(disks) | ||
| return dumps(disks, indent=json_indent) | ||
| return disks | ||
| def full(now: float = 0, json: bool = False) -> Union[dict, str]: | ||
| def full(now: float = 0, json: bool = False, json_indent: int = 4) -> Union[dict, str]: | ||
| ''' | ||
@@ -130,2 +138,6 @@ - gets all system info programmed into this module | ||
| json_indent: int | ||
| - indentation level for JSON output | ||
| - default: 4 | ||
| Returns | ||
@@ -148,7 +160,7 @@ ------- | ||
| if json: | ||
| return dumps(mydict) | ||
| return dumps(mydict, indent=json_indent) | ||
| return mydict | ||
| def ram(json: bool = False) -> Union[dict, str]: | ||
| def ram(json: bool = False, json_indent: int = 4) -> Union[dict, str]: | ||
| ''' | ||
@@ -164,2 +176,6 @@ - gets the RAM usage data | ||
| json_indent: int | ||
| - indentation level for JSON output | ||
| - default: 4 | ||
| Returns | ||
@@ -187,7 +203,7 @@ ------- | ||
| if json: | ||
| return dumps(ram_info) | ||
| return dumps(ram_info, indent=json_indent) | ||
| return ram_info | ||
| def system(now: float = 0, json: bool = False) -> Union[dict, str]: | ||
| def system(now: float = 0, json: bool = False, json_indent: int = 4) -> Union[dict, str]: | ||
| ''' | ||
@@ -206,2 +222,6 @@ - gets various system info such as boot time | ||
| json_indent: int | ||
| - indentation level for JSON output | ||
| - default: 4 | ||
| Returns | ||
@@ -237,7 +257,7 @@ ------- | ||
| if json: | ||
| return dumps(system_info) | ||
| return dumps(system_info, indent=json_indent) | ||
| return system_info | ||
| def users(now: float = 0, json: bool = False) -> Union[dict, str]: | ||
| def users(now: float = 0, json: bool = False, json_indent: int = 4) -> Union[dict, str]: | ||
| ''' | ||
@@ -256,2 +276,6 @@ - gets a list of users currently logged in | ||
| json_indent: int | ||
| - indentation level for JSON output | ||
| - default: 4 | ||
| Returns | ||
@@ -285,3 +309,3 @@ ------- | ||
| if json: | ||
| return dumps(users) | ||
| return dumps(users, indent=json_indent) | ||
| return users |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
150177
0.53%1526
1.19%