rimble 0.1.0__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.
- rimble-0.1.0/LICENSE +21 -0
- rimble-0.1.0/MANIFEST.in +2 -0
- rimble-0.1.0/PKG-INFO +88 -0
- rimble-0.1.0/README.md +73 -0
- rimble-0.1.0/pyproject.toml +17 -0
- rimble-0.1.0/rimble/__init__.py +5 -0
- rimble-0.1.0/rimble/client.py +52 -0
- rimble-0.1.0/rimble/exceptions.py +8 -0
- rimble-0.1.0/rimble.egg-info/PKG-INFO +88 -0
- rimble-0.1.0/rimble.egg-info/SOURCES.txt +13 -0
- rimble-0.1.0/rimble.egg-info/dependency_links.txt +1 -0
- rimble-0.1.0/rimble.egg-info/requires.txt +1 -0
- rimble-0.1.0/rimble.egg-info/top_level.txt +1 -0
- rimble-0.1.0/setup.cfg +4 -0
- rimble-0.1.0/setup.py +15 -0
rimble-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Rimble
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
rimble-0.1.0/MANIFEST.in
ADDED
rimble-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: rimble
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Python SDK for the Rimble Raw Data API — esports data for LoL, CS:GO, DOTA 2, Valorant, and more.
|
|
5
|
+
Home-page: https://www.rimble.io
|
|
6
|
+
Author: Rimble
|
|
7
|
+
Author-email: support@rimble.io
|
|
8
|
+
License: MIT
|
|
9
|
+
Project-URL: Homepage, https://www.rimble.io
|
|
10
|
+
Project-URL: Documentation, https://www.rimble.io/docs
|
|
11
|
+
Project-URL: Repository, https://github.com/rimble/rimble-python
|
|
12
|
+
Requires-Python: >=3.7
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
License-File: LICENSE
|
|
15
|
+
|
|
16
|
+
# Rimble Python SDK
|
|
17
|
+
|
|
18
|
+
Python client for the [Rimble Raw Data API](https://www.rimble.io/docs) — real-time esports data across 10 titles.
|
|
19
|
+
|
|
20
|
+
## Installation
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
pip install rimble
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Quick Start
|
|
27
|
+
|
|
28
|
+
```python
|
|
29
|
+
from rimble import RimbleClient
|
|
30
|
+
|
|
31
|
+
client = RimbleClient(api_key="YOUR_API_KEY")
|
|
32
|
+
|
|
33
|
+
# Get upcoming League of Legends matches
|
|
34
|
+
matches = client.get_upcoming_matches("lol")
|
|
35
|
+
for match in matches:
|
|
36
|
+
print(f"{match['team_1_name']} vs {match['team_2_name']} — {match['date']}")
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Filtering with Query Parameters
|
|
40
|
+
|
|
41
|
+
```python
|
|
42
|
+
# Filter by date
|
|
43
|
+
matches = client.get_upcoming_matches("csgo", date="2024-03-15")
|
|
44
|
+
|
|
45
|
+
# Filter by team
|
|
46
|
+
matches = client.get_upcoming_matches("valorant", team="Sentinels")
|
|
47
|
+
|
|
48
|
+
# Filter by league
|
|
49
|
+
matches = client.get_completed_matches("lol", league="LCS")
|
|
50
|
+
|
|
51
|
+
# Multiple filters
|
|
52
|
+
matches = client.get_completed_matches("dota2", date="2024-03-10", team="OG")
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Available Methods
|
|
56
|
+
|
|
57
|
+
| Method | Description |
|
|
58
|
+
|--------|-------------|
|
|
59
|
+
| `get_upcoming_matches(sport, **params)` | Upcoming matches |
|
|
60
|
+
| `get_live_matches(sport, **params)` | Currently live matches |
|
|
61
|
+
| `get_completed_matches(sport, **params)` | Completed matches (last 5 days) |
|
|
62
|
+
| `get_match_status(sport, matchid, **params)` | Status of a specific match |
|
|
63
|
+
| `get_league_mappings(sport, **params)` | League/tournament directory |
|
|
64
|
+
| `get_teams(sport, **params)` | Team directory |
|
|
65
|
+
| `get_players(sport, **params)` | Player directory |
|
|
66
|
+
|
|
67
|
+
## Supported Esports
|
|
68
|
+
|
|
69
|
+
`lol`, `csgo`, `dota2`, `valorant`, `rocketleague`, `cod`, `nba2k`, `fifa`, `siege`, `cricket`
|
|
70
|
+
|
|
71
|
+
## Error Handling
|
|
72
|
+
|
|
73
|
+
```python
|
|
74
|
+
from rimble import RimbleClient, RimbleAPIError
|
|
75
|
+
|
|
76
|
+
client = RimbleClient(api_key="YOUR_API_KEY")
|
|
77
|
+
|
|
78
|
+
try:
|
|
79
|
+
matches = client.get_upcoming_matches("lol")
|
|
80
|
+
except RimbleAPIError as e:
|
|
81
|
+
print(f"API error: {e.status_code} — {e.message}")
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## Links
|
|
85
|
+
|
|
86
|
+
- [API Documentation](https://www.rimble.io/docs)
|
|
87
|
+
- [Website](https://www.rimble.io)
|
|
88
|
+
- [Contact](mailto:support@rimble.io)
|
rimble-0.1.0/README.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# Rimble Python SDK
|
|
2
|
+
|
|
3
|
+
Python client for the [Rimble Raw Data API](https://www.rimble.io/docs) — real-time esports data across 10 titles.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pip install rimble
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Quick Start
|
|
12
|
+
|
|
13
|
+
```python
|
|
14
|
+
from rimble import RimbleClient
|
|
15
|
+
|
|
16
|
+
client = RimbleClient(api_key="YOUR_API_KEY")
|
|
17
|
+
|
|
18
|
+
# Get upcoming League of Legends matches
|
|
19
|
+
matches = client.get_upcoming_matches("lol")
|
|
20
|
+
for match in matches:
|
|
21
|
+
print(f"{match['team_1_name']} vs {match['team_2_name']} — {match['date']}")
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Filtering with Query Parameters
|
|
25
|
+
|
|
26
|
+
```python
|
|
27
|
+
# Filter by date
|
|
28
|
+
matches = client.get_upcoming_matches("csgo", date="2024-03-15")
|
|
29
|
+
|
|
30
|
+
# Filter by team
|
|
31
|
+
matches = client.get_upcoming_matches("valorant", team="Sentinels")
|
|
32
|
+
|
|
33
|
+
# Filter by league
|
|
34
|
+
matches = client.get_completed_matches("lol", league="LCS")
|
|
35
|
+
|
|
36
|
+
# Multiple filters
|
|
37
|
+
matches = client.get_completed_matches("dota2", date="2024-03-10", team="OG")
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Available Methods
|
|
41
|
+
|
|
42
|
+
| Method | Description |
|
|
43
|
+
|--------|-------------|
|
|
44
|
+
| `get_upcoming_matches(sport, **params)` | Upcoming matches |
|
|
45
|
+
| `get_live_matches(sport, **params)` | Currently live matches |
|
|
46
|
+
| `get_completed_matches(sport, **params)` | Completed matches (last 5 days) |
|
|
47
|
+
| `get_match_status(sport, matchid, **params)` | Status of a specific match |
|
|
48
|
+
| `get_league_mappings(sport, **params)` | League/tournament directory |
|
|
49
|
+
| `get_teams(sport, **params)` | Team directory |
|
|
50
|
+
| `get_players(sport, **params)` | Player directory |
|
|
51
|
+
|
|
52
|
+
## Supported Esports
|
|
53
|
+
|
|
54
|
+
`lol`, `csgo`, `dota2`, `valorant`, `rocketleague`, `cod`, `nba2k`, `fifa`, `siege`, `cricket`
|
|
55
|
+
|
|
56
|
+
## Error Handling
|
|
57
|
+
|
|
58
|
+
```python
|
|
59
|
+
from rimble import RimbleClient, RimbleAPIError
|
|
60
|
+
|
|
61
|
+
client = RimbleClient(api_key="YOUR_API_KEY")
|
|
62
|
+
|
|
63
|
+
try:
|
|
64
|
+
matches = client.get_upcoming_matches("lol")
|
|
65
|
+
except RimbleAPIError as e:
|
|
66
|
+
print(f"API error: {e.status_code} — {e.message}")
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## Links
|
|
70
|
+
|
|
71
|
+
- [API Documentation](https://www.rimble.io/docs)
|
|
72
|
+
- [Website](https://www.rimble.io)
|
|
73
|
+
- [Contact](mailto:support@rimble.io)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=64", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "rimble"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Python SDK for the Rimble Raw Data API — esports data for LoL, CS:GO, DOTA 2, Valorant, and more."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = {text = "MIT"}
|
|
11
|
+
requires-python = ">=3.7"
|
|
12
|
+
dependencies = ["requests>=2.20.0"]
|
|
13
|
+
|
|
14
|
+
[project.urls]
|
|
15
|
+
Homepage = "https://www.rimble.io"
|
|
16
|
+
Documentation = "https://www.rimble.io/docs"
|
|
17
|
+
Repository = "https://github.com/rimble/rimble-python"
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import requests
|
|
2
|
+
from .exceptions import RimbleAPIError
|
|
3
|
+
|
|
4
|
+
VALID_SPORTS = ('lol', 'csgo', 'dota2', 'valorant', 'rocketleague', 'cod', 'nba2k', 'fifa', 'siege', 'cricket')
|
|
5
|
+
DEFAULT_BASE_URL = 'https://rimbleanalytics.com'
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class RimbleClient:
|
|
9
|
+
"""Client for the Rimble Raw Data API."""
|
|
10
|
+
|
|
11
|
+
def __init__(self, api_key, base_url=DEFAULT_BASE_URL):
|
|
12
|
+
self.api_key = api_key
|
|
13
|
+
self.base_url = base_url.rstrip('/')
|
|
14
|
+
self.session = requests.Session()
|
|
15
|
+
self.session.headers.update({'x-api-key': api_key})
|
|
16
|
+
|
|
17
|
+
def _request(self, sport, endpoint, **params):
|
|
18
|
+
if sport not in VALID_SPORTS:
|
|
19
|
+
raise ValueError(f"Invalid sport '{sport}'. Must be one of: {', '.join(VALID_SPORTS)}")
|
|
20
|
+
url = f"{self.base_url}/raw/{sport}/{endpoint}/"
|
|
21
|
+
resp = self.session.get(url, params=params or None)
|
|
22
|
+
if resp.status_code != 200:
|
|
23
|
+
raise RimbleAPIError(resp.status_code, response=resp)
|
|
24
|
+
return resp.json()
|
|
25
|
+
|
|
26
|
+
def get_upcoming_matches(self, sport, **params):
|
|
27
|
+
"""Get upcoming matches. Params: date, matchid, time, team, league."""
|
|
28
|
+
return self._request(sport, 'upcoming-matches', **params)
|
|
29
|
+
|
|
30
|
+
def get_live_matches(self, sport, **params):
|
|
31
|
+
"""Get live matches. Params: date, matchid, time, team, league."""
|
|
32
|
+
return self._request(sport, 'live-matches', **params)
|
|
33
|
+
|
|
34
|
+
def get_completed_matches(self, sport, **params):
|
|
35
|
+
"""Get completed matches (last 5 days). Params: date, matchid, time, team, league."""
|
|
36
|
+
return self._request(sport, 'completed-matches', **params)
|
|
37
|
+
|
|
38
|
+
def get_match_status(self, sport, matchid, **params):
|
|
39
|
+
"""Get match status. Returns: upcoming, live, ended, completed, or cancelled."""
|
|
40
|
+
return self._request(sport, 'match-status', matchid=matchid, **params)
|
|
41
|
+
|
|
42
|
+
def get_league_mappings(self, sport, **params):
|
|
43
|
+
"""Get league/tournament mappings. Params: league_id, name, min_prize_money."""
|
|
44
|
+
return self._request(sport, 'league-mappings', **params)
|
|
45
|
+
|
|
46
|
+
def get_teams(self, sport, **params):
|
|
47
|
+
"""Get teams. Params: id."""
|
|
48
|
+
return self._request(sport, 'teams', **params)
|
|
49
|
+
|
|
50
|
+
def get_players(self, sport, **params):
|
|
51
|
+
"""Get players. Params: id."""
|
|
52
|
+
return self._request(sport, 'players', **params)
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
class RimbleAPIError(Exception):
|
|
2
|
+
"""Raised when the Rimble API returns a non-200 response."""
|
|
3
|
+
|
|
4
|
+
def __init__(self, status_code, message=None, response=None):
|
|
5
|
+
self.status_code = status_code
|
|
6
|
+
self.message = message or f"API request failed with status {status_code}"
|
|
7
|
+
self.response = response
|
|
8
|
+
super().__init__(self.message)
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: rimble
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Python SDK for the Rimble Raw Data API — esports data for LoL, CS:GO, DOTA 2, Valorant, and more.
|
|
5
|
+
Home-page: https://www.rimble.io
|
|
6
|
+
Author: Rimble
|
|
7
|
+
Author-email: support@rimble.io
|
|
8
|
+
License: MIT
|
|
9
|
+
Project-URL: Homepage, https://www.rimble.io
|
|
10
|
+
Project-URL: Documentation, https://www.rimble.io/docs
|
|
11
|
+
Project-URL: Repository, https://github.com/rimble/rimble-python
|
|
12
|
+
Requires-Python: >=3.7
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
License-File: LICENSE
|
|
15
|
+
|
|
16
|
+
# Rimble Python SDK
|
|
17
|
+
|
|
18
|
+
Python client for the [Rimble Raw Data API](https://www.rimble.io/docs) — real-time esports data across 10 titles.
|
|
19
|
+
|
|
20
|
+
## Installation
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
pip install rimble
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Quick Start
|
|
27
|
+
|
|
28
|
+
```python
|
|
29
|
+
from rimble import RimbleClient
|
|
30
|
+
|
|
31
|
+
client = RimbleClient(api_key="YOUR_API_KEY")
|
|
32
|
+
|
|
33
|
+
# Get upcoming League of Legends matches
|
|
34
|
+
matches = client.get_upcoming_matches("lol")
|
|
35
|
+
for match in matches:
|
|
36
|
+
print(f"{match['team_1_name']} vs {match['team_2_name']} — {match['date']}")
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Filtering with Query Parameters
|
|
40
|
+
|
|
41
|
+
```python
|
|
42
|
+
# Filter by date
|
|
43
|
+
matches = client.get_upcoming_matches("csgo", date="2024-03-15")
|
|
44
|
+
|
|
45
|
+
# Filter by team
|
|
46
|
+
matches = client.get_upcoming_matches("valorant", team="Sentinels")
|
|
47
|
+
|
|
48
|
+
# Filter by league
|
|
49
|
+
matches = client.get_completed_matches("lol", league="LCS")
|
|
50
|
+
|
|
51
|
+
# Multiple filters
|
|
52
|
+
matches = client.get_completed_matches("dota2", date="2024-03-10", team="OG")
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Available Methods
|
|
56
|
+
|
|
57
|
+
| Method | Description |
|
|
58
|
+
|--------|-------------|
|
|
59
|
+
| `get_upcoming_matches(sport, **params)` | Upcoming matches |
|
|
60
|
+
| `get_live_matches(sport, **params)` | Currently live matches |
|
|
61
|
+
| `get_completed_matches(sport, **params)` | Completed matches (last 5 days) |
|
|
62
|
+
| `get_match_status(sport, matchid, **params)` | Status of a specific match |
|
|
63
|
+
| `get_league_mappings(sport, **params)` | League/tournament directory |
|
|
64
|
+
| `get_teams(sport, **params)` | Team directory |
|
|
65
|
+
| `get_players(sport, **params)` | Player directory |
|
|
66
|
+
|
|
67
|
+
## Supported Esports
|
|
68
|
+
|
|
69
|
+
`lol`, `csgo`, `dota2`, `valorant`, `rocketleague`, `cod`, `nba2k`, `fifa`, `siege`, `cricket`
|
|
70
|
+
|
|
71
|
+
## Error Handling
|
|
72
|
+
|
|
73
|
+
```python
|
|
74
|
+
from rimble import RimbleClient, RimbleAPIError
|
|
75
|
+
|
|
76
|
+
client = RimbleClient(api_key="YOUR_API_KEY")
|
|
77
|
+
|
|
78
|
+
try:
|
|
79
|
+
matches = client.get_upcoming_matches("lol")
|
|
80
|
+
except RimbleAPIError as e:
|
|
81
|
+
print(f"API error: {e.status_code} — {e.message}")
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## Links
|
|
85
|
+
|
|
86
|
+
- [API Documentation](https://www.rimble.io/docs)
|
|
87
|
+
- [Website](https://www.rimble.io)
|
|
88
|
+
- [Contact](mailto:support@rimble.io)
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
MANIFEST.in
|
|
3
|
+
README.md
|
|
4
|
+
pyproject.toml
|
|
5
|
+
setup.py
|
|
6
|
+
rimble/__init__.py
|
|
7
|
+
rimble/client.py
|
|
8
|
+
rimble/exceptions.py
|
|
9
|
+
rimble.egg-info/PKG-INFO
|
|
10
|
+
rimble.egg-info/SOURCES.txt
|
|
11
|
+
rimble.egg-info/dependency_links.txt
|
|
12
|
+
rimble.egg-info/requires.txt
|
|
13
|
+
rimble.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
requests>=2.20.0
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
rimble
|
rimble-0.1.0/setup.cfg
ADDED
rimble-0.1.0/setup.py
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from setuptools import setup, find_packages
|
|
2
|
+
|
|
3
|
+
setup(
|
|
4
|
+
name='rimble',
|
|
5
|
+
version='0.1.0',
|
|
6
|
+
packages=find_packages(),
|
|
7
|
+
install_requires=['requests>=2.20.0'],
|
|
8
|
+
python_requires='>=3.7',
|
|
9
|
+
author='Rimble',
|
|
10
|
+
author_email='support@rimble.io',
|
|
11
|
+
description='Python SDK for the Rimble Raw Data API',
|
|
12
|
+
long_description=open('README.md').read(),
|
|
13
|
+
long_description_content_type='text/markdown',
|
|
14
|
+
url='https://www.rimble.io',
|
|
15
|
+
)
|