crawlora-sofascore 0.1.0__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.
- crawlora_sofascore/__init__.py +18 -0
- crawlora_sofascore/__init__.pyi +10 -0
- crawlora_sofascore/_pagination.py +44 -0
- crawlora_sofascore/_transport_sync.py +114 -0
- crawlora_sofascore/async_client.py +321 -0
- crawlora_sofascore/client.py +671 -0
- crawlora_sofascore/operations.py +222 -0
- crawlora_sofascore/platform.py +197 -0
- crawlora_sofascore/platform.pyi +1816 -0
- crawlora_sofascore/py.typed +0 -0
- crawlora_sofascore-0.1.0.dist-info/METADATA +60 -0
- crawlora_sofascore-0.1.0.dist-info/RECORD +15 -0
- crawlora_sofascore-0.1.0.dist-info/WHEEL +5 -0
- crawlora_sofascore-0.1.0.dist-info/licenses/LICENSE +21 -0
- crawlora_sofascore-0.1.0.dist-info/top_level.txt +1 -0
|
File without changes
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: crawlora-sofascore
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Typed SofaScore client for the Crawlora hosted API
|
|
5
|
+
Author: Crawlora
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/Crawlora-org/crawlora-sofascore
|
|
8
|
+
Project-URL: Repository, https://github.com/Crawlora-org/crawlora-sofascore
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
11
|
+
Classifier: Typing :: Typed
|
|
12
|
+
Requires-Python: >=3.10
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
License-File: LICENSE
|
|
15
|
+
Requires-Dist: typing-extensions>=4.7; python_version < "3.11"
|
|
16
|
+
Provides-Extra: async
|
|
17
|
+
Requires-Dist: httpx>=0.27; extra == "async"
|
|
18
|
+
Provides-Extra: test
|
|
19
|
+
Requires-Dist: mypy>=1.11; extra == "test"
|
|
20
|
+
Requires-Dist: pytest>=8; extra == "test"
|
|
21
|
+
Dynamic: license-file
|
|
22
|
+
|
|
23
|
+
# crawlora-sofascore
|
|
24
|
+
|
|
25
|
+
Python client for Crawlora's hosted SofaScore API. It calls Crawlora's
|
|
26
|
+
service; it does not run a browser or scrape SofaScore locally. A Crawlora
|
|
27
|
+
account and `CRAWLORA_API_KEY` are required, and API use is billed under your
|
|
28
|
+
Crawlora account. Crawlora is independent from and not endorsed by
|
|
29
|
+
SofaScore or its owners.
|
|
30
|
+
|
|
31
|
+
## Install
|
|
32
|
+
|
|
33
|
+
```sh
|
|
34
|
+
python -m pip install crawlora-sofascore
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Use
|
|
38
|
+
|
|
39
|
+
```python
|
|
40
|
+
import os
|
|
41
|
+
|
|
42
|
+
from crawlora_sofascore import SofascoreClient
|
|
43
|
+
|
|
44
|
+
with SofascoreClient(api_key=os.environ["CRAWLORA_API_KEY"]) as client:
|
|
45
|
+
result = client.search(q='Liverpool')
|
|
46
|
+
print(result)
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
The package also exports `Client` as an alias for `SofascoreClient`. Operation
|
|
50
|
+
methods are available directly in snake_case and through the `sofascore`
|
|
51
|
+
group. The async package client is `AsyncSofascoreClient`; see the [online
|
|
52
|
+
endpoint and parameter reference](https://github.com/Crawlora-org/crawlora-sofascore/blob/main/docs/usage.md) and [runnable example](https://github.com/Crawlora-org/crawlora-sofascore/blob/main/examples/python.py).
|
|
53
|
+
|
|
54
|
+
The import snippet above is for a project where this PyPI package is installed. To run the checked-in example from a source checkout, install `./python` from the repository root and run `python examples/python.py`; see the [source-checkout instructions](https://github.com/Crawlora-org/crawlora-sofascore#run-examples-from-a-source-checkout).
|
|
55
|
+
|
|
56
|
+
## Configuration
|
|
57
|
+
|
|
58
|
+
Pass your key through `api_key` or read `CRAWLORA_API_KEY` from the environment.
|
|
59
|
+
Keep credentials out of source control and logs. Requests go to Crawlora's
|
|
60
|
+
hosted API, and response data and availability follow its current contract.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
crawlora_sofascore/__init__.py,sha256=gjlf1Bjjva43KAXbFCzNZ6nYv11mfWn6281lNiingVM,791
|
|
2
|
+
crawlora_sofascore/__init__.pyi,sha256=MbqZIOxOaOU-GcUhBYji6Ivb6suJajlMu0UPcKGGpTs,806
|
|
3
|
+
crawlora_sofascore/_pagination.py,sha256=EzD7JNJ4UpA-CnQOoXoXKQ0RFCOyNUQ7PQohz9VxDuM,1362
|
|
4
|
+
crawlora_sofascore/_transport_sync.py,sha256=Vel66LuNbN9S-lXLu5aYRzanHD3kGt61ukDu0NLqlPI,4294
|
|
5
|
+
crawlora_sofascore/async_client.py,sha256=tDX3WuQQUDBph84XpIlk2YHAAGRD5s66NMSzcH41TgY,13691
|
|
6
|
+
crawlora_sofascore/client.py,sha256=UIeZYcHZTj0VZClkAl6kwMr5e4hNCYQ_lclJCjZ6Rcs,27245
|
|
7
|
+
crawlora_sofascore/operations.py,sha256=ES7pHBxrh8NpGHX71-u7nW2Hi8Z056FyPAOAdcXvk9g,12911
|
|
8
|
+
crawlora_sofascore/platform.py,sha256=a4KwhBFbZ6SJjuMbCR_CM4QxnzHCkF8rNk09ImLItUw,10733
|
|
9
|
+
crawlora_sofascore/platform.pyi,sha256=tn5NvYKogIN3Miu4C_h4ex5kGKaiDTMTC_-_umOiIE4,75228
|
|
10
|
+
crawlora_sofascore/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
11
|
+
crawlora_sofascore-0.1.0.dist-info/licenses/LICENSE,sha256=AJCfINUOcsaheBDv_3ZGzXaEnoibR9-WgzVfXKXxeuQ,1065
|
|
12
|
+
crawlora_sofascore-0.1.0.dist-info/METADATA,sha256=wS7JuXG2qDpnDuj2gb0wOakjq7uFs_aps4amVjsLNAA,2439
|
|
13
|
+
crawlora_sofascore-0.1.0.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
14
|
+
crawlora_sofascore-0.1.0.dist-info/top_level.txt,sha256=YQkpP5mnX-aW6qOb6cmjdyPVIR8n5MzCgcpX0jvnBq4,19
|
|
15
|
+
crawlora_sofascore-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Crawlora
|
|
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.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
crawlora_sofascore
|