Skip to main content

Python Judobase API async client

Project description

Judobase API Wrapper

PyPI Python Downloads License Docs Codecov Contributors Ruff

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 JudoBase class.
  • 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.10+
  • 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:

Important: This project is not an official Judobase solution. It is an API wrapper developed through reverse engineering of the Judobase API.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

judobase-2.0.1.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

judobase-2.0.1-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file judobase-2.0.1.tar.gz.

File metadata

  • Download URL: judobase-2.0.1.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for judobase-2.0.1.tar.gz
Algorithm Hash digest
SHA256 e09dc06475f7a2423a4f07511d9f04760a82f730d76aa7fb275d8dde8be49c13
MD5 06dc1cfca4bc09b8243e4da6a4933ff6
BLAKE2b-256 884fd06496c4077a02e7ea9f2e8e4cfc53a23a57d49776a956c115a91c6453d9

See more details on using hashes here.

File details

Details for the file judobase-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: judobase-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for judobase-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 adf1841f945dd0578f5305c5be0a2cfef35064af053c0a16581b8f792d3b76d6
MD5 9169150f68c50bae6e1b70f97d8c9173
BLAKE2b-256 6d0574d6dc06fbc857eea3d34d783781bcb879169a6f7541b87fb0d841f07004

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page