mcm-cli 1.7.2__tar.gz → 1.7.4__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.
Files changed (38) hide show
  1. {mcm_cli-1.7.2/mcm_cli.egg-info → mcm_cli-1.7.4}/PKG-INFO +1 -1
  2. {mcm_cli-1.7.2 → mcm_cli-1.7.4/mcm_cli.egg-info}/PKG-INFO +1 -1
  3. {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/__main__.py +1 -1
  4. {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/command/wallet.py +13 -10
  5. {mcm_cli-1.7.2 → mcm_cli-1.7.4}/setup.py +1 -1
  6. {mcm_cli-1.7.2 → mcm_cli-1.7.4}/LICENSE +0 -0
  7. {mcm_cli-1.7.2 → mcm_cli-1.7.4}/NOTICE +0 -0
  8. {mcm_cli-1.7.2 → mcm_cli-1.7.4}/README.md +0 -0
  9. {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcm_cli.egg-info/SOURCES.txt +0 -0
  10. {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcm_cli.egg-info/dependency_links.txt +0 -0
  11. {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcm_cli.egg-info/entry_points.txt +0 -0
  12. {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcm_cli.egg-info/requires.txt +0 -0
  13. {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcm_cli.egg-info/top_level.txt +0 -0
  14. {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/__init__.py +0 -0
  15. {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/command/account.py +0 -0
  16. {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/command/admin.py +0 -0
  17. {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/command/auth.py +0 -0
  18. {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/command/campaign.py +0 -0
  19. {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/command/config.py +0 -0
  20. {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/command/decision.py +0 -0
  21. {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/command/report.py +0 -0
  22. {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/data/account.py +0 -0
  23. {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/data/account_user.py +0 -0
  24. {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/data/campaign.py +0 -0
  25. {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/data/decision.py +0 -0
  26. {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/data/error.py +0 -0
  27. {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/data/item.py +0 -0
  28. {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/data/item_blocking_result.py +0 -0
  29. {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/data/platform_user.py +0 -0
  30. {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/data/report.py +0 -0
  31. {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/data/seller.py +0 -0
  32. {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/data/token.py +0 -0
  33. {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/data/user_join_request.py +0 -0
  34. {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/data/wallet.py +0 -0
  35. {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/logging.py +0 -0
  36. {mcm_cli-1.7.2 → mcm_cli-1.7.4}/mcmcli/requests.py +0 -0
  37. {mcm_cli-1.7.2 → mcm_cli-1.7.4}/setup.cfg +0 -0
  38. {mcm_cli-1.7.2 → mcm_cli-1.7.4}/tests/test_config.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mcm-cli
3
- Version: 1.7.2
3
+ Version: 1.7.4
4
4
  Summary: A command-line interface for Moloco Commerde Media
5
5
  Home-page: https://github.com/moloco-mcm/mcm-cli
6
6
  Author: Moloco MCM Team
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: mcm-cli
3
- Version: 1.7.2
3
+ Version: 1.7.4
4
4
  Summary: A command-line interface for Moloco Commerde Media
5
5
  Home-page: https://github.com/moloco-mcm/mcm-cli
6
6
  Author: Moloco MCM Team
@@ -37,7 +37,7 @@ def version():
37
37
  """
38
38
  Show the tool version
39
39
  """
40
- typer.echo(f"Version: mcm-cli v1.7.2")
40
+ typer.echo(f"Version: mcm-cli v1.7.4")
41
41
 
42
42
  app.add_typer(mcmcli.command.account.app, name="account", help="Ad account management")
43
43
  app.add_typer(mcmcli.command.admin.app, name="admin", help="Platform administration")
@@ -12,11 +12,14 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
  from mcmcli.command.auth import AuthCommand, AuthHeaderName, AuthHeaderValue
15
- from datetime import datetime, UTC
15
+ from datetime import datetime, timezone
16
16
  from enum import Enum
17
17
  from mcmcli.data.error import Error
18
18
  from mcmcli.data.wallet import Wallet, WalletsWrapper, PlatformWalletsWrapper
19
19
  from mcmcli.requests import CurlString, api_request
20
+ from typing import Optional
21
+
22
+ UTC = timezone.utc
20
23
 
21
24
  import json
22
25
  import mcmcli.command.auth
@@ -252,9 +255,9 @@ class WalletCommand:
252
255
  self,
253
256
  to_curl: bool,
254
257
  ) -> tuple[
255
- None | CurlString,
256
- None | Error,
257
- None | dict[str, WalletsWrapper]
258
+ Optional[CurlString],
259
+ Optional[Error],
260
+ Optional[dict[str, WalletsWrapper]]
258
261
  ]:
259
262
  _api_url = f"{self.api_base_url}/wallets-bulk/read"
260
263
 
@@ -273,9 +276,9 @@ class WalletCommand:
273
276
  account_id: str,
274
277
  to_curl: bool,
275
278
  ) -> tuple[
276
- None | CurlString,
277
- None | Error,
278
- None | Wallet,
279
+ Optional[CurlString],
280
+ Optional[Error],
281
+ Optional[Wallet],
279
282
  ]:
280
283
  _api_url = f"{self.api_base_url}/ad-accounts/{account_id}/wallets"
281
284
 
@@ -301,9 +304,9 @@ class WalletCommand:
301
304
  fund_amount: float,
302
305
  to_curl: bool,
303
306
  ) -> tuple[
304
- None | CurlString,
305
- None | Error,
306
- None | Wallet,
307
+ Optional[CurlString],
308
+ Optional[Error],
309
+ Optional[Wallet],
307
310
  ]:
308
311
  if fund_amount <= 0:
309
312
  return None, Error(code=0, message="The fund amount should be greater than zero."), None
@@ -18,7 +18,7 @@ from setuptools import setup, find_packages
18
18
 
19
19
  setup(
20
20
  name='mcm-cli',
21
- version='1.7.2',
21
+ version='1.7.4',
22
22
  description='A command-line interface for Moloco Commerde Media',
23
23
  long_description=open('README.md').read(),
24
24
  long_description_content_type='text/markdown',
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