OpenMLBB 4.0.6__tar.gz → 4.0.7__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.
- {openmlbb-4.0.6 → openmlbb-4.0.7}/OpenMLBB/README.md +10 -0
- {openmlbb-4.0.6 → openmlbb-4.0.7}/OpenMLBB/src/OpenMLBB/_version.py +1 -1
- {openmlbb-4.0.6 → openmlbb-4.0.7}/OpenMLBB/src/OpenMLBB.egg-info/PKG-INFO +11 -1
- {openmlbb-4.0.6 → openmlbb-4.0.7}/PKG-INFO +11 -1
- {openmlbb-4.0.6 → openmlbb-4.0.7}/README.md +25 -0
- {openmlbb-4.0.6 → openmlbb-4.0.7}/tests/test_web_interface.py +11 -0
- {openmlbb-4.0.6 → openmlbb-4.0.7}/LICENSE +0 -0
- {openmlbb-4.0.6 → openmlbb-4.0.7}/OpenMLBB/src/OpenMLBB/__init__.py +0 -0
- {openmlbb-4.0.6 → openmlbb-4.0.7}/OpenMLBB/src/OpenMLBB/client.py +0 -0
- {openmlbb-4.0.6 → openmlbb-4.0.7}/OpenMLBB/src/OpenMLBB.egg-info/SOURCES.txt +0 -0
- {openmlbb-4.0.6 → openmlbb-4.0.7}/OpenMLBB/src/OpenMLBB.egg-info/dependency_links.txt +0 -0
- {openmlbb-4.0.6 → openmlbb-4.0.7}/OpenMLBB/src/OpenMLBB.egg-info/requires.txt +0 -0
- {openmlbb-4.0.6 → openmlbb-4.0.7}/OpenMLBB/src/OpenMLBB.egg-info/top_level.txt +0 -0
- {openmlbb-4.0.6 → openmlbb-4.0.7}/pyproject.toml +0 -0
- {openmlbb-4.0.6 → openmlbb-4.0.7}/setup.cfg +0 -0
- {openmlbb-4.0.6 → openmlbb-4.0.7}/tests/test_client_ip.py +0 -0
- {openmlbb-4.0.6 → openmlbb-4.0.7}/tests/test_endpoints.py +0 -0
- {openmlbb-4.0.6 → openmlbb-4.0.7}/tests/test_user_router.py +0 -0
- {openmlbb-4.0.6 → openmlbb-4.0.7}/tests/test_validation_errors.py +0 -0
|
@@ -69,3 +69,13 @@ The default `User-Agent` is:
|
|
|
69
69
|
`RoneAI-OpenMLBB-Python-SDK`
|
|
70
70
|
|
|
71
71
|
You can override it by passing `user_agent=` to `OpenMLBB(...)`.
|
|
72
|
+
|
|
73
|
+
## TypeScript Alternative
|
|
74
|
+
|
|
75
|
+
If your project is using TypeScript or JavaScript, an alternative SDK is available on npm:
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
npm install mlbb-sdk
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Package page: `https://www.npmjs.com/package/mlbb-sdk`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: OpenMLBB
|
|
3
|
-
Version: 4.0.
|
|
3
|
+
Version: 4.0.7
|
|
4
4
|
Summary: Official Python SDK for the MLBB Public Data API
|
|
5
5
|
Author: ridwaanhall
|
|
6
6
|
License: BSD-3-Clause
|
|
@@ -87,3 +87,13 @@ The default `User-Agent` is:
|
|
|
87
87
|
`RoneAI-OpenMLBB-Python-SDK`
|
|
88
88
|
|
|
89
89
|
You can override it by passing `user_agent=` to `OpenMLBB(...)`.
|
|
90
|
+
|
|
91
|
+
## TypeScript Alternative
|
|
92
|
+
|
|
93
|
+
If your project is using TypeScript or JavaScript, an alternative SDK is available on npm:
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
npm install mlbb-sdk
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Package page: `https://www.npmjs.com/package/mlbb-sdk`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: OpenMLBB
|
|
3
|
-
Version: 4.0.
|
|
3
|
+
Version: 4.0.7
|
|
4
4
|
Summary: Official Python SDK for the MLBB Public Data API
|
|
5
5
|
Author: ridwaanhall
|
|
6
6
|
License: BSD-3-Clause
|
|
@@ -87,3 +87,13 @@ The default `User-Agent` is:
|
|
|
87
87
|
`RoneAI-OpenMLBB-Python-SDK`
|
|
88
88
|
|
|
89
89
|
You can override it by passing `user_agent=` to `OpenMLBB(...)`.
|
|
90
|
+
|
|
91
|
+
## TypeScript Alternative
|
|
92
|
+
|
|
93
|
+
If your project is using TypeScript or JavaScript, an alternative SDK is available on npm:
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
npm install mlbb-sdk
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Package page: `https://www.npmjs.com/package/mlbb-sdk`
|
|
@@ -36,6 +36,7 @@ This API & Web provides access to hero analytics, in-game performance data, acad
|
|
|
36
36
|
| Tutorial and Blog | [mlbb.rone.dev/blog](https://mlbb.rone.dev/blog) | Guides, tutorials, and release/changelog posts. |
|
|
37
37
|
| Web Playground | [mlbb.rone.dev/web](https://mlbb.rone.dev/web) | Interactive endpoint workspace for executing API requests from browser forms. |
|
|
38
38
|
| OpenMLBB SDK Docs | [mlbb.rone.dev/openmlbb](https://mlbb.rone.dev/openmlbb) | Structured Python SDK docs for academy, mlbb, user, and addon clients with endpoint-level examples. |
|
|
39
|
+
| TypeScript SDK (Alternative) | [npmjs.com/package/mlbb-sdk](https://www.npmjs.com/package/mlbb-sdk) | Alternative SDK option for TypeScript/JavaScript projects. |
|
|
39
40
|
| Swagger UI | [mlbb.rone.dev/api/docs](https://mlbb.rone.dev/api/docs) | OpenAPI-powered docs with live request execution and authorization support. |
|
|
40
41
|
| ReDoc | [mlbb.rone.dev/api/redoc](https://mlbb.rone.dev/api/redoc) | Alternative API documentation view optimized for reference reading. |
|
|
41
42
|
| OpenAPI JSON | [mlbb.rone.dev/api/openapi.json](https://mlbb.rone.dev/api/openapi.json) | Raw OpenAPI schema for tooling, SDK generation, and integrations. |
|
|
@@ -100,6 +101,30 @@ SDK defaults:
|
|
|
100
101
|
- Response type: JSON payload mapped to Python dictionary
|
|
101
102
|
- User-Agent: `RoneAI-OpenMLBB-Python-SDK`
|
|
102
103
|
|
|
104
|
+
## TypeScript SDK (Alternative)
|
|
105
|
+
|
|
106
|
+
If your project is using TypeScript or JavaScript, you can use `mlbb-sdk` as an alternative SDK.
|
|
107
|
+
|
|
108
|
+
Install:
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
npm install mlbb-sdk
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
Quick start:
|
|
115
|
+
|
|
116
|
+
```ts
|
|
117
|
+
import { createMlbbClient } from "mlbb-sdk";
|
|
118
|
+
|
|
119
|
+
const client = createMlbbClient({ lang: "en" });
|
|
120
|
+
|
|
121
|
+
const heroes = await client.mlbb.getHeroes();
|
|
122
|
+
const roles = await client.academy.getRoles();
|
|
123
|
+
|
|
124
|
+
console.log(heroes);
|
|
125
|
+
console.log(roles);
|
|
126
|
+
```
|
|
127
|
+
|
|
103
128
|
### Automated Release Rules (4.x.x)
|
|
104
129
|
|
|
105
130
|
- Workflow file: `.github/workflows/python-publish.yml`
|
|
@@ -308,6 +308,7 @@ def test_openmlbb_page_is_available() -> None:
|
|
|
308
308
|
assert home_response.status_code == 200
|
|
309
309
|
assert "OpenMLBB SDK" in home_response.text
|
|
310
310
|
assert "pip install OpenMLBB" in home_response.text
|
|
311
|
+
assert "npm install mlbb-sdk" in home_response.text
|
|
311
312
|
assert '/openmlbb/user' in home_response.text
|
|
312
313
|
|
|
313
314
|
response = client.get("/openmlbb/academy/meta/version")
|
|
@@ -364,6 +365,7 @@ def test_landing_page_highlights_openmlbb_install() -> None:
|
|
|
364
365
|
|
|
365
366
|
assert response.status_code == 200
|
|
366
367
|
assert "pip install OpenMLBB" in response.text
|
|
368
|
+
assert "npm install mlbb-sdk" in response.text
|
|
367
369
|
assert "Official Python SDK" in response.text
|
|
368
370
|
assert 'data-copy-pip-install' in response.text
|
|
369
371
|
|
|
@@ -372,9 +374,18 @@ def test_blog_list_includes_v4_0_4_release_notes() -> None:
|
|
|
372
374
|
response = client.get("/blog")
|
|
373
375
|
|
|
374
376
|
assert response.status_code == 200
|
|
377
|
+
assert "MLBB API Web v4.0.7 Release Notes (4.0.6 -> 4.0.7)" in response.text or "MLBB API Web v4.0.7 Release Notes (4.0.6 -> 4.0.7)" in response.text
|
|
375
378
|
assert "MLBB API Web v4.0.4 Release Notes (3.2.3 -> 4.0.4)" in response.text or "MLBB API Web v4.0.4 Release Notes (3.2.3 -> 4.0.4)" in response.text
|
|
376
379
|
|
|
377
380
|
|
|
381
|
+
def test_blog_detail_v4_0_7_release_notes_includes_typescript_alternative() -> None:
|
|
382
|
+
response = client.get("/blog/mlbb-api-web-v4-0-7-release-notes-4-0-6-4-0-7")
|
|
383
|
+
|
|
384
|
+
assert response.status_code == 200
|
|
385
|
+
assert "Version move: 4.0.6 -> 4.0.7" in response.text or "Version move: 4.0.6 -> 4.0.7" in response.text
|
|
386
|
+
assert "npm install mlbb-sdk" in response.text
|
|
387
|
+
|
|
388
|
+
|
|
378
389
|
def test_blog_detail_v4_0_4_release_notes_no_commit_hash() -> None:
|
|
379
390
|
response = client.get("/blog/mlbb-api-web-v4-0-4-release-notes-3-2-3-4-0-4")
|
|
380
391
|
|
|
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
|