python-terminusgps 1.4.0__tar.gz → 1.4.3__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.
- {python_terminusgps-1.4.0 → python_terminusgps-1.4.3}/PKG-INFO +1 -1
- {python_terminusgps-1.4.0 → python_terminusgps-1.4.3}/pyproject.toml +1 -1
- python_terminusgps-1.4.3/terminusgps/wialon/items/account.py +15 -0
- python_terminusgps-1.4.0/terminusgps/wialon/items/account.py +0 -25
- {python_terminusgps-1.4.0 → python_terminusgps-1.4.3}/.gitignore +0 -0
- {python_terminusgps-1.4.0 → python_terminusgps-1.4.3}/COPYING +0 -0
- {python_terminusgps-1.4.0 → python_terminusgps-1.4.3}/README.md +0 -0
- {python_terminusgps-1.4.0 → python_terminusgps-1.4.3}/requirements.txt +0 -0
- {python_terminusgps-1.4.0 → python_terminusgps-1.4.3}/terminusgps/__init__.py +0 -0
- {python_terminusgps-1.4.0 → python_terminusgps-1.4.3}/terminusgps/authorizenet/__init__.py +0 -0
- {python_terminusgps-1.4.0 → python_terminusgps-1.4.3}/terminusgps/authorizenet/auth.py +0 -0
- {python_terminusgps-1.4.0 → python_terminusgps-1.4.3}/terminusgps/aws/__init__.py +0 -0
- {python_terminusgps-1.4.0 → python_terminusgps-1.4.3}/terminusgps/aws/secrets.py +0 -0
- {python_terminusgps-1.4.0 → python_terminusgps-1.4.3}/terminusgps/wialon/__init__.py +0 -0
- {python_terminusgps-1.4.0 → python_terminusgps-1.4.3}/terminusgps/wialon/constants.py +0 -0
- {python_terminusgps-1.4.0 → python_terminusgps-1.4.3}/terminusgps/wialon/errors.py +0 -0
- {python_terminusgps-1.4.0 → python_terminusgps-1.4.3}/terminusgps/wialon/flags.py +0 -0
- {python_terminusgps-1.4.0 → python_terminusgps-1.4.3}/terminusgps/wialon/items/__init__.py +0 -0
- {python_terminusgps-1.4.0 → python_terminusgps-1.4.3}/terminusgps/wialon/items/base.py +0 -0
- {python_terminusgps-1.4.0 → python_terminusgps-1.4.3}/terminusgps/wialon/items/resource.py +0 -0
- {python_terminusgps-1.4.0 → python_terminusgps-1.4.3}/terminusgps/wialon/items/retranslator.py +0 -0
- {python_terminusgps-1.4.0 → python_terminusgps-1.4.3}/terminusgps/wialon/items/route.py +0 -0
- {python_terminusgps-1.4.0 → python_terminusgps-1.4.3}/terminusgps/wialon/items/unit.py +0 -0
- {python_terminusgps-1.4.0 → python_terminusgps-1.4.3}/terminusgps/wialon/items/unit_group.py +0 -0
- {python_terminusgps-1.4.0 → python_terminusgps-1.4.3}/terminusgps/wialon/items/user.py +0 -0
- {python_terminusgps-1.4.0 → python_terminusgps-1.4.3}/terminusgps/wialon/session.py +0 -0
- {python_terminusgps-1.4.0 → python_terminusgps-1.4.3}/terminusgps/wialon/utils.py +0 -0
- {python_terminusgps-1.4.0 → python_terminusgps-1.4.3}/uv.lock +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-terminusgps
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.3
|
|
4
4
|
Summary: Provides abstractions/utilities for working with Wialon API, Authorize.NET API, AWS API, and more.
|
|
5
5
|
Project-URL: Documentation, https://app.terminusgps.com/docs/apps/python-terminusgps/index.html
|
|
6
6
|
Project-URL: Repository, https://github.com/terminusgps/python-terminusgps
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "python-terminusgps"
|
|
3
|
-
version = "1.4.
|
|
3
|
+
version = "1.4.3"
|
|
4
4
|
description = "Provides abstractions/utilities for working with Wialon API, Authorize.NET API, AWS API, and more."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
authors = [ {name = "Blake Nall", email = "blake@terminusgps.com" } ]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from terminusgps.wialon.items.base import WialonBase
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class WialonAccount(WialonBase):
|
|
5
|
+
def create(self, **kwargs) -> int | None:
|
|
6
|
+
if not kwargs.get("resource_id"):
|
|
7
|
+
raise ValueError("'resource_id' is required for creation.")
|
|
8
|
+
|
|
9
|
+
self.session.wialon_api.account_create_account(
|
|
10
|
+
**{
|
|
11
|
+
"itemId": kwargs["resource_id"],
|
|
12
|
+
"plan": kwargs.get("plan", "terminusgps_ext_hist"),
|
|
13
|
+
}
|
|
14
|
+
)
|
|
15
|
+
return int(kwargs["resource_id"])
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
from terminusgps.wialon.items.base import WialonBase
|
|
2
|
-
from terminusgps.wialon.items import WialonResource, WialonUser
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
class WialonAccount(WialonBase):
|
|
6
|
-
def __init__(
|
|
7
|
-
self, billing_plan: str = "terminusgps_ext_hist", *args, **kwargs
|
|
8
|
-
) -> None:
|
|
9
|
-
super().__init__(*args, **kwargs)
|
|
10
|
-
self.billing_plan = billing_plan
|
|
11
|
-
|
|
12
|
-
def create(self, **kwargs) -> int | None:
|
|
13
|
-
if not kwargs.get("creator_id"):
|
|
14
|
-
raise ValueError("'creator_id' is required for creation.")
|
|
15
|
-
|
|
16
|
-
user = WialonUser(id=str(kwargs["creator_id"]), session=self.session)
|
|
17
|
-
resource = WialonResource(
|
|
18
|
-
creator_id=kwargs["creator_id"],
|
|
19
|
-
name=f"super_{user.name}",
|
|
20
|
-
session=self.session,
|
|
21
|
-
)
|
|
22
|
-
self.session.wialon_api.account_create_account(
|
|
23
|
-
**{"itemId": resource.id, "plan": kwargs.get("plan", self.billing_plan)}
|
|
24
|
-
)
|
|
25
|
-
return int(kwargs["resource_id"])
|
|
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
|
{python_terminusgps-1.4.0 → python_terminusgps-1.4.3}/terminusgps/wialon/items/retranslator.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_terminusgps-1.4.0 → python_terminusgps-1.4.3}/terminusgps/wialon/items/unit_group.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|