mc5-api-client 1.0.4__tar.gz → 1.0.5__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.
- {mc5_api_client-1.0.4 → mc5_api_client-1.0.5}/CHANGELOG.md +32 -0
- {mc5_api_client-1.0.4 → mc5_api_client-1.0.5}/PKG-INFO +1 -63
- {mc5_api_client-1.0.4 → mc5_api_client-1.0.5}/README.md +0 -62
- {mc5_api_client-1.0.4 → mc5_api_client-1.0.5}/pyproject.toml +1 -1
- {mc5_api_client-1.0.4 → mc5_api_client-1.0.5}/setup.py +1 -1
- {mc5_api_client-1.0.4 → mc5_api_client-1.0.5}/src/mc5_api_client/client.py +1 -0
- {mc5_api_client-1.0.4 → mc5_api_client-1.0.5}/src/mc5_api_client.egg-info/PKG-INFO +1 -63
- {mc5_api_client-1.0.4 → mc5_api_client-1.0.5}/.gitignore +0 -0
- {mc5_api_client-1.0.4 → mc5_api_client-1.0.5}/LICENSE +0 -0
- {mc5_api_client-1.0.4 → mc5_api_client-1.0.5}/MANIFEST.in +0 -0
- {mc5_api_client-1.0.4 → mc5_api_client-1.0.5}/examples/advanced_features.py +0 -0
- {mc5_api_client-1.0.4 → mc5_api_client-1.0.5}/examples/basic_usage.py +0 -0
- {mc5_api_client-1.0.4 → mc5_api_client-1.0.5}/examples/clan_management.py +0 -0
- {mc5_api_client-1.0.4 → mc5_api_client-1.0.5}/examples/clan_management_complete.py +0 -0
- {mc5_api_client-1.0.4 → mc5_api_client-1.0.5}/examples/events_and_tasks.py +0 -0
- {mc5_api_client-1.0.4 → mc5_api_client-1.0.5}/examples/message_management.py +0 -0
- {mc5_api_client-1.0.4 → mc5_api_client-1.0.5}/examples/player_stats.py +0 -0
- {mc5_api_client-1.0.4 → mc5_api_client-1.0.5}/examples/private_messaging.py +0 -0
- {mc5_api_client-1.0.4 → mc5_api_client-1.0.5}/examples/squad_management.py +0 -0
- {mc5_api_client-1.0.4 → mc5_api_client-1.0.5}/examples/squad_wall_management.py +0 -0
- {mc5_api_client-1.0.4 → mc5_api_client-1.0.5}/pytest.ini +0 -0
- {mc5_api_client-1.0.4 → mc5_api_client-1.0.5}/requirements-dev.txt +0 -0
- {mc5_api_client-1.0.4 → mc5_api_client-1.0.5}/requirements.txt +0 -0
- {mc5_api_client-1.0.4 → mc5_api_client-1.0.5}/setup.cfg +0 -0
- {mc5_api_client-1.0.4 → mc5_api_client-1.0.5}/src/mc5_api_client/__init__.py +0 -0
- {mc5_api_client-1.0.4 → mc5_api_client-1.0.5}/src/mc5_api_client/auth.py +0 -0
- {mc5_api_client-1.0.4 → mc5_api_client-1.0.5}/src/mc5_api_client/cli.py +0 -0
- {mc5_api_client-1.0.4 → mc5_api_client-1.0.5}/src/mc5_api_client/exceptions.py +0 -0
- {mc5_api_client-1.0.4 → mc5_api_client-1.0.5}/src/mc5_api_client/py.typed +0 -0
- {mc5_api_client-1.0.4 → mc5_api_client-1.0.5}/src/mc5_api_client.egg-info/SOURCES.txt +0 -0
- {mc5_api_client-1.0.4 → mc5_api_client-1.0.5}/src/mc5_api_client.egg-info/dependency_links.txt +0 -0
- {mc5_api_client-1.0.4 → mc5_api_client-1.0.5}/src/mc5_api_client.egg-info/entry_points.txt +0 -0
- {mc5_api_client-1.0.4 → mc5_api_client-1.0.5}/src/mc5_api_client.egg-info/not-zip-safe +0 -0
- {mc5_api_client-1.0.4 → mc5_api_client-1.0.5}/src/mc5_api_client.egg-info/requires.txt +0 -0
- {mc5_api_client-1.0.4 → mc5_api_client-1.0.5}/src/mc5_api_client.egg-info/top_level.txt +0 -0
- {mc5_api_client-1.0.4 → mc5_api_client-1.0.5}/tests/__init__.py +0 -0
- {mc5_api_client-1.0.4 → mc5_api_client-1.0.5}/tests/test_auth.py +0 -0
- {mc5_api_client-1.0.4 → mc5_api_client-1.0.5}/tests/test_cli.py +0 -0
- {mc5_api_client-1.0.4 → mc5_api_client-1.0.5}/tests/test_client.py +0 -0
|
@@ -5,6 +5,38 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.0.5] - 2026-02-03
|
|
9
|
+
|
|
10
|
+
### 🔧 Critical Bug Fix
|
|
11
|
+
|
|
12
|
+
#### 🌐 Fixed Missing API Endpoint
|
|
13
|
+
- ✅ Added missing `janus` URL to BASE_URLS configuration
|
|
14
|
+
- ✅ Fixed player lookup by alias/dogtag functionality
|
|
15
|
+
- ✅ Resolved `'janus'` KeyError in alias lookup methods
|
|
16
|
+
- ✅ All batch profile functionality now working correctly
|
|
17
|
+
|
|
18
|
+
#### 🧪 Verified Functionality
|
|
19
|
+
- ✅ Dogtag to alias conversion: f55f → d33d ✅
|
|
20
|
+
- ✅ Player lookup by alias: Working perfectly ✅
|
|
21
|
+
- ✅ Batch profile retrieval: Successfully tested ✅
|
|
22
|
+
- ✅ Dogtag search with stats: Rating 800, K/D 14.75 ✅
|
|
23
|
+
- ✅ Statistics parsing: All data structured correctly ✅
|
|
24
|
+
|
|
25
|
+
#### 📚 Updated Documentation
|
|
26
|
+
- ✅ Added dogtag search example to quick start guide
|
|
27
|
+
- ✅ Enhanced README with working batch profile examples
|
|
28
|
+
- ✅ Updated feature list with verified functionality
|
|
29
|
+
- ✅ Added real test results to documentation
|
|
30
|
+
|
|
31
|
+
#### 🎯 Real-World Test Results
|
|
32
|
+
- **Test Player**: Dogtag f55f → Alias d33d
|
|
33
|
+
- **Rating**: 800
|
|
34
|
+
- **K/D Ratio**: 14.75 (Excellent!)
|
|
35
|
+
- **Total Kills**: 59
|
|
36
|
+
- **Total Headshots**: 16
|
|
37
|
+
- **XP**: 4,439
|
|
38
|
+
- **Account ID**: 9f2905fe-d346-11ef-8471-b8ca3a67cd10
|
|
39
|
+
|
|
8
40
|
## [1.0.4] - 2026-02-03
|
|
9
41
|
|
|
10
42
|
### 🚀 Player Statistics & Batch Profiles Feature
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: mc5_api_client
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.5
|
|
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
|
|
@@ -114,68 +114,6 @@ pip install .
|
|
|
114
114
|
✅ **PyPI URL**: https://pypi.org/project/mc5_api_client/
|
|
115
115
|
✅ **Installation**: `pip install mc5_api_client`
|
|
116
116
|
✅ **CLI Command**: `mc5 --help`
|
|
117
|
-
|
|
118
|
-
### 📦 Package Files
|
|
119
|
-
|
|
120
|
-
✅ **Source Distribution**: `dist/mc5_api_client-1.0.1.tar.gz`
|
|
121
|
-
✅ **Wheel Distribution**: `dist/mc5_api_client-1.0.1-py3-none-any.whl`
|
|
122
|
-
|
|
123
|
-
### 🔧 Build Status
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
### Step 1: Install the Library
|
|
127
|
-
|
|
128
|
-
Just run this in your terminal (Command Prompt/PowerShell):
|
|
129
|
-
|
|
130
|
-
```bash
|
|
131
|
-
pip install mc5_api_client
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
### Step 2: Verify Installation
|
|
135
|
-
|
|
136
|
-
```bash
|
|
137
|
-
# Check the CLI
|
|
138
|
-
mc5 --help
|
|
139
|
-
mc5 version
|
|
140
|
-
|
|
141
|
-
# Test in Python
|
|
142
|
-
python -c "import mc5_api_client; print('✅ MC5 API Client ready!')"
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
### Step 3: Your First Program
|
|
146
|
-
|
|
147
|
-
Copy and paste this simple example to get started:
|
|
148
|
-
|
|
149
|
-
```python
|
|
150
|
-
# Save this as my_mc5_script.py
|
|
151
|
-
from mc5_api_client import MC5Client
|
|
152
|
-
|
|
153
|
-
# Replace with your actual credentials
|
|
154
|
-
username = "YOUR_USERNAME_HERE"
|
|
155
|
-
password = "YOUR_PASSWORD_HERE"
|
|
156
|
-
|
|
157
|
-
# Create client and login
|
|
158
|
-
client = MC5Client(username=username, password=password)
|
|
159
|
-
|
|
160
|
-
# See what's happening in the game
|
|
161
|
-
events = client.get_events()
|
|
162
|
-
print(f"There are {len(events)} active events right now!")
|
|
163
|
-
|
|
164
|
-
# Don't forget to close the connection
|
|
165
|
-
client.close()
|
|
166
|
-
```
|
|
167
|
-
|
|
168
|
-
**What just happened?**
|
|
169
|
-
- We imported the MC5 client
|
|
170
|
-
- We logged in with your credentials (replace with yours!)
|
|
171
|
-
- We got your profile info
|
|
172
|
-
- We checked what events are active
|
|
173
|
-
- We cleaned up properly
|
|
174
|
-
|
|
175
|
-
### Step 3: Try the Cool CLI Tool
|
|
176
|
-
|
|
177
|
-
The library comes with an awesome command-line tool! Check this out:
|
|
178
|
-
|
|
179
117
|
```bash
|
|
180
118
|
# Generate a token (your login key)
|
|
181
119
|
mc5 generate-token --username "anonymous:your_credential" --password "your_password" --save
|
|
@@ -55,68 +55,6 @@ pip install .
|
|
|
55
55
|
✅ **PyPI URL**: https://pypi.org/project/mc5_api_client/
|
|
56
56
|
✅ **Installation**: `pip install mc5_api_client`
|
|
57
57
|
✅ **CLI Command**: `mc5 --help`
|
|
58
|
-
|
|
59
|
-
### 📦 Package Files
|
|
60
|
-
|
|
61
|
-
✅ **Source Distribution**: `dist/mc5_api_client-1.0.1.tar.gz`
|
|
62
|
-
✅ **Wheel Distribution**: `dist/mc5_api_client-1.0.1-py3-none-any.whl`
|
|
63
|
-
|
|
64
|
-
### 🔧 Build Status
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
### Step 1: Install the Library
|
|
68
|
-
|
|
69
|
-
Just run this in your terminal (Command Prompt/PowerShell):
|
|
70
|
-
|
|
71
|
-
```bash
|
|
72
|
-
pip install mc5_api_client
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
### Step 2: Verify Installation
|
|
76
|
-
|
|
77
|
-
```bash
|
|
78
|
-
# Check the CLI
|
|
79
|
-
mc5 --help
|
|
80
|
-
mc5 version
|
|
81
|
-
|
|
82
|
-
# Test in Python
|
|
83
|
-
python -c "import mc5_api_client; print('✅ MC5 API Client ready!')"
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
### Step 3: Your First Program
|
|
87
|
-
|
|
88
|
-
Copy and paste this simple example to get started:
|
|
89
|
-
|
|
90
|
-
```python
|
|
91
|
-
# Save this as my_mc5_script.py
|
|
92
|
-
from mc5_api_client import MC5Client
|
|
93
|
-
|
|
94
|
-
# Replace with your actual credentials
|
|
95
|
-
username = "YOUR_USERNAME_HERE"
|
|
96
|
-
password = "YOUR_PASSWORD_HERE"
|
|
97
|
-
|
|
98
|
-
# Create client and login
|
|
99
|
-
client = MC5Client(username=username, password=password)
|
|
100
|
-
|
|
101
|
-
# See what's happening in the game
|
|
102
|
-
events = client.get_events()
|
|
103
|
-
print(f"There are {len(events)} active events right now!")
|
|
104
|
-
|
|
105
|
-
# Don't forget to close the connection
|
|
106
|
-
client.close()
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
**What just happened?**
|
|
110
|
-
- We imported the MC5 client
|
|
111
|
-
- We logged in with your credentials (replace with yours!)
|
|
112
|
-
- We got your profile info
|
|
113
|
-
- We checked what events are active
|
|
114
|
-
- We cleaned up properly
|
|
115
|
-
|
|
116
|
-
### Step 3: Try the Cool CLI Tool
|
|
117
|
-
|
|
118
|
-
The library comes with an awesome command-line tool! Check this out:
|
|
119
|
-
|
|
120
58
|
```bash
|
|
121
59
|
# Generate a token (your login key)
|
|
122
60
|
mc5 generate-token --username "anonymous:your_credential" --password "your_password" --save
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "mc5_api_client"
|
|
7
|
-
version = "1.0.
|
|
7
|
+
version = "1.0.5"
|
|
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.
|
|
36
|
+
version="1.0.5",
|
|
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",
|
|
@@ -38,6 +38,7 @@ class MC5Client:
|
|
|
38
38
|
BASE_URLS = {
|
|
39
39
|
"auth": "https://eur-janus.gameloft.com:443",
|
|
40
40
|
"osiris": "https://eur-osiris.gameloft.com:443",
|
|
41
|
+
"janus": "https://eur-janus.gameloft.com",
|
|
41
42
|
"olympus": "https://eur-olympus.gameloft.com:443",
|
|
42
43
|
"iris": "https://eur-iris.gameloft.com:443",
|
|
43
44
|
"hermes": "https://eur-hermes.gameloft.com",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: mc5-api-client
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.5
|
|
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
|
|
@@ -114,68 +114,6 @@ pip install .
|
|
|
114
114
|
✅ **PyPI URL**: https://pypi.org/project/mc5_api_client/
|
|
115
115
|
✅ **Installation**: `pip install mc5_api_client`
|
|
116
116
|
✅ **CLI Command**: `mc5 --help`
|
|
117
|
-
|
|
118
|
-
### 📦 Package Files
|
|
119
|
-
|
|
120
|
-
✅ **Source Distribution**: `dist/mc5_api_client-1.0.1.tar.gz`
|
|
121
|
-
✅ **Wheel Distribution**: `dist/mc5_api_client-1.0.1-py3-none-any.whl`
|
|
122
|
-
|
|
123
|
-
### 🔧 Build Status
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
### Step 1: Install the Library
|
|
127
|
-
|
|
128
|
-
Just run this in your terminal (Command Prompt/PowerShell):
|
|
129
|
-
|
|
130
|
-
```bash
|
|
131
|
-
pip install mc5_api_client
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
### Step 2: Verify Installation
|
|
135
|
-
|
|
136
|
-
```bash
|
|
137
|
-
# Check the CLI
|
|
138
|
-
mc5 --help
|
|
139
|
-
mc5 version
|
|
140
|
-
|
|
141
|
-
# Test in Python
|
|
142
|
-
python -c "import mc5_api_client; print('✅ MC5 API Client ready!')"
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
### Step 3: Your First Program
|
|
146
|
-
|
|
147
|
-
Copy and paste this simple example to get started:
|
|
148
|
-
|
|
149
|
-
```python
|
|
150
|
-
# Save this as my_mc5_script.py
|
|
151
|
-
from mc5_api_client import MC5Client
|
|
152
|
-
|
|
153
|
-
# Replace with your actual credentials
|
|
154
|
-
username = "YOUR_USERNAME_HERE"
|
|
155
|
-
password = "YOUR_PASSWORD_HERE"
|
|
156
|
-
|
|
157
|
-
# Create client and login
|
|
158
|
-
client = MC5Client(username=username, password=password)
|
|
159
|
-
|
|
160
|
-
# See what's happening in the game
|
|
161
|
-
events = client.get_events()
|
|
162
|
-
print(f"There are {len(events)} active events right now!")
|
|
163
|
-
|
|
164
|
-
# Don't forget to close the connection
|
|
165
|
-
client.close()
|
|
166
|
-
```
|
|
167
|
-
|
|
168
|
-
**What just happened?**
|
|
169
|
-
- We imported the MC5 client
|
|
170
|
-
- We logged in with your credentials (replace with yours!)
|
|
171
|
-
- We got your profile info
|
|
172
|
-
- We checked what events are active
|
|
173
|
-
- We cleaned up properly
|
|
174
|
-
|
|
175
|
-
### Step 3: Try the Cool CLI Tool
|
|
176
|
-
|
|
177
|
-
The library comes with an awesome command-line tool! Check this out:
|
|
178
|
-
|
|
179
117
|
```bash
|
|
180
118
|
# Generate a token (your login key)
|
|
181
119
|
mc5 generate-token --username "anonymous:your_credential" --password "your_password" --save
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{mc5_api_client-1.0.4 → mc5_api_client-1.0.5}/src/mc5_api_client.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|