mc5-api-client 1.0.9__py3-none-any.whl → 1.0.10__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.
@@ -13,7 +13,7 @@ Provides easy access to authentication, profile management, clan operations,
13
13
  messaging, and more.
14
14
  """
15
15
 
16
- __version__ = "1.0.9"
16
+ __version__ = "1.0.10"
17
17
  __author__ = "Chizoba"
18
18
  __email__ = "chizoba2026@hotmail.com"
19
19
  __license__ = "MIT"
mc5_api_client/cli.py CHANGED
@@ -438,19 +438,19 @@ class MC5CLI:
438
438
 
439
439
  def _print_help(self):
440
440
  """Print help information."""
441
- self._print("🎮 MC5 API Client CLI", "cyan")
441
+ self._print("MC5 API Client CLI", "cyan")
442
442
  self._print("=" * 30, "cyan")
443
443
  self._print("\nAvailable commands:", "yellow")
444
444
  self._print(" --help, -h Show this help message")
445
445
  self._print(" version Show version information")
446
- self._print("\n📚 For more examples, see the README.md file!", "green")
446
+ self._print("\nFor more examples, see the README.md file!", "green")
447
447
 
448
448
  def _print_version(self):
449
449
  """Print version information."""
450
- self._print("🎮 MC5 API Client v1.0.0", "cyan")
451
- self._print("📦 The ultimate Modern Combat 5 API library", "green")
452
- self._print("👤 Author: Chizoba", "blue")
453
- self._print("📧 Email: chizoba2026@hotmail.com", "blue")
450
+ self._print("MC5 API Client v1.0.10", "cyan")
451
+ self._print("The ultimate Modern Combat 5 API library", "green")
452
+ self._print("Author: Chizoba", "blue")
453
+ self._print("Email: chizoba2026@hotmail.com", "blue")
454
454
 
455
455
 
456
456
  def main():
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mc5_api_client
3
- Version: 1.0.9
3
+ Version: 1.0.10
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
@@ -814,107 +814,38 @@ for event in events:
814
814
  See how you stack up:
815
815
 
816
816
  ```python
817
- # Get regular leaderboard
818
- leaderboard = client.get_leaderboard("ro")
819
- print(f"Top {len(leaderboard.get('players', []))} players")
820
-
821
- # Admin leaderboard (if you have admin access)
822
- # admin_leaderboard = client.get_leaderboard("admin")
823
- ```
824
-
825
- ## 🖥️ CLI Commands - Your Command Center
826
-
827
- The CLI tool is like having a remote control for MC5! Here are all the commands:
828
-
829
- ### 🔑 Token Management
830
-
831
- **Generate a new token:**
832
- ```bash
833
- mc5 generate-token --username "anonymous:your_credential" --password "your_password" --save
834
- ```
835
-
836
- **Generate admin token:**
837
- ```bash
838
- mc5 generate-admin-token --save
839
- ```
840
-
841
- **Check if your token is still good:**
842
- ```bash
843
- mc5 validate-token
844
- ```
845
-
846
- ### 🏰 Clan Management
847
-
848
- **Search for clans:**
849
- ```bash
850
- mc5 clan search "Elite" --limit 10
851
- ```
852
-
853
- **Create a new clan:**
854
- ```bash
855
- mc5 clan create --name "Python Warriors" --tag "PYW" --description "A clan for Python developers!"
856
- ```
857
-
858
- **Get clan information:**
859
- ```bash
860
- mc5 clan info your-clan-id
861
- ```
862
-
863
- **Get clan members:**
864
- ```bash
865
- mc5 clan members your-clan-id
866
- ```
867
-
868
- **Invite a player:**
869
- ```bash
870
- mc5 clan invite your-clan-id "anonymous:player_credential" --role officer
871
- ```
872
-
873
- **Handle applications:**
874
- ```bash
875
- mc5 clan applications your-clan-id
876
- mc5 clan accept your-clan-id "anonymous:applicant" --role member
877
- mc5 clan reject your-clan-id "anonymous:applicant"
878
- ```
879
-
880
- **Apply to join a clan:**
881
- ```bash
882
- mc5 clan apply target-clan-id --message "Let me join your squad!"
883
- ```
817
+ from mc5_api_client import MC5Client
884
818
 
885
- **Get clan statistics:**
886
- ```bash
887
- mc5 clan stats your-clan-id
819
+ # Test that the method exists
820
+ client = MC5Client()
821
+ if hasattr(client, 'get_leaderboard'):
822
+ print("✅ get_leaderboard method available")
823
+
824
+ # You would need to authenticate first:
825
+ # client.authenticate('username', 'password')
826
+ # leaderboard = client.get_leaderboard("ro")
827
+ # print(f"Top {len(leaderboard.get('players', []))} players")
828
+ else:
829
+ print("❌ get_leaderboard method not found")
888
830
  ```
889
831
 
890
- **Get clan leaderboard:**
891
- ```bash
892
- mc5 clan leaderboard your-clan-id
893
- ```
832
+ ### 🖥️ CLI Commands - Currently Available
894
833
 
895
- ### ⚙️ Configuration
834
+ The CLI tool provides basic functionality with these commands:
896
835
 
897
- **See your saved info:**
898
836
  ```bash
899
- mc5 show-config
900
- ```
837
+ # Show help information
838
+ python -m mc5_api_client.cli --help
901
839
 
902
- **Clear everything (start fresh):**
903
- ```bash
904
- mc5 clear-config
840
+ # Show version information
841
+ python -m mc5_api_client.cli version
905
842
  ```
906
843
 
907
- ### 🎨 Cool Options
908
-
909
- **Enable debug mode (see what's happening behind the scenes):**
910
- ```bash
911
- mc5 --debug generate-token --username "..." --password "..."
912
- ```
844
+ **Current Available Commands:**
845
+ - `--help, -h` - Show help message
846
+ - `version` - Show version information
913
847
 
914
- **Skip the fancy banner:**
915
- ```bash
916
- mc5 --no-banner validate-token
917
- ```
848
+ **Note**: Advanced CLI commands (token management, clan operations) are planned features for future versions. The current CLI provides basic help and version functionality.
918
849
 
919
850
  ## 🔧 Where Does Everything Get Saved?
920
851
 
@@ -0,0 +1,15 @@
1
+ mc5_api_client/__init__.py,sha256=Tdr0ZbZ85zqOOl7OF0mCs9Lycurv6mOuS9YZfvdc2WM,1712
2
+ mc5_api_client/admin_client.py,sha256=527aavolxVhY2M5ceFxVbbE5YTczU9Z86Fdt1UzdRZM,15220
3
+ mc5_api_client/auth.py,sha256=Yj_6s8KmtbswWbR6q816d8soIirUF2aD_KWxg-jNqR0,9978
4
+ mc5_api_client/cli.py,sha256=7_IGHBJmvJPZ3sYpBQK_mqHigGhzW-V4NWKrIpUTAc0,17255
5
+ mc5_api_client/client.py,sha256=q5PkdpTXjWCXdLFiK1-zqa7fThJGE4Z99A3ccMfwJIY,79239
6
+ mc5_api_client/exceptions.py,sha256=o7od4GrEIlgq6xSNUjZdh74xoDTytF3PLcMq5ewRiJw,2683
7
+ mc5_api_client/help.py,sha256=sqf3R6VHQuSYLvAMzh8nXAgCX5URsvXydvw8P0ATabg,7246
8
+ mc5_api_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
+ mc5_api_client/simple_client.py,sha256=31JI2rURHIXKcnDXQYJNpr-gypweO56ANFdhD-Z4Ft0,20241
10
+ mc5_api_client-1.0.10.dist-info/licenses/LICENSE,sha256=M0UBQ4B3pB9XcV54_jhVP681xyauF8GB6YK_rKmuXzk,1064
11
+ mc5_api_client-1.0.10.dist-info/METADATA,sha256=a9EbVzcyxNtu2sFJJFzkmnRZ3v9NPvleNyrHcKKiTeg,52876
12
+ mc5_api_client-1.0.10.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
13
+ mc5_api_client-1.0.10.dist-info/entry_points.txt,sha256=2kruOpleFYK3Jl1MoQwGyqCd-Pj4kQWngXmIjnXx_gE,48
14
+ mc5_api_client-1.0.10.dist-info/top_level.txt,sha256=eYJe4ue9j1ig_jFY5Z05mDqpizUEV7TYpk5lBXVd4kA,15
15
+ mc5_api_client-1.0.10.dist-info/RECORD,,
@@ -1,15 +0,0 @@
1
- mc5_api_client/__init__.py,sha256=nEPnDWX7LtB9vDyBfNqBFDNP9Wskusav6Z0IM1SvI8Y,1711
2
- mc5_api_client/admin_client.py,sha256=527aavolxVhY2M5ceFxVbbE5YTczU9Z86Fdt1UzdRZM,15220
3
- mc5_api_client/auth.py,sha256=Yj_6s8KmtbswWbR6q816d8soIirUF2aD_KWxg-jNqR0,9978
4
- mc5_api_client/cli.py,sha256=KegNTxwq28gu_vrffc_cXcALrHzUBDHd-5DqKyYp4p0,17284
5
- mc5_api_client/client.py,sha256=q5PkdpTXjWCXdLFiK1-zqa7fThJGE4Z99A3ccMfwJIY,79239
6
- mc5_api_client/exceptions.py,sha256=o7od4GrEIlgq6xSNUjZdh74xoDTytF3PLcMq5ewRiJw,2683
7
- mc5_api_client/help.py,sha256=sqf3R6VHQuSYLvAMzh8nXAgCX5URsvXydvw8P0ATabg,7246
8
- mc5_api_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
- mc5_api_client/simple_client.py,sha256=31JI2rURHIXKcnDXQYJNpr-gypweO56ANFdhD-Z4Ft0,20241
10
- mc5_api_client-1.0.9.dist-info/licenses/LICENSE,sha256=M0UBQ4B3pB9XcV54_jhVP681xyauF8GB6YK_rKmuXzk,1064
11
- mc5_api_client-1.0.9.dist-info/METADATA,sha256=BvCujXZkPKOGRs-_BMiQRyjtmZlJH4yHg0r76XMXGs4,53906
12
- mc5_api_client-1.0.9.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
13
- mc5_api_client-1.0.9.dist-info/entry_points.txt,sha256=2kruOpleFYK3Jl1MoQwGyqCd-Pj4kQWngXmIjnXx_gE,48
14
- mc5_api_client-1.0.9.dist-info/top_level.txt,sha256=eYJe4ue9j1ig_jFY5Z05mDqpizUEV7TYpk5lBXVd4kA,15
15
- mc5_api_client-1.0.9.dist-info/RECORD,,