Python Judobase API async client
Project description
Judobase API Wrapper
Judobase API Wrapper is a Python library that provides a async interface to interact with the Judobase API. Developed entirely through reverse engineering, this wrapper allows developers to access and integrate Judobase data effortlessly into their projects.
Table of Contents
Features
- Reverse Engineered: Reverse engineered base Judobase API methods. Access to data
on tournaments, athletes, results is available by python classes
JudokaAPI,CompetitionAPI,ContestAPI,CountryAPI. - Extension: Implemented additional methods to the API to make it more user-friendly.
Look at
JudoBaseclass. - Pydantic Schemas: All data is returned as Pydantic models, making it easy to work with.
- Async: All requests are asynchronous, allowing for faster data retrieval.
Installation
Requirements
- Python 3.8+
- pip (Python package installer)
pip
pip install judobase
Usage
After installing the library, you can easily integrate it into your project. Below is a basic usage example:
import asyncio
from judobase import JudoBase, Competition, Contest
async def main():
async with JudoBase() as api:
contests: list[Contest] = await api.all_contests()
print(len(contests)) # Output: 195161
api = JudoBase()
olympic_games_2024: Competition = await api.competition_by_id(2653)
print(olympic_games_2024.city) # Output: Paris
await api.close_session()
asyncio.run(main())
Key classes
JudoBase: Main class that provides access to user-friendly methods.JudokaAPI: Base methods for fetching data about athletes.CompetitionAPI: Base methods for fetching data about competitions.ContestAPI: Base methods for fetching data about contests.CountryAPI: Base methods for fetching data about countries.
Documentation
For a detailed description of all available methods and endpoints, please refer to the Documentation.
Contributing
Contributions are welcome! Also, if you have any questions or suggestions, please feel free to open an issue.
Note: See CONTRIBUTING.md and CODE_OF_CONDUCT.md for details on how to contribute..
License
This project is licensed under the MIT License. See the LICENSE file for more details.
Contact
If you have any questions or suggestions, please feel free to reach out:
- GitHub: DavidDzgoev
- Email: ddzgoev@gmail.com
Important: This project is not an official Judobase solution. It is an API wrapper developed through reverse engineering of the Judobase API.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file judobase-1.0.3.tar.gz.
File metadata
- Download URL: judobase-1.0.3.tar.gz
- Upload date:
- Size: 16.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33916957c1fba29e6be2c97550cff86dc55b4d965e230d534e94b897fec56c41
|
|
| MD5 |
f1922d4bda45831ca6666a16e9cd92de
|
|
| BLAKE2b-256 |
59f78f878a25598450d1a4edb5d4d361c67db97e52ead08981452eaad7ce78d4
|
File details
Details for the file judobase-1.0.3-py3-none-any.whl.
File metadata
- Download URL: judobase-1.0.3-py3-none-any.whl
- Upload date:
- Size: 16.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f123975a4d62a2cf8c826790613f1fc2be0c99b45fe3b5873c067a2e014fec32
|
|
| MD5 |
a3115ed463444dbe4cab9c5770e7f7c6
|
|
| BLAKE2b-256 |
280aac90f6f2102c6f849ea48a21682438cd6f5d7ef9995a3fd7de3bc023d0f1
|