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.

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.0.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.0.1
File Size Uploaded Provenance Actions
judobase-3.0.1.tar.gz 20.1 kB With provenance Details for judobase-3.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 39.9 kB

Release files / judobase-3.0.1.tar.gz

Download URL judobase-3.0.1.tar.gz
Size 20.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7e77ba02bf13e41d1e26d8d822fc3d906d4848971e55b937bf8c37299116f443
BLAKE2b-256 checksum
How to use checksums
ded21e688a470b441131d57ef28162a9c7e13a5a4444cb013f74c0dd1a67c667
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 Oct 27, 2026.

Transparency log

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

Download URL judobase-3.0.1-py3-none-any.whl
Size 19.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d93044c86eec75a961fe80a737e8e7db01ae63551784f06e6abfc77cf9524f03
BLAKE2b-256 checksum
How to use checksums
24189aa8198b1895cc5f2d11a825fcfc4e1223c877c55192df0302726d262cfb
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 Oct 27, 2026.

Transparency log

Security for judobase 3.0.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.0.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 Oct 27, 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