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.0

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

Built distribution (wheel)

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

Total release size: 42.3 kB

Release files / judobase-3.1.0.tar.gz

Download URL judobase-3.1.0.tar.gz
Size 21.2 kB
Tags Source
SHA-256 checksum
How to use checksums
77baa32a24e7bcdf6a9048c402d7227efb14d43a0c65e7d62e58e24a6cb7024a
BLAKE2b-256 checksum
How to use checksums
e98329a36092f7b417791b3aecf5df51ba2e7df69807cc351b23fb642516e41f
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 28, 2026.

Transparency log

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

Download URL judobase-3.1.0-py3-none-any.whl
Size 21.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f8c9a80ab5fe884e631150cca11c87535226905111a71440b457b5be66af3875
BLAKE2b-256 checksum
How to use checksums
3572f6503ef037931b593f9a60d83b9f60a98f02515b17defd7a0cdcf7f4f135
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 28, 2026.

Transparency log

Security for judobase 3.1.0

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.0.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 28, 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