mc5-api-client 1.0.13__py3-none-any.whl → 1.0.14__py3-none-any.whl
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.
- mc5_api_client/__init__.py +1 -1
- mc5_api_client/cli.py +1 -1
- {mc5_api_client-1.0.13.dist-info → mc5_api_client-1.0.14.dist-info}/METADATA +12 -7
- {mc5_api_client-1.0.13.dist-info → mc5_api_client-1.0.14.dist-info}/RECORD +8 -8
- {mc5_api_client-1.0.13.dist-info → mc5_api_client-1.0.14.dist-info}/WHEEL +0 -0
- {mc5_api_client-1.0.13.dist-info → mc5_api_client-1.0.14.dist-info}/entry_points.txt +0 -0
- {mc5_api_client-1.0.13.dist-info → mc5_api_client-1.0.14.dist-info}/licenses/LICENSE +0 -0
- {mc5_api_client-1.0.13.dist-info → mc5_api_client-1.0.14.dist-info}/top_level.txt +0 -0
mc5_api_client/__init__.py
CHANGED
mc5_api_client/cli.py
CHANGED
|
@@ -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.
|
|
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.
|
|
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('
|
|
193
|
-
|
|
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.
|
|
418
|
+
pip install mc5_api_client==1.0.14
|
|
414
419
|
```
|
|
415
420
|
|
|
416
|
-
✅ **Published and Available!** The MC5 API Client v1.0.
|
|
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
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
mc5_api_client/__init__.py,sha256=
|
|
1
|
+
mc5_api_client/__init__.py,sha256=Bizlq_XQ4w9JUOXNCm-ozxPWzi8OAbcW4tkzPkjJAms,3296
|
|
2
2
|
mc5_api_client/admin_client.py,sha256=527aavolxVhY2M5ceFxVbbE5YTczU9Z86Fdt1UzdRZM,15220
|
|
3
3
|
mc5_api_client/auth.py,sha256=z8vmyQIHUdAzk0pUyKCesT8gTv4jboLIFGBxAu1v_-8,13396
|
|
4
|
-
mc5_api_client/cli.py,sha256=
|
|
4
|
+
mc5_api_client/cli.py,sha256=Kb44ZTM-wAPehmWCY9owXzHQ3B3Mcz8_v4-UUDO9yXM,17255
|
|
5
5
|
mc5_api_client/client.py,sha256=1UYaX8UVl_edf-uRh-H_ja5BUWz1ytw52BdOKLuZq0I,80571
|
|
6
6
|
mc5_api_client/exceptions.py,sha256=o7od4GrEIlgq6xSNUjZdh74xoDTytF3PLcMq5ewRiJw,2683
|
|
7
7
|
mc5_api_client/help.py,sha256=sqf3R6VHQuSYLvAMzh8nXAgCX5URsvXydvw8P0ATabg,7246
|
|
8
8
|
mc5_api_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
9
|
mc5_api_client/simple_client.py,sha256=1sVytpSU-TMyDBOe1y_3Y6KjIc8tsZGWdI1eHIUmhmc,23747
|
|
10
|
-
mc5_api_client-1.0.
|
|
11
|
-
mc5_api_client-1.0.
|
|
12
|
-
mc5_api_client-1.0.
|
|
13
|
-
mc5_api_client-1.0.
|
|
14
|
-
mc5_api_client-1.0.
|
|
15
|
-
mc5_api_client-1.0.
|
|
10
|
+
mc5_api_client-1.0.14.dist-info/licenses/LICENSE,sha256=M0UBQ4B3pB9XcV54_jhVP681xyauF8GB6YK_rKmuXzk,1064
|
|
11
|
+
mc5_api_client-1.0.14.dist-info/METADATA,sha256=t_Jm0N8fZd3TPVWeaAG2MDKvyeVtMhJl0uvaSNuNmtI,55436
|
|
12
|
+
mc5_api_client-1.0.14.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
13
|
+
mc5_api_client-1.0.14.dist-info/entry_points.txt,sha256=2kruOpleFYK3Jl1MoQwGyqCd-Pj4kQWngXmIjnXx_gE,48
|
|
14
|
+
mc5_api_client-1.0.14.dist-info/top_level.txt,sha256=eYJe4ue9j1ig_jFY5Z05mDqpizUEV7TYpk5lBXVd4kA,15
|
|
15
|
+
mc5_api_client-1.0.14.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|