Skip to main content

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.
  • RatingAPI: Base methods for fetching the World Ranking List: the whole current list or one competitor's rows.

Upgrading to 3.0

Version 3.0 returns values with their real types instead of the raw strings of the API:

  • Ids are int: id_fight, id_competition, id_country, id_person_blue, ...
  • "Unknown" values (0, "0", "") are None: id_winner before a contest is decided, fighters before the draw sets them, dob_year, id_weight, ...
  • Competition.date_from / date_to are datetime.date (they were datetime at midnight UTC).
  • Unknown times are None instead of 1970-01-01: Contest.date_start_ts, Contest.first_hajime_at_ts, Judoka.birth_date.
  • Contest.bye and Competition.is_teams are bool.
  • Competition.has_results is still int: it is the number of results, not a flag.
  • Methods taking ids accept both int and str.
  • The request timeout can be set: JudoBase(timeout=30) (10 seconds by default).
# 2.x
if contest.id_winner != "0" and contest.id_winner == contest.id_person_blue: ...
# 3.x
if contest.id_winner is not None and contest.id_winner == contest.id_person_blue: ...

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.

Metadata

Release files for judobase 3.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for judobase 3.1.1
File Size Uploaded Provenance Actions
judobase-3.1.1.tar.gz 21.5 kB With provenance Details for judobase-3.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for judobase 3.1.1
File Interpreter ABI Platform Actions
judobase-3.1.1-py3-none-any.whl Python 3 none any Details for judobase-3.1.1-py3-none-any.whl

Total release size: 42.7 kB

Release files / judobase-3.1.1.tar.gz

Download URL judobase-3.1.1.tar.gz
Size 21.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6551edda8962b32c72030402b69e3343ddebcfd0da2b2254d9cf87cc834d7903
BLAKE2b-256 checksum
How to use checksums
25f421b7ed98d1d3c5494c82336dc69a3ca273ad611b9b648dcd0bb7352c0ae6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Release files / judobase-3.1.1-py3-none-any.whl

Download URL judobase-3.1.1-py3-none-any.whl
Size 21.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
675f4b4877f878b9008a0ee98bc038bbbda8cae57e2509cf66aabe2097014440
BLAKE2b-256 checksum
How to use checksums
fc8e281d26e7464cb012a5acacf55eee3b30e6ea7a3b4a822072967e8b7b93e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Security for judobase 3.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for judobase-3.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page