mc5-api-client 1.0.22__tar.gz → 1.0.23__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 (73) hide show
  1. {mc5_api_client-1.0.22/src/mc5_api_client.egg-info → mc5_api_client-1.0.23}/PKG-INFO +58 -28
  2. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/README.md +59 -29
  3. mc5_api_client-1.0.23/examples/squad_customization_quick.py +79 -0
  4. mc5_api_client-1.0.23/examples/squad_quick_start.py +94 -0
  5. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/pyproject.toml +1 -1
  6. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/setup.py +1 -1
  7. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/src/mc5_api_client/__init__.py +10 -1
  8. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/src/mc5_api_client/client.py +155 -0
  9. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23/src/mc5_api_client.egg-info}/PKG-INFO +58 -28
  10. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/src/mc5_api_client.egg-info/SOURCES.txt +2 -0
  11. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/.gitignore +0 -0
  12. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/LICENSE +0 -0
  13. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/MANIFEST.in +0 -0
  14. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/examples/admin_squad_management.py +0 -0
  15. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/examples/admin_tools.py +0 -0
  16. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/examples/advanced_automation.py +0 -0
  17. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/examples/advanced_features.py +0 -0
  18. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/examples/authentication_example.py +0 -0
  19. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/examples/automatic_squad_management.py +0 -0
  20. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/examples/basic_usage.py +0 -0
  21. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/examples/clan_management.py +0 -0
  22. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/examples/clan_management_complete.py +0 -0
  23. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/examples/complete_squad_customization.py +0 -0
  24. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/examples/device_id_example.py +0 -0
  25. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/examples/events_and_tasks.py +0 -0
  26. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/examples/everyday_mc5.py +0 -0
  27. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/examples/everyday_mc5_easy.py +0 -0
  28. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/examples/game_launch_example.py +0 -0
  29. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/examples/help_system.py +0 -0
  30. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/examples/message_management.py +0 -0
  31. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/examples/player_stats.py +0 -0
  32. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/examples/private_messaging.py +0 -0
  33. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/examples/quick_help.py +0 -0
  34. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/examples/quick_reference.py +0 -0
  35. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/examples/service_location_example.py +0 -0
  36. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/examples/simple_usage.py +0 -0
  37. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/examples/squad_management.py +0 -0
  38. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/examples/squad_wall_management.py +0 -0
  39. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/requirements.txt +0 -0
  40. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/setup.cfg +0 -0
  41. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/src/mc5_api_client/account.py +0 -0
  42. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/src/mc5_api_client/account_quick.py +0 -0
  43. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/src/mc5_api_client/admin_client.py +0 -0
  44. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/src/mc5_api_client/alerts.py +0 -0
  45. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/src/mc5_api_client/alerts_quick.py +0 -0
  46. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/src/mc5_api_client/auth.py +0 -0
  47. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/src/mc5_api_client/cli.py +0 -0
  48. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/src/mc5_api_client/debug.py +0 -0
  49. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/src/mc5_api_client/easy_mc5.py +0 -0
  50. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/src/mc5_api_client/exceptions.py +0 -0
  51. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/src/mc5_api_client/federation.py +0 -0
  52. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/src/mc5_api_client/federation_quick.py +0 -0
  53. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/src/mc5_api_client/help.py +0 -0
  54. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/src/mc5_api_client/pc_storage_client.py +0 -0
  55. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/src/mc5_api_client/pc_storage_quick.py +0 -0
  56. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/src/mc5_api_client/platform.py +0 -0
  57. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/src/mc5_api_client/py.typed +0 -0
  58. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/src/mc5_api_client/simple_client.py +0 -0
  59. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/src/mc5_api_client/squad_battle.py +0 -0
  60. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/src/mc5_api_client/squad_battle_quick.py +0 -0
  61. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/src/mc5_api_client/storage_admin.py +0 -0
  62. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/src/mc5_api_client/telemetry.py +0 -0
  63. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/src/mc5_api_client/transfer.py +0 -0
  64. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/src/mc5_api_client/transfer_quick.py +0 -0
  65. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/src/mc5_api_client.egg-info/dependency_links.txt +0 -0
  66. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/src/mc5_api_client.egg-info/entry_points.txt +0 -0
  67. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/src/mc5_api_client.egg-info/not-zip-safe +0 -0
  68. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/src/mc5_api_client.egg-info/requires.txt +0 -0
  69. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/src/mc5_api_client.egg-info/top_level.txt +0 -0
  70. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/tests/__init__.py +0 -0
  71. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/tests/test_auth.py +0 -0
  72. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/tests/test_cli.py +0 -0
  73. {mc5_api_client-1.0.22 → mc5_api_client-1.0.23}/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.22
3
+ Version: 1.0.23
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
@@ -409,38 +409,37 @@ from mc5_api_client import MC5Client
409
409
 
410
410
  client = MC5Client(username, password)
411
411
 
412
- # 🎯 Set squad to specific level (1-10)
413
- client.set_squad_level(8, "Level 8 Elite")
414
- # Automatically sets XP, rating, member limit, etc.
412
+ # 🚀 SUPER SIMPLE - One-line customizations!
413
+ client.quick_set_name("My Awesome Squad") # Change name
414
+ client.quick_set_level(5) # Set to Level 5
415
+ client.quick_set_colors("red", "white") # Red/White colors
416
+ client.quick_set_member_limit(50) # Set member limit
417
+ client.quick_set_currency(10000) # Set currency
415
418
 
416
- # 🎨 Apply color themes
417
- client.customize_squad_theme('fire', 'Fire Warriors') # Red/Orange theme
418
- client.customize_squad_theme('ice', 'Ice Legion') # Blue/Cyan theme
419
- client.customize_squad_theme('dark', 'Dark Knights') # Black/White theme
420
- client.customize_squad_theme('nature', 'Nature Guardians') # Green/Lime theme
419
+ # 🎯 QUICK SETUPS - Professional results in one line!
420
+ client.quick_setup_professional_squad("Elite Squad", level=8) # Professional squad
421
+ client.quick_setup_gaming_squad("Gaming Legends", "fire") # Gaming squad with theme
421
422
 
422
- # 🔧 Complete customization with validation
423
+ # 🎨 THEMES - Beautiful colors instantly
424
+ client.customize_squad_theme('fire') # Fire theme
425
+ client.customize_squad_theme('ice') # Ice theme
426
+ client.customize_squad_theme('dark') # Dark theme
427
+ client.customize_squad_theme('nature') # Nature theme
428
+
429
+ # ⭐ LEVEL SYSTEM - Automatic XP calculation
430
+ client.set_squad_level(10, "Max Level Squad") # Level 10 (max)
431
+ # Level 1: 1000 XP, Level 5: 5000 XP, Level 10: 10000 XP
432
+
433
+ # 🔧 COMPLETE CUSTOMIZATION - Full control with validation
423
434
  client.customize_squad_complete(
424
435
  name="452e55e84897+",
425
- description="Professional squad with active members!",
426
436
  rating=3573,
427
437
  score=5200,
428
438
  member_limit=300,
429
- membership="owner_approved",
430
- _logo="1",
431
- _logo_clr_prim=client.get_color_value("red"), # Red color
432
- _logo_clr_sec=client.get_color_value("white"), # White color
433
- _min_join_value=996699,
434
- _xp=client.calculate_xp_for_level(9), # Level 9 = 9000 XP
435
- _killsig_id="default_killsig_01",
436
- currency="10000",
437
- active_clan_label="true",
438
- active_clan_threshold="50"
439
+ _logo_clr_prim=client.get_color_value("red"),
440
+ _xp=client.calculate_xp_for_level(9),
441
+ currency="10000"
439
442
  )
440
-
441
- # 🎯 Helper functions
442
- xp = client.calculate_xp_for_level(5) # Returns 5000
443
- color = client.get_color_value('blue') # Returns '255'
444
443
  ```
445
444
 
446
445
  ### **📊 Squad Parameters You Can Customize:**
@@ -475,11 +474,36 @@ active_clan_label: "true"
475
474
  active_clan_threshold: "50"
476
475
  ```
477
476
 
478
- ### **🎮 Quick Customization Examples:**
477
+ ### **🚀 Quick Functions - EASIEST WAY TO CUSTOMIZE!**
478
+ ```python
479
+ # 📝 BASIC QUICK FUNCTIONS
480
+ client.quick_set_name("My Squad") # Change name
481
+ client.quick_set_rating(5000) # Set rating
482
+ client.quick_set_member_limit(50) # Set member limit
483
+ client.quick_set_currency(10000) # Set currency
484
+
485
+ # � COLOR QUICK FUNCTIONS
486
+ client.quick_set_colors("red") # Red theme
487
+ client.quick_set_colors("blue", "white") # Blue/White theme
488
+ client.quick_set_colors("black", "gold") # Black/Gold theme
489
+
490
+ # ⭐ LEVEL QUICK FUNCTIONS
491
+ client.quick_set_level(5) # Set to Level 5
492
+ client.quick_set_level(10, "Max Level") # Set to Level 10
493
+
494
+ # 🏆 PROFESSIONAL QUICK SETUPS
495
+ client.quick_setup_professional_squad("Elite Squad", level=8) # Professional setup
496
+ client.quick_setup_gaming_squad("Gaming Squad", "fire") # Gaming setup
497
+
498
+ # 🔄 RESET QUICK FUNCTION
499
+ client.quick_reset_to_defaults() # Reset to defaults
500
+ ```
501
+
502
+ ### **�🎮 Quick Customization Examples:**
479
503
  ```python
480
504
  # 🚀 One-line level upgrades
481
- client.set_squad_level(10) # Max level squad
482
- client.set_squad_level(5, "Level 5 Warriors") # Custom name
505
+ client.quick_set_level(10) # Max level squad
506
+ client.quick_set_level(5, "Level 5 Warriors") # Custom name
483
507
 
484
508
  # 🎨 One-line theme applications
485
509
  client.customize_squad_theme('fire') # Fire theme
@@ -585,6 +609,12 @@ python examples/automatic_squad_management.py
585
609
  # Complete squad customization:
586
610
  python examples/complete_squad_customization.py
587
611
 
612
+ # Quick squad customization:
613
+ python examples/squad_customization_quick.py
614
+
615
+ # Squad quick start (super simple):
616
+ python examples/squad_quick_start.py
617
+
588
618
  # Authentication examples:
589
619
  python examples/authentication_example.py
590
620
 
@@ -331,38 +331,37 @@ from mc5_api_client import MC5Client
331
331
 
332
332
  client = MC5Client(username, password)
333
333
 
334
- # 🎯 Set squad to specific level (1-10)
335
- client.set_squad_level(8, "Level 8 Elite")
336
- # Automatically sets XP, rating, member limit, etc.
337
-
338
- # 🎨 Apply color themes
339
- client.customize_squad_theme('fire', 'Fire Warriors') # Red/Orange theme
340
- client.customize_squad_theme('ice', 'Ice Legion') # Blue/Cyan theme
341
- client.customize_squad_theme('dark', 'Dark Knights') # Black/White theme
342
- client.customize_squad_theme('nature', 'Nature Guardians') # Green/Lime theme
343
-
344
- # 🔧 Complete customization with validation
334
+ # 🚀 SUPER SIMPLE - One-line customizations!
335
+ client.quick_set_name("My Awesome Squad") # Change name
336
+ client.quick_set_level(5) # Set to Level 5
337
+ client.quick_set_colors("red", "white") # Red/White colors
338
+ client.quick_set_member_limit(50) # Set member limit
339
+ client.quick_set_currency(10000) # Set currency
340
+
341
+ # 🎯 QUICK SETUPS - Professional results in one line!
342
+ client.quick_setup_professional_squad("Elite Squad", level=8) # Professional squad
343
+ client.quick_setup_gaming_squad("Gaming Legends", "fire") # Gaming squad with theme
344
+
345
+ # 🎨 THEMES - Beautiful colors instantly
346
+ client.customize_squad_theme('fire') # Fire theme
347
+ client.customize_squad_theme('ice') # Ice theme
348
+ client.customize_squad_theme('dark') # Dark theme
349
+ client.customize_squad_theme('nature') # Nature theme
350
+
351
+ # ⭐ LEVEL SYSTEM - Automatic XP calculation
352
+ client.set_squad_level(10, "Max Level Squad") # Level 10 (max)
353
+ # Level 1: 1000 XP, Level 5: 5000 XP, Level 10: 10000 XP
354
+
355
+ # 🔧 COMPLETE CUSTOMIZATION - Full control with validation
345
356
  client.customize_squad_complete(
346
357
  name="452e55e84897+",
347
- description="Professional squad with active members!",
348
358
  rating=3573,
349
359
  score=5200,
350
360
  member_limit=300,
351
- membership="owner_approved",
352
- _logo="1",
353
- _logo_clr_prim=client.get_color_value("red"), # Red color
354
- _logo_clr_sec=client.get_color_value("white"), # White color
355
- _min_join_value=996699,
356
- _xp=client.calculate_xp_for_level(9), # Level 9 = 9000 XP
357
- _killsig_id="default_killsig_01",
358
- currency="10000",
359
- active_clan_label="true",
360
- active_clan_threshold="50"
361
+ _logo_clr_prim=client.get_color_value("red"),
362
+ _xp=client.calculate_xp_for_level(9),
363
+ currency="10000"
361
364
  )
362
-
363
- # 🎯 Helper functions
364
- xp = client.calculate_xp_for_level(5) # Returns 5000
365
- color = client.get_color_value('blue') # Returns '255'
366
365
  ```
367
366
 
368
367
  ### **📊 Squad Parameters You Can Customize:**
@@ -397,11 +396,36 @@ active_clan_label: "true"
397
396
  active_clan_threshold: "50"
398
397
  ```
399
398
 
400
- ### **🎮 Quick Customization Examples:**
399
+ ### **🚀 Quick Functions - EASIEST WAY TO CUSTOMIZE!**
400
+ ```python
401
+ # 📝 BASIC QUICK FUNCTIONS
402
+ client.quick_set_name("My Squad") # Change name
403
+ client.quick_set_rating(5000) # Set rating
404
+ client.quick_set_member_limit(50) # Set member limit
405
+ client.quick_set_currency(10000) # Set currency
406
+
407
+ # � COLOR QUICK FUNCTIONS
408
+ client.quick_set_colors("red") # Red theme
409
+ client.quick_set_colors("blue", "white") # Blue/White theme
410
+ client.quick_set_colors("black", "gold") # Black/Gold theme
411
+
412
+ # ⭐ LEVEL QUICK FUNCTIONS
413
+ client.quick_set_level(5) # Set to Level 5
414
+ client.quick_set_level(10, "Max Level") # Set to Level 10
415
+
416
+ # 🏆 PROFESSIONAL QUICK SETUPS
417
+ client.quick_setup_professional_squad("Elite Squad", level=8) # Professional setup
418
+ client.quick_setup_gaming_squad("Gaming Squad", "fire") # Gaming setup
419
+
420
+ # 🔄 RESET QUICK FUNCTION
421
+ client.quick_reset_to_defaults() # Reset to defaults
422
+ ```
423
+
424
+ ### **�🎮 Quick Customization Examples:**
401
425
  ```python
402
426
  # 🚀 One-line level upgrades
403
- client.set_squad_level(10) # Max level squad
404
- client.set_squad_level(5, "Level 5 Warriors") # Custom name
427
+ client.quick_set_level(10) # Max level squad
428
+ client.quick_set_level(5, "Level 5 Warriors") # Custom name
405
429
 
406
430
  # 🎨 One-line theme applications
407
431
  client.customize_squad_theme('fire') # Fire theme
@@ -507,6 +531,12 @@ python examples/automatic_squad_management.py
507
531
  # Complete squad customization:
508
532
  python examples/complete_squad_customization.py
509
533
 
534
+ # Quick squad customization:
535
+ python examples/squad_customization_quick.py
536
+
537
+ # Squad quick start (super simple):
538
+ python examples/squad_quick_start.py
539
+
510
540
  # Authentication examples:
511
541
  python examples/authentication_example.py
512
542
 
@@ -0,0 +1,79 @@
1
+ #!/usr/bin/env python3
2
+ # ────────────[ CHIZOBA ]────────────────────────────
3
+ # | Email : chizoba2026@hotmail.com
4
+ # | File : squad_customization_quick.py
5
+ # | License | MIT License © 2026 Chizoba
6
+ # | Brief | Quick squad customization examples
7
+ # ────────────────★─────────────────────────────────
8
+
9
+ """
10
+ Quick Squad Customization Examples for MC5 API Client
11
+
12
+ This shows the most common squad customization tasks in a simple, easy-to-understand way.
13
+ """
14
+
15
+ from mc5_api_client import MC5Client
16
+
17
+ def main():
18
+ """Quick squad customization demo."""
19
+ print("🎮 MC5 API Client - Quick Squad Customization")
20
+ print("=" * 50)
21
+ print("🚀 Easy squad customization examples!")
22
+ print()
23
+
24
+ # Initialize client
25
+ client = MC5Client(
26
+ client_id="1875:55979:6.0.0a:windows:windows",
27
+ username="anonymous:d2luOF92M18xNzcwMDUxNjkwXy7H33aeTVB4YZictyDq48c=",
28
+ password="sSJKzhQ5l4vrFgov"
29
+ )
30
+
31
+ print("✅ Client initialized!")
32
+
33
+ # Example 1: Set squad to Level 8
34
+ print("\n🎯 Example 1: Set Squad to Level 8")
35
+ print("-" * 35)
36
+
37
+ result = client.set_squad_level(8, "Level 8 Elite")
38
+ if result and 'error' not in result:
39
+ print("✅ Level 8 set successfully!")
40
+ else:
41
+ print(f"❌ Failed: {result}")
42
+
43
+ # Example 2: Apply Fire Theme
44
+ print("\n🔥 Example 2: Apply Fire Theme")
45
+ print("-" * 30)
46
+
47
+ result = client.customize_squad_theme('fire', 'Fire Warriors')
48
+ if result and 'error' not in result:
49
+ print("✅ Fire theme applied!")
50
+ else:
51
+ print(f"❌ Failed: {result}")
52
+
53
+ # Example 3: Quick customization
54
+ print("\n⚡ Example 3: Quick Customization")
55
+ print("-" * 30)
56
+
57
+ result = client.customize_squad_complete(
58
+ name="452e55e84897+",
59
+ rating=5000,
60
+ member_limit=100
61
+ )
62
+ if result and 'error' not in result:
63
+ print("✅ Quick customization done!")
64
+ else:
65
+ print(f"❌ Failed: {result}")
66
+
67
+ print("\n" + "=" * 50)
68
+ print("🎉 Quick Demo Complete!")
69
+ print("=" * 50)
70
+ print()
71
+ print("💡 Available helper functions:")
72
+ print(" 🎯 set_squad_level(level, name)")
73
+ print(" 🎨 customize_squad_theme(theme, name)")
74
+ print(" 🔧 customize_squad_complete(**kwargs)")
75
+ print()
76
+ print("🚀 All functions work automatically - no manual IDs needed!")
77
+
78
+ if __name__ == "__main__":
79
+ main()
@@ -0,0 +1,94 @@
1
+ #!/usr/bin/env python3
2
+ # ────────────[ CHIZOBA ]────────────────────────────
3
+ # | Email : chizoba2026@hotmail.com
4
+ # | File : squad_quick_start.py
5
+ # | License | MIT License © 2026 Chizoba
6
+ # | Brief | Super simple squad customization
7
+ # ────────────────★─────────────────────────────────
8
+
9
+ """
10
+ Super Simple Squad Customization - Quick Start Guide
11
+
12
+ This shows the easiest ways to customize your squad.
13
+ Perfect for beginners!
14
+ """
15
+
16
+ from mc5_api_client import MC5Client
17
+
18
+ def main():
19
+ """Super simple squad customization."""
20
+ print("🎮 MC5 API Client - Squad Quick Start")
21
+ print("=" * 40)
22
+ print("🚀 Easiest squad customization ever!")
23
+ print()
24
+
25
+ # Initialize client
26
+ client = MC5Client(
27
+ client_id="1875:55979:6.0.0a:windows:windows",
28
+ username="anonymous:d2luOF92M18xNzcwMDUxNjkwXy7H33aeTVB4YZictyDq48c=",
29
+ password="sSJKzhQ5l4vrFgov"
30
+ )
31
+
32
+ print("✅ Client ready!")
33
+
34
+ # Most common customizations
35
+ print("\n🎯 Most Common Customizations:")
36
+ print("-" * 30)
37
+
38
+ # 1. Change name
39
+ print("1. Change squad name:")
40
+ result = client.quick_set_name("My Awesome Squad")
41
+ print(f" ✅ {'Success!' if 'error' not in result else 'Failed'}")
42
+
43
+ # 2. Set level
44
+ print("\n2. Set to Level 5:")
45
+ result = client.quick_set_level(5)
46
+ print(f" ✅ {'Success!' if 'error' not in result else 'Failed'}")
47
+
48
+ # 3. Set colors
49
+ print("\n3. Set colors (Red and White):")
50
+ result = client.quick_set_colors("red", "white")
51
+ print(f" ✅ {'Success!' if 'error' not in result else 'Failed'}")
52
+
53
+ # 4. Set member limit
54
+ print("\n4. Set member limit to 50:")
55
+ result = client.quick_set_member_limit(50)
56
+ print(f" ✅ {'Success!' if 'error' not in result else 'Failed'}")
57
+
58
+ # 5. Set currency
59
+ print("\n5. Set currency to 10000:")
60
+ result = client.quick_set_currency(10000)
61
+ print(f" ✅ {'Success!' if 'error' not in result else 'Failed'}")
62
+
63
+ # Quick setups
64
+ print("\n🚀 Quick Setups:")
65
+ print("-" * 20)
66
+
67
+ # Professional squad
68
+ print("6. Professional squad setup:")
69
+ result = client.quick_setup_professional_squad("Elite Squad", level=8)
70
+ print(f" ✅ {'Success!' if 'error' not in result else 'Failed'}")
71
+
72
+ # Gaming squad
73
+ print("\n7. Gaming squad setup:")
74
+ result = client.quick_setup_gaming_squad("Gaming Legends", "fire")
75
+ print(f" ✅ {'Success!' if 'error' not in result else 'Failed'}")
76
+
77
+ print("\n" + "=" * 40)
78
+ print("🎉 Quick Start Complete!")
79
+ print("=" * 40)
80
+ print()
81
+ print("💡 Quick functions available:")
82
+ print(" 📝 quick_set_name(name)")
83
+ print(" ⭐ quick_set_level(level)")
84
+ print(" 🎨 quick_set_colors(primary, secondary)")
85
+ print(" 👥 quick_set_member_limit(limit)")
86
+ print(" 💰 quick_set_currency(amount)")
87
+ print(" 🏆 quick_setup_professional_squad(name, level)")
88
+ print(" 🎮 quick_setup_gaming_squad(name, theme)")
89
+ print(" 🔄 quick_reset_to_defaults()")
90
+ print()
91
+ print("🚀 All functions work automatically - no manual IDs needed!")
92
+
93
+ if __name__ == "__main__":
94
+ main()
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "mc5_api_client"
7
- version = "1.0.22"
7
+ version = "1.0.23"
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"}
@@ -33,7 +33,7 @@ def read_requirements():
33
33
  setup(
34
34
  name="mc5_api_client",
35
35
  use_scm_version=False,
36
- version="1.0.22",
36
+ version="1.0.23",
37
37
  description="A comprehensive Python library for interacting with the Modern Combat 5 API",
38
38
  long_description=read_readme(),
39
39
  long_description_content_type="text/markdown",
@@ -15,7 +15,7 @@ messaging, and more.
15
15
 
16
16
  from typing import Optional, Dict, Any
17
17
 
18
- __version__ = "1.0.22"
18
+ __version__ = "1.0.23"
19
19
  __author__ = "Chizoba"
20
20
  __email__ = "chizoba2026@hotmail.com"
21
21
  __license__ = "MIT"
@@ -442,6 +442,15 @@ __all__ = [
442
442
  "customize_squad_theme",
443
443
  "set_squad_level",
444
444
  "customize_squad_complete",
445
+ "quick_set_name",
446
+ "quick_set_rating",
447
+ "quick_set_member_limit",
448
+ "quick_set_colors",
449
+ "quick_set_level",
450
+ "quick_set_currency",
451
+ "quick_setup_professional_squad",
452
+ "quick_setup_gaming_squad",
453
+ "quick_reset_to_defaults",
445
454
  "generate_device_id",
446
455
  "create_federation_session",
447
456
  "locate_service",
@@ -2038,6 +2038,161 @@ class MC5Client(SquadBattleMixin, FederationMixin, AlertsMixin, AccountMixin, Tr
2038
2038
  # Apply updates
2039
2039
  return self.update_my_squad_info(**kwargs)
2040
2040
 
2041
+ # Quick Squad Customization Functions (NEW!)
2042
+
2043
+ def quick_set_name(self, name: str) -> Dict[str, Any]:
2044
+ """
2045
+ Quickly set squad name.
2046
+
2047
+ Args:
2048
+ name: New squad name
2049
+
2050
+ Returns:
2051
+ Dictionary with update result or error details
2052
+ """
2053
+ return self.update_my_squad_info(name=name)
2054
+
2055
+ def quick_set_rating(self, rating: int) -> Dict[str, Any]:
2056
+ """
2057
+ Quickly set squad rating.
2058
+
2059
+ Args:
2060
+ rating: New squad rating (0-99999)
2061
+
2062
+ Returns:
2063
+ Dictionary with update result or error details
2064
+ """
2065
+ return self.update_my_squad_info(rating=rating)
2066
+
2067
+ def quick_set_member_limit(self, limit: int) -> Dict[str, Any]:
2068
+ """
2069
+ Quickly set member limit.
2070
+
2071
+ Args:
2072
+ limit: New member limit (1-300)
2073
+
2074
+ Returns:
2075
+ Dictionary with update result or error details
2076
+ """
2077
+ return self.update_my_squad_info(member_limit=limit)
2078
+
2079
+ def quick_set_colors(self, primary_color: str, secondary_color: str = None) -> Dict[str, Any]:
2080
+ """
2081
+ Quickly set squad colors using color names.
2082
+
2083
+ Args:
2084
+ primary_color: Primary color name
2085
+ secondary_color: Secondary color name (optional)
2086
+
2087
+ Returns:
2088
+ Dictionary with update result or error details
2089
+ """
2090
+ updates = {
2091
+ "_logo_clr_prim": self.get_color_value(primary_color)
2092
+ }
2093
+
2094
+ if secondary_color:
2095
+ updates["_logo_clr_sec"] = self.get_color_value(secondary_color)
2096
+
2097
+ return self.update_my_squad_info(**updates)
2098
+
2099
+ def quick_set_level(self, level: int, name: str = None) -> Dict[str, Any]:
2100
+ """
2101
+ Quickly set squad to specific level.
2102
+
2103
+ Args:
2104
+ level: Desired level (1-10)
2105
+ name: Optional custom squad name
2106
+
2107
+ Returns:
2108
+ Dictionary with update result or error details
2109
+ """
2110
+ return self.set_squad_level(level, name)
2111
+
2112
+ def quick_set_currency(self, amount: int) -> Dict[str, Any]:
2113
+ """
2114
+ Quickly set squad currency.
2115
+
2116
+ Args:
2117
+ amount: Currency amount
2118
+
2119
+ Returns:
2120
+ Dictionary with update result or error details
2121
+ """
2122
+ return self.update_my_squad_info(currency=str(amount))
2123
+
2124
+ def quick_setup_professional_squad(self, name: str, level: int = 8) -> Dict[str, Any]:
2125
+ """
2126
+ Quick setup for professional squad with optimal settings.
2127
+
2128
+ Args:
2129
+ name: Squad name
2130
+ level: Squad level (1-10)
2131
+
2132
+ Returns:
2133
+ Dictionary with update result or error details
2134
+ """
2135
+ return self.customize_squad_complete(
2136
+ name=name,
2137
+ _xp=self.calculate_xp_for_level(level),
2138
+ rating=level * 1000,
2139
+ member_limit=50 + (level * 10),
2140
+ membership="owner_approved",
2141
+ _min_join_value=level * 200,
2142
+ description=f"Professional squad at Level {level}!",
2143
+ currency=str(level * 5000),
2144
+ active_clan_label="true"
2145
+ )
2146
+
2147
+ def quick_setup_gaming_squad(self, name: str, theme: str = "fire") -> Dict[str, Any]:
2148
+ """
2149
+ Quick setup for gaming squad with theme.
2150
+
2151
+ Args:
2152
+ name: Squad name
2153
+ theme: Color theme ('fire', 'ice', 'dark', 'nature')
2154
+
2155
+ Returns:
2156
+ Dictionary with update result or error details
2157
+ """
2158
+ # Apply theme first
2159
+ theme_result = self.customize_squad_theme(theme, name)
2160
+
2161
+ if theme_result and 'error' not in theme_result:
2162
+ # Add gaming-specific settings
2163
+ gaming_updates = {
2164
+ membership="owner_approved",
2165
+ _min_join_value=1000,
2166
+ currency="10000",
2167
+ active_clan_label="true"
2168
+ }
2169
+
2170
+ return self.update_my_squad_info(**gaming_updates)
2171
+
2172
+ return theme_result
2173
+
2174
+ def quick_reset_to_defaults(self) -> Dict[str, Any]:
2175
+ """
2176
+ Quick reset squad to default settings.
2177
+
2178
+ Returns:
2179
+ Dictionary with update result or error details
2180
+ """
2181
+ return self.customize_squad_complete(
2182
+ name="Default Squad",
2183
+ description="Default squad description",
2184
+ rating=1000,
2185
+ member_limit=30,
2186
+ membership="open",
2187
+ _logo="1",
2188
+ _logo_clr_prim=self.get_color_value("blue"),
2189
+ _logo_clr_sec=self.get_color_value("white"),
2190
+ _min_join_value=500,
2191
+ _xp=self.calculate_xp_for_level(1),
2192
+ currency="0",
2193
+ active_clan_label="false"
2194
+ )
2195
+
2041
2196
  # Events API
2042
2197
 
2043
2198
  def get_events(self, event_type: str = None, status: str = None) -> List[Dict[str, Any]]:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mc5_api_client
3
- Version: 1.0.22
3
+ Version: 1.0.23
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
@@ -409,38 +409,37 @@ from mc5_api_client import MC5Client
409
409
 
410
410
  client = MC5Client(username, password)
411
411
 
412
- # 🎯 Set squad to specific level (1-10)
413
- client.set_squad_level(8, "Level 8 Elite")
414
- # Automatically sets XP, rating, member limit, etc.
412
+ # 🚀 SUPER SIMPLE - One-line customizations!
413
+ client.quick_set_name("My Awesome Squad") # Change name
414
+ client.quick_set_level(5) # Set to Level 5
415
+ client.quick_set_colors("red", "white") # Red/White colors
416
+ client.quick_set_member_limit(50) # Set member limit
417
+ client.quick_set_currency(10000) # Set currency
415
418
 
416
- # 🎨 Apply color themes
417
- client.customize_squad_theme('fire', 'Fire Warriors') # Red/Orange theme
418
- client.customize_squad_theme('ice', 'Ice Legion') # Blue/Cyan theme
419
- client.customize_squad_theme('dark', 'Dark Knights') # Black/White theme
420
- client.customize_squad_theme('nature', 'Nature Guardians') # Green/Lime theme
419
+ # 🎯 QUICK SETUPS - Professional results in one line!
420
+ client.quick_setup_professional_squad("Elite Squad", level=8) # Professional squad
421
+ client.quick_setup_gaming_squad("Gaming Legends", "fire") # Gaming squad with theme
421
422
 
422
- # 🔧 Complete customization with validation
423
+ # 🎨 THEMES - Beautiful colors instantly
424
+ client.customize_squad_theme('fire') # Fire theme
425
+ client.customize_squad_theme('ice') # Ice theme
426
+ client.customize_squad_theme('dark') # Dark theme
427
+ client.customize_squad_theme('nature') # Nature theme
428
+
429
+ # ⭐ LEVEL SYSTEM - Automatic XP calculation
430
+ client.set_squad_level(10, "Max Level Squad") # Level 10 (max)
431
+ # Level 1: 1000 XP, Level 5: 5000 XP, Level 10: 10000 XP
432
+
433
+ # 🔧 COMPLETE CUSTOMIZATION - Full control with validation
423
434
  client.customize_squad_complete(
424
435
  name="452e55e84897+",
425
- description="Professional squad with active members!",
426
436
  rating=3573,
427
437
  score=5200,
428
438
  member_limit=300,
429
- membership="owner_approved",
430
- _logo="1",
431
- _logo_clr_prim=client.get_color_value("red"), # Red color
432
- _logo_clr_sec=client.get_color_value("white"), # White color
433
- _min_join_value=996699,
434
- _xp=client.calculate_xp_for_level(9), # Level 9 = 9000 XP
435
- _killsig_id="default_killsig_01",
436
- currency="10000",
437
- active_clan_label="true",
438
- active_clan_threshold="50"
439
+ _logo_clr_prim=client.get_color_value("red"),
440
+ _xp=client.calculate_xp_for_level(9),
441
+ currency="10000"
439
442
  )
440
-
441
- # 🎯 Helper functions
442
- xp = client.calculate_xp_for_level(5) # Returns 5000
443
- color = client.get_color_value('blue') # Returns '255'
444
443
  ```
445
444
 
446
445
  ### **📊 Squad Parameters You Can Customize:**
@@ -475,11 +474,36 @@ active_clan_label: "true"
475
474
  active_clan_threshold: "50"
476
475
  ```
477
476
 
478
- ### **🎮 Quick Customization Examples:**
477
+ ### **🚀 Quick Functions - EASIEST WAY TO CUSTOMIZE!**
478
+ ```python
479
+ # 📝 BASIC QUICK FUNCTIONS
480
+ client.quick_set_name("My Squad") # Change name
481
+ client.quick_set_rating(5000) # Set rating
482
+ client.quick_set_member_limit(50) # Set member limit
483
+ client.quick_set_currency(10000) # Set currency
484
+
485
+ # � COLOR QUICK FUNCTIONS
486
+ client.quick_set_colors("red") # Red theme
487
+ client.quick_set_colors("blue", "white") # Blue/White theme
488
+ client.quick_set_colors("black", "gold") # Black/Gold theme
489
+
490
+ # ⭐ LEVEL QUICK FUNCTIONS
491
+ client.quick_set_level(5) # Set to Level 5
492
+ client.quick_set_level(10, "Max Level") # Set to Level 10
493
+
494
+ # 🏆 PROFESSIONAL QUICK SETUPS
495
+ client.quick_setup_professional_squad("Elite Squad", level=8) # Professional setup
496
+ client.quick_setup_gaming_squad("Gaming Squad", "fire") # Gaming setup
497
+
498
+ # 🔄 RESET QUICK FUNCTION
499
+ client.quick_reset_to_defaults() # Reset to defaults
500
+ ```
501
+
502
+ ### **�🎮 Quick Customization Examples:**
479
503
  ```python
480
504
  # 🚀 One-line level upgrades
481
- client.set_squad_level(10) # Max level squad
482
- client.set_squad_level(5, "Level 5 Warriors") # Custom name
505
+ client.quick_set_level(10) # Max level squad
506
+ client.quick_set_level(5, "Level 5 Warriors") # Custom name
483
507
 
484
508
  # 🎨 One-line theme applications
485
509
  client.customize_squad_theme('fire') # Fire theme
@@ -585,6 +609,12 @@ python examples/automatic_squad_management.py
585
609
  # Complete squad customization:
586
610
  python examples/complete_squad_customization.py
587
611
 
612
+ # Quick squad customization:
613
+ python examples/squad_customization_quick.py
614
+
615
+ # Squad quick start (super simple):
616
+ python examples/squad_quick_start.py
617
+
588
618
  # Authentication examples:
589
619
  python examples/authentication_example.py
590
620
 
@@ -28,7 +28,9 @@ examples/quick_help.py
28
28
  examples/quick_reference.py
29
29
  examples/service_location_example.py
30
30
  examples/simple_usage.py
31
+ examples/squad_customization_quick.py
31
32
  examples/squad_management.py
33
+ examples/squad_quick_start.py
32
34
  examples/squad_wall_management.py
33
35
  src/mc5_api_client/__init__.py
34
36
  src/mc5_api_client/account.py
File without changes