mc5-api-client 1.0.11__py3-none-any.whl → 1.0.12__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.
@@ -15,7 +15,7 @@ messaging, and more.
15
15
 
16
16
  from typing import Optional, Dict, Any
17
17
 
18
- __version__ = "1.0.11"
18
+ __version__ = "1.0.12"
19
19
  __author__ = "Chizoba"
20
20
  __email__ = "chizoba2026@hotmail.com"
21
21
  __license__ = "MIT"
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.11", "cyan")
450
+ self._print("MC5 API Client v1.0.12", "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.11
3
+ Version: 1.0.12
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
@@ -108,9 +108,9 @@ Think of this as your remote control for Modern Combat 5! Here's what you can do
108
108
  - ⚡ **One-Liner Functions**: Quick search and kick operations!
109
109
  - 🎯 **User-Friendly**: Designed for beginners and clan leaders!
110
110
  - 🚀 **NEW: Admin Capabilities**: Use admin credentials for enhanced squad management!
111
- - ⭐ **NEW: Squad Rating**: Add 5200+ rating to your squad with admin privileges!
112
111
  - 🎯 **NEW: Player Score Updates**: Update any player's score, XP, and kill signatures!
113
112
  - 🛡️ **NEW: Built-in Help System**: Comprehensive help commands and examples!
113
+ - 🔐 **NEW: Encrypted Token Support**: Generate and encrypt tokens for additional security!
114
114
 
115
115
  ## 🚀 Installation
116
116
 
@@ -122,14 +122,14 @@ pip install mc5_api_client==1.0.8
122
122
 
123
123
  ### ✅ **Major Enhancements Completed!**
124
124
 
125
- **🚀 Advanced Automation Features (NEW in v1.0.8):**
125
+ **🚀 Advanced Automation Features (NEW in v1.0.8+):**
126
126
  - ✅ **AdminMC5Client**: Enhanced client with admin privileges
127
- - ✅ **Squad Rating Management**: Add 5200+ rating to any squad
128
- - ✅ **Player Score Updates**: Update any player's score, XP, and kill signatures
127
+ - ✅ **Player Score Management**: Update individual player scores, XP, and kill signatures
129
128
  - ✅ **Batch Processing**: Search multiple players with loops and conditionals
130
129
  - ✅ **Real-time Monitoring**: Continuous activity tracking with while loops
131
130
  - ✅ **Smart Clan Cleanup**: Intelligent member management with safety features
132
131
  - ✅ **Built-in Help System**: Comprehensive help commands and examples
132
+ - ✅ **Encrypted Token Support**: Generate and encrypt tokens for additional security
133
133
  - ✅ **Production Ready**: Thoroughly tested and verified for production use
134
134
 
135
135
  **🎮 Revolutionary Simple Interface (from v1.0.7):**
@@ -174,12 +174,11 @@ pip install mc5_api_client
174
174
 
175
175
  New in v1.0.8! Powerful admin capabilities for enhanced squad management:
176
176
 
177
- ### **⭐ Add 5200+ Rating to Your Squad**
178
-
177
+ ### **⭐ Update Player Scores (Admin Only):**
179
178
  ```python
180
179
  from mc5_api_client import quick_update_player_score
181
180
 
182
- # Add 5200 rating to your squad by updating your player score
181
+ # Update any player's score, XP, and kill signature
183
182
  result = quick_update_player_score(
184
183
  target_user_id="anonymous:d2luOF92M18xNzcwMDUxNjkwXy7H33aeTVB4YZictyDq48c=",
185
184
  score=5200,
@@ -188,48 +187,47 @@ result = quick_update_player_score(
188
187
  killsig_id="default_killsig_80"
189
188
  )
190
189
 
191
- print(f"✅ Success! Score updated: {result['score_updated']}")
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')}")
192
194
  ```
193
195
 
194
- ### **🛡️ Admin Client Usage**
195
-
196
+ ### **� Admin Client Usage:**
196
197
  ```python
197
198
  from mc5_api_client import create_admin_client
198
199
 
199
- # Create admin client with enhanced privileges
200
+ # Create admin client with elevated privileges
200
201
  client = create_admin_client()
201
202
  client.connect()
202
203
 
203
- # Update any player's score
204
+ # Update player information
204
205
  result = client.update_player_score(
205
206
  target_user_id="player_user_id",
206
207
  score=10000,
207
- xp=5000000
208
+ xp=5000000,
209
+ killsig_color="16777215",
210
+ killsig_id="default_killsig_42"
208
211
  )
209
212
 
210
- # Get squad members
213
+ # Get squad members (if you have access)
211
214
  members = client.get_squad_members()
212
- print(f"Squad has {len(members)} members")
215
+ print(f"Found {len(members)} squad members")
216
+
217
+ # Kick members (if you have permissions)
218
+ # client.kick_member("member_user_id", "Reason for kick")
213
219
 
214
220
  client.close()
215
221
  ```
216
222
 
217
- ### **🎯 Quick Squad Rating**
223
+ ### **⚠️ Important Admin Limitations:**
224
+ - ✅ **Can Update**: Individual player scores, XP, kill signatures
225
+ - ✅ **Can Kick**: Squad members (with proper permissions)
226
+ - ❌ **Cannot Edit**: Squad rating directly (requires squad ownership)
227
+ - ❌ **Cannot Modify**: Squad settings (requires squad ownership)
218
228
 
219
- ```python
220
- from mc5_api_client import quick_add_squad_rating
221
-
222
- # Add rating using admin credentials
223
- result = quick_add_squad_rating(
224
- username="game:mc5_system",
225
- password="admin",
226
- rating=5200,
227
- use_admin=True
228
- )
229
-
230
- if 'error' not in result:
231
- print("✅ 5200 rating added to squad!")
232
- ```
229
+ ### **🔧 How It Actually Works:**
230
+ Admin privileges allow you to modify individual player data within a squad, which indirectly affects the squad's overall rating through the sum of member scores, but you cannot directly set the squad's rating value.
233
231
 
234
232
  ## 🎮 **Simple Usage for Non-Developers**
235
233
 
@@ -400,8 +398,7 @@ client.connect()
400
398
  player = client.search_player('f55f')
401
399
 
402
400
  # 🔹 Admin Operations
403
- quick_update_player_score('user_id', 5200)
404
- quick_add_squad_rating('admin', 'admin', 5200, use_admin=True)
401
+ quick_update_player_score('user_id', 5200, xp=2037745)
405
402
 
406
403
  # 🔹 Error Handling
407
404
  try: except AuthenticationError:
@@ -413,10 +410,10 @@ try: except MC5APIError:
413
410
  ### **🚀 Install from PyPI (Recommended)**
414
411
 
415
412
  ```bash
416
- pip install mc5_api_client==1.0.10
413
+ pip install mc5_api_client==1.0.12
417
414
  ```
418
415
 
419
- ✅ **Published and Available!** The MC5 API Client v1.0.10 is now live on PyPI with advanced automation features and admin capabilities!
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!
420
417
 
421
418
  ### **� Install from Local Package**
422
419
 
@@ -1,15 +1,15 @@
1
- mc5_api_client/__init__.py,sha256=vJQmJ58TMBZ6Qeko7J9mQJht_71bwc7obVQtNrvkFQY,3296
1
+ mc5_api_client/__init__.py,sha256=Fez2LJHEpim5fUuHFiWa7IdM_nENxWAns6_pVL_k2m8,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=D5RTwRQJz86xf8Ocqj0Zr4O3BjPIj6_kbChEeF-ha5g,17255
4
+ mc5_api_client/cli.py,sha256=W7d_B8P_7qvvnAe-P3PQ-O6nW0ca7ADV3e9GLgEVylM,17255
5
5
  mc5_api_client/client.py,sha256=q5PkdpTXjWCXdLFiK1-zqa7fThJGE4Z99A3ccMfwJIY,79239
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=31JI2rURHIXKcnDXQYJNpr-gypweO56ANFdhD-Z4Ft0,20241
10
- mc5_api_client-1.0.11.dist-info/licenses/LICENSE,sha256=M0UBQ4B3pB9XcV54_jhVP681xyauF8GB6YK_rKmuXzk,1064
11
- mc5_api_client-1.0.11.dist-info/METADATA,sha256=q6squlB7kiIgfioZBPKfPWniTFXoV8I-2rTKgZQyX6k,54718
12
- mc5_api_client-1.0.11.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
13
- mc5_api_client-1.0.11.dist-info/entry_points.txt,sha256=2kruOpleFYK3Jl1MoQwGyqCd-Pj4kQWngXmIjnXx_gE,48
14
- mc5_api_client-1.0.11.dist-info/top_level.txt,sha256=eYJe4ue9j1ig_jFY5Z05mDqpizUEV7TYpk5lBXVd4kA,15
15
- mc5_api_client-1.0.11.dist-info/RECORD,,
10
+ mc5_api_client-1.0.12.dist-info/licenses/LICENSE,sha256=M0UBQ4B3pB9XcV54_jhVP681xyauF8GB6YK_rKmuXzk,1064
11
+ mc5_api_client-1.0.12.dist-info/METADATA,sha256=pG3KizNZF1p2VlhGUn9a0k1E0-TrpSrrgSMsjmJ22po,55250
12
+ mc5_api_client-1.0.12.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
13
+ mc5_api_client-1.0.12.dist-info/entry_points.txt,sha256=2kruOpleFYK3Jl1MoQwGyqCd-Pj4kQWngXmIjnXx_gE,48
14
+ mc5_api_client-1.0.12.dist-info/top_level.txt,sha256=eYJe4ue9j1ig_jFY5Z05mDqpizUEV7TYpk5lBXVd4kA,15
15
+ mc5_api_client-1.0.12.dist-info/RECORD,,