mc5-api-client 1.0.13__tar.gz → 1.0.14__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 (47) hide show
  1. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/PKG-INFO +12 -7
  2. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/README.md +11 -6
  3. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/pyproject.toml +1 -1
  4. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/src/mc5_api_client/__init__.py +1 -1
  5. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/src/mc5_api_client/cli.py +1 -1
  6. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/src/mc5_api_client.egg-info/PKG-INFO +12 -7
  7. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/.gitignore +0 -0
  8. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/CHANGELOG.md +0 -0
  9. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/LICENSE +0 -0
  10. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/MANIFEST.in +0 -0
  11. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/examples/admin_squad_management.py +0 -0
  12. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/examples/advanced_automation.py +0 -0
  13. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/examples/advanced_features.py +0 -0
  14. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/examples/basic_usage.py +0 -0
  15. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/examples/clan_management.py +0 -0
  16. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/examples/clan_management_complete.py +0 -0
  17. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/examples/events_and_tasks.py +0 -0
  18. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/examples/help_system.py +0 -0
  19. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/examples/message_management.py +0 -0
  20. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/examples/player_stats.py +0 -0
  21. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/examples/private_messaging.py +0 -0
  22. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/examples/quick_help.py +0 -0
  23. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/examples/simple_usage.py +0 -0
  24. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/examples/squad_management.py +0 -0
  25. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/examples/squad_wall_management.py +0 -0
  26. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/pytest.ini +0 -0
  27. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/requirements-dev.txt +0 -0
  28. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/requirements.txt +0 -0
  29. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/setup.cfg +0 -0
  30. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/setup.py +0 -0
  31. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/src/mc5_api_client/admin_client.py +0 -0
  32. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/src/mc5_api_client/auth.py +0 -0
  33. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/src/mc5_api_client/client.py +0 -0
  34. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/src/mc5_api_client/exceptions.py +0 -0
  35. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/src/mc5_api_client/help.py +0 -0
  36. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/src/mc5_api_client/py.typed +0 -0
  37. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/src/mc5_api_client/simple_client.py +0 -0
  38. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/src/mc5_api_client.egg-info/SOURCES.txt +0 -0
  39. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/src/mc5_api_client.egg-info/dependency_links.txt +0 -0
  40. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/src/mc5_api_client.egg-info/entry_points.txt +0 -0
  41. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/src/mc5_api_client.egg-info/not-zip-safe +0 -0
  42. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/src/mc5_api_client.egg-info/requires.txt +0 -0
  43. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/src/mc5_api_client.egg-info/top_level.txt +0 -0
  44. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/tests/__init__.py +0 -0
  45. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/tests/test_auth.py +0 -0
  46. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/tests/test_cli.py +0 -0
  47. {mc5_api_client-1.0.13 → mc5_api_client-1.0.14}/tests/test_client.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mc5_api_client
3
- Version: 1.0.13
3
+ Version: 1.0.14
4
4
  Summary: A comprehensive Python library for interacting with the Modern Combat 5 API
5
5
  Home-page: https://pypi.org/project/mc5-api-client/
6
6
  Author: Chizoba
@@ -188,9 +188,12 @@ result = quick_update_player_score(
188
188
  )
189
189
 
190
190
  if result.get('success'):
191
- print("✅ Player score updated successfully!")
192
- print(f"New score: {result.get('score')}")
193
- print(f"New XP: {result.get('xp')}")
191
+ print(f"✅ Player score updated successfully!")
192
+ print(f"New score: {result.get('score_updated')}")
193
+ if result.get('xp_updated'):
194
+ print(f"New XP: {result.get('xp_updated')}")
195
+ else:
196
+ print(f"❌ Error: {result.get('error', 'Unknown error')}")
194
197
  ```
195
198
 
196
199
  ### **� Admin Client Usage:**
@@ -398,7 +401,9 @@ client.connect()
398
401
  player = client.search_player('f55f')
399
402
 
400
403
  # 🔹 Admin Operations
401
- quick_update_player_score('user_id', 5200, xp=2037745)
404
+ result = quick_update_player_score('user_id', 5200, xp=2037745)
405
+ if result.get('success'):
406
+ print(f"Score updated: {result.get('score_updated')}")
402
407
 
403
408
  # 🔹 Error Handling
404
409
  try: except AuthenticationError:
@@ -410,10 +415,10 @@ try: except MC5APIError:
410
415
  ### **🚀 Install from PyPI (Recommended)**
411
416
 
412
417
  ```bash
413
- pip install mc5_api_client==1.0.12
418
+ pip install mc5_api_client==1.0.14
414
419
  ```
415
420
 
416
- ✅ **Published and Available!** The MC5 API Client v1.0.12 is now live on PyPI with accurate admin capabilities, encrypted token support, and corrected documentation!
421
+ ✅ **Published and Available!** The MC5 API Client v1.0.14 is now live on PyPI with corrected documentation and working examples!
417
422
 
418
423
  ### **� Install from Local Package**
419
424
 
@@ -110,9 +110,12 @@ result = quick_update_player_score(
110
110
  )
111
111
 
112
112
  if result.get('success'):
113
- print("✅ Player score updated successfully!")
114
- print(f"New score: {result.get('score')}")
115
- print(f"New XP: {result.get('xp')}")
113
+ print(f"✅ Player score updated successfully!")
114
+ print(f"New score: {result.get('score_updated')}")
115
+ if result.get('xp_updated'):
116
+ print(f"New XP: {result.get('xp_updated')}")
117
+ else:
118
+ print(f"❌ Error: {result.get('error', 'Unknown error')}")
116
119
  ```
117
120
 
118
121
  ### **� Admin Client Usage:**
@@ -320,7 +323,9 @@ client.connect()
320
323
  player = client.search_player('f55f')
321
324
 
322
325
  # 🔹 Admin Operations
323
- quick_update_player_score('user_id', 5200, xp=2037745)
326
+ result = quick_update_player_score('user_id', 5200, xp=2037745)
327
+ if result.get('success'):
328
+ print(f"Score updated: {result.get('score_updated')}")
324
329
 
325
330
  # 🔹 Error Handling
326
331
  try: except AuthenticationError:
@@ -332,10 +337,10 @@ try: except MC5APIError:
332
337
  ### **🚀 Install from PyPI (Recommended)**
333
338
 
334
339
  ```bash
335
- pip install mc5_api_client==1.0.12
340
+ pip install mc5_api_client==1.0.14
336
341
  ```
337
342
 
338
- ✅ **Published and Available!** The MC5 API Client v1.0.12 is now live on PyPI with accurate admin capabilities, encrypted token support, and corrected documentation!
343
+ ✅ **Published and Available!** The MC5 API Client v1.0.14 is now live on PyPI with corrected documentation and working examples!
339
344
 
340
345
  ### **� Install from Local Package**
341
346
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "mc5_api_client"
7
- version = "1.0.13"
7
+ version = "1.0.14"
8
8
  description = "A comprehensive Python library for interacting with the Modern Combat 5 API"
9
9
  readme = "README.md"
10
10
  license = {file = "LICENSE"}
@@ -15,7 +15,7 @@ messaging, and more.
15
15
 
16
16
  from typing import Optional, Dict, Any
17
17
 
18
- __version__ = "1.0.13"
18
+ __version__ = "1.0.14"
19
19
  __author__ = "Chizoba"
20
20
  __email__ = "chizoba2026@hotmail.com"
21
21
  __license__ = "MIT"
@@ -447,7 +447,7 @@ class MC5CLI:
447
447
 
448
448
  def _print_version(self):
449
449
  """Print version information."""
450
- self._print("MC5 API Client v1.0.13", "cyan")
450
+ self._print("MC5 API Client v1.0.14", "cyan")
451
451
  self._print("The ultimate Modern Combat 5 API library", "green")
452
452
  self._print("Author: Chizoba", "blue")
453
453
  self._print("Email: chizoba2026@hotmail.com", "blue")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mc5_api_client
3
- Version: 1.0.13
3
+ Version: 1.0.14
4
4
  Summary: A comprehensive Python library for interacting with the Modern Combat 5 API
5
5
  Home-page: https://pypi.org/project/mc5-api-client/
6
6
  Author: Chizoba
@@ -188,9 +188,12 @@ result = quick_update_player_score(
188
188
  )
189
189
 
190
190
  if result.get('success'):
191
- print("✅ Player score updated successfully!")
192
- print(f"New score: {result.get('score')}")
193
- print(f"New XP: {result.get('xp')}")
191
+ print(f"✅ Player score updated successfully!")
192
+ print(f"New score: {result.get('score_updated')}")
193
+ if result.get('xp_updated'):
194
+ print(f"New XP: {result.get('xp_updated')}")
195
+ else:
196
+ print(f"❌ Error: {result.get('error', 'Unknown error')}")
194
197
  ```
195
198
 
196
199
  ### **� Admin Client Usage:**
@@ -398,7 +401,9 @@ client.connect()
398
401
  player = client.search_player('f55f')
399
402
 
400
403
  # 🔹 Admin Operations
401
- quick_update_player_score('user_id', 5200, xp=2037745)
404
+ result = quick_update_player_score('user_id', 5200, xp=2037745)
405
+ if result.get('success'):
406
+ print(f"Score updated: {result.get('score_updated')}")
402
407
 
403
408
  # 🔹 Error Handling
404
409
  try: except AuthenticationError:
@@ -410,10 +415,10 @@ try: except MC5APIError:
410
415
  ### **🚀 Install from PyPI (Recommended)**
411
416
 
412
417
  ```bash
413
- pip install mc5_api_client==1.0.12
418
+ pip install mc5_api_client==1.0.14
414
419
  ```
415
420
 
416
- ✅ **Published and Available!** The MC5 API Client v1.0.12 is now live on PyPI with accurate admin capabilities, encrypted token support, and corrected documentation!
421
+ ✅ **Published and Available!** The MC5 API Client v1.0.14 is now live on PyPI with corrected documentation and working examples!
417
422
 
418
423
  ### **� Install from Local Package**
419
424
 
File without changes