centralcli 7.3.0__tar.gz → 7.3.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {centralcli-7.3.0 → centralcli-7.3.2}/PKG-INFO +1 -1
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/constants.py +2 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/utils.py +2 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/pyproject.toml +1 -1
- {centralcli-7.3.0 → centralcli-7.3.2}/LICENSE +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/README.md +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/__init__.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/boilerplate/README.md +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/boilerplate/_cnx_allcalls.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/boilerplate/allcalls.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/caas.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/cache.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/central.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/cleaner.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/cli.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/cliadd.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/cliassign.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/clibatch.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/clicaas.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/clicancel.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/clicheck.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/cliclone.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/clicommon.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/clidel.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/clidelfirmware.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/cliexport.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/clikick.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/clioptions.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/clirefresh.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/clirename.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/cliset.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/clisetfirmware.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/clishow.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/clishowaudit.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/clishowbandwidth.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/clishowbranch.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/clishowcloudauth.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/clishowfirmware.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/clishowmpsk.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/clishowospf.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/clishowoverlay.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/clishowtshoot.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/clishowwids.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/clitest.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/clitshoot.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/cliunassign.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/cliupdate.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/cliupgrade.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/config.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/exceptions.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/logger.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/models.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/objects.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/render.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/response.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/setup.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/static/favicon.ico +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/strings.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/typedefs.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/vendored/csvlexer/__init__.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/vendored/csvlexer/csv.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/vscodeargs.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/wh2snow.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/wh_proxy.py +0 -0
- {centralcli-7.3.0 → centralcli-7.3.2}/centralcli/wh_proxy_service.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: centralcli
|
|
3
|
-
Version: 7.3.
|
|
3
|
+
Version: 7.3.2
|
|
4
4
|
Summary: A CLI for interacting with Aruba Central (Cloud Management Platform). Facilitates bulk imports, exports, reporting. A handy tool if you have devices managed by Aruba Central.
|
|
5
5
|
Home-page: https://github.com/Pack3tL0ss/central-api-cli
|
|
6
6
|
License: MIT
|
|
@@ -908,6 +908,8 @@ class Utils:
|
|
|
908
908
|
|
|
909
909
|
@staticmethod
|
|
910
910
|
def older_than(ts: int | float | datetime, time_frame: int, unit: Literal["days", "hours", "minutes", "seconds", "weeks", "months"] = "days", tz: str = "UTC") -> bool:
|
|
911
|
+
if str(ts).isdigit() and len(str(int(ts))) > 10: # if ts in milliseconds convert to seconds
|
|
912
|
+
ts = ts / 1000
|
|
911
913
|
dt = ts if isinstance(ts, datetime) else pendulum.from_timestamp(ts, tz=tz)
|
|
912
914
|
diff = pendulum.now(tz=tz) - dt
|
|
913
915
|
return getattr(diff, f'in_{unit}')() > time_frame
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "centralcli"
|
|
3
|
-
version = "7.3.
|
|
3
|
+
version = "7.3.2"
|
|
4
4
|
description = "A CLI for interacting with Aruba Central (Cloud Management Platform). Facilitates bulk imports, exports, reporting. A handy tool if you have devices managed by Aruba Central."
|
|
5
5
|
license = "MIT"
|
|
6
6
|
authors = ["Wade Wells (Pack3tL0ss) <wade@consolepi.org>"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|