mc5-api-client 1.0.4__py3-none-any.whl → 1.0.5__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/client.py +1 -0
- {mc5_api_client-1.0.4.dist-info → mc5_api_client-1.0.5.dist-info}/METADATA +1 -63
- {mc5_api_client-1.0.4.dist-info → mc5_api_client-1.0.5.dist-info}/RECORD +7 -7
- {mc5_api_client-1.0.4.dist-info → mc5_api_client-1.0.5.dist-info}/LICENSE +0 -0
- {mc5_api_client-1.0.4.dist-info → mc5_api_client-1.0.5.dist-info}/WHEEL +0 -0
- {mc5_api_client-1.0.4.dist-info → mc5_api_client-1.0.5.dist-info}/entry_points.txt +0 -0
- {mc5_api_client-1.0.4.dist-info → mc5_api_client-1.0.5.dist-info}/top_level.txt +0 -0
mc5_api_client/client.py
CHANGED
|
@@ -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
|
|
@@ -132,68 +132,6 @@ pip install .
|
|
|
132
132
|
✅ **PyPI URL**: https://pypi.org/project/mc5_api_client/
|
|
133
133
|
✅ **Installation**: `pip install mc5_api_client`
|
|
134
134
|
✅ **CLI Command**: `mc5 --help`
|
|
135
|
-
|
|
136
|
-
### 📦 Package Files
|
|
137
|
-
|
|
138
|
-
✅ **Source Distribution**: `dist/mc5_api_client-1.0.1.tar.gz`
|
|
139
|
-
✅ **Wheel Distribution**: `dist/mc5_api_client-1.0.1-py3-none-any.whl`
|
|
140
|
-
|
|
141
|
-
### 🔧 Build Status
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
### Step 1: Install the Library
|
|
145
|
-
|
|
146
|
-
Just run this in your terminal (Command Prompt/PowerShell):
|
|
147
|
-
|
|
148
|
-
```bash
|
|
149
|
-
pip install mc5_api_client
|
|
150
|
-
```
|
|
151
|
-
|
|
152
|
-
### Step 2: Verify Installation
|
|
153
|
-
|
|
154
|
-
```bash
|
|
155
|
-
# Check the CLI
|
|
156
|
-
mc5 --help
|
|
157
|
-
mc5 version
|
|
158
|
-
|
|
159
|
-
# Test in Python
|
|
160
|
-
python -c "import mc5_api_client; print('✅ MC5 API Client ready!')"
|
|
161
|
-
```
|
|
162
|
-
|
|
163
|
-
### Step 3: Your First Program
|
|
164
|
-
|
|
165
|
-
Copy and paste this simple example to get started:
|
|
166
|
-
|
|
167
|
-
```python
|
|
168
|
-
# Save this as my_mc5_script.py
|
|
169
|
-
from mc5_api_client import MC5Client
|
|
170
|
-
|
|
171
|
-
# Replace with your actual credentials
|
|
172
|
-
username = "YOUR_USERNAME_HERE"
|
|
173
|
-
password = "YOUR_PASSWORD_HERE"
|
|
174
|
-
|
|
175
|
-
# Create client and login
|
|
176
|
-
client = MC5Client(username=username, password=password)
|
|
177
|
-
|
|
178
|
-
# See what's happening in the game
|
|
179
|
-
events = client.get_events()
|
|
180
|
-
print(f"There are {len(events)} active events right now!")
|
|
181
|
-
|
|
182
|
-
# Don't forget to close the connection
|
|
183
|
-
client.close()
|
|
184
|
-
```
|
|
185
|
-
|
|
186
|
-
**What just happened?**
|
|
187
|
-
- We imported the MC5 client
|
|
188
|
-
- We logged in with your credentials (replace with yours!)
|
|
189
|
-
- We got your profile info
|
|
190
|
-
- We checked what events are active
|
|
191
|
-
- We cleaned up properly
|
|
192
|
-
|
|
193
|
-
### Step 3: Try the Cool CLI Tool
|
|
194
|
-
|
|
195
|
-
The library comes with an awesome command-line tool! Check this out:
|
|
196
|
-
|
|
197
135
|
```bash
|
|
198
136
|
# Generate a token (your login key)
|
|
199
137
|
mc5 generate-token --username "anonymous:your_credential" --password "your_password" --save
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
mc5_api_client/__init__.py,sha256=VtZ8P-CwnjHSq6VmSuBwVttNXIK3qoOrFuNxXMVeaMc,1021
|
|
2
2
|
mc5_api_client/auth.py,sha256=Yj_6s8KmtbswWbR6q816d8soIirUF2aD_KWxg-jNqR0,9978
|
|
3
3
|
mc5_api_client/cli.py,sha256=KegNTxwq28gu_vrffc_cXcALrHzUBDHd-5DqKyYp4p0,17284
|
|
4
|
-
mc5_api_client/client.py,sha256=
|
|
4
|
+
mc5_api_client/client.py,sha256=Ha9BMIsNpabd7-SPCqcIl5beeuyQnLPEJB8AVCg472k,65520
|
|
5
5
|
mc5_api_client/exceptions.py,sha256=o7od4GrEIlgq6xSNUjZdh74xoDTytF3PLcMq5ewRiJw,2683
|
|
6
6
|
mc5_api_client/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
|
-
mc5_api_client-1.0.
|
|
8
|
-
mc5_api_client-1.0.
|
|
9
|
-
mc5_api_client-1.0.
|
|
10
|
-
mc5_api_client-1.0.
|
|
11
|
-
mc5_api_client-1.0.
|
|
12
|
-
mc5_api_client-1.0.
|
|
7
|
+
mc5_api_client-1.0.5.dist-info/LICENSE,sha256=M0UBQ4B3pB9XcV54_jhVP681xyauF8GB6YK_rKmuXzk,1064
|
|
8
|
+
mc5_api_client-1.0.5.dist-info/METADATA,sha256=KMtXbEbXHSuGOIfPTigMVZdRdGvLXT9GZGLsun6sJos,35725
|
|
9
|
+
mc5_api_client-1.0.5.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
10
|
+
mc5_api_client-1.0.5.dist-info/entry_points.txt,sha256=2kruOpleFYK3Jl1MoQwGyqCd-Pj4kQWngXmIjnXx_gE,48
|
|
11
|
+
mc5_api_client-1.0.5.dist-info/top_level.txt,sha256=eYJe4ue9j1ig_jFY5Z05mDqpizUEV7TYpk5lBXVd4kA,15
|
|
12
|
+
mc5_api_client-1.0.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|