Skip to main content

Python Loading SDK

PyPI Version Supported Python versions CI status on main

Read Loading.se forums and editorials, search posts, and join discussions from synchronous or asynchronous Python code.

Installation

Requires Python 3.12 or later.

pip install python-loading-sdk

Usage

Read public threads

Use LoadingApiClient to read the games forum without credentials.

from loading_sdk import LoadingApiClient

with LoadingApiClient() as client:
    response = client.get_games()
    if response["message"] == "OK":
        for thread in response["data"]["posts"]:
            print(thread["title"])

Access your profile asynchronously

Both clients accept an email and password for profile access and posting. This example reads credentials from environment variables. With AsyncLoadingApiClient, await both client creation and each API call.

import asyncio
import os

from loading_sdk import AsyncLoadingApiClient


async def main():
    async with await AsyncLoadingApiClient(
        email=os.environ["LOADING_EMAIL"],
        password=os.environ["LOADING_PASSWORD"],
    ) as client:
        response = await client.get_profile()
        if response["code"] == 200:
            print(response["data"]["name"])


asyncio.run(main())

Operations

Use these calls with a synchronous client. With an async client, add await before each call.

Public reads

response = client.search(query="search query")
response = client.get_post(post_id="5bc876dd70a79c001dab7ebe")
response = client.get_thread(thread_id="5bbb986af1deda001d33bc4b", page=3)
response = client.get_games(page=5)
response = client.get_other(page=7)
response = client.get_editorials(page=2, post_type="review", sort="title")
response = client.get_about()
response = client.get_socials()
response = client.get_total_thread_pages(thread_id="5bbb986af1deda001d33bc4b")
response = client.get_total_category_pages(category="games")

Requires login

response = client.get_profile()

response = client.create_post(
    thread_id="5bbb986af1deda001d33bc4b", message="My message!"
)

response = client.edit_post(
    post_id="5bc876dd70a79c001dab7ebe", message="My updated message!"
)

response = client.create_thread(
    title="My title", message="The content!", category_name="games"
)

response = client.edit_thread(
    thread_id="5bbb986af1deda001d33bc4b", message="My updated message!"
)

Connections and errors

  • Connection reuse. Use with or async with to share a pool across operations. By default, each operation opens and closes its own pool. Login cookies persist on the SDK instance.
  • Custom transports. Set transport to an HTTPX transport such as httpx.MockTransport to enable pooling immediately. Each client owns its transport. Release it with a context manager, close(), or await aclose().
  • Timeouts. Sync requests default to 10 seconds per network phase. Async requests have a 300-second total deadline including redirects, with a 30-second connection timeout. Set timeout in seconds to override the default.
  • Errors and redirects. API errors return dictionaries. Network failures raise HTTPX exceptions. The SDK follows redirects and restricts login cookies to authenticated requests on the API origin. A redirect that would replay an authenticated form on another origin raises httpx.RequestError.

Development

The checkout defaults to Python 3.15. From the repository root, install the locked dependencies with uv.

uv sync --locked
uv run ruff format --check .
uv run ruff check .
uv run ty check
uv run pytest --cov=loading_sdk --cov-branch
uv build

uv build writes the wheel and source distribution to dist/. For publishing instructions, see the maintainer guide.

Documentation

Edit the user guide in docs/source/index.rst and the API descriptions in the client docstrings under src/loading_sdk/. Build the HTML preview with Sphinx.

uv run --locked --group docs sphinx-build -W -b html docs/source docs/build/html

Open docs/build/html/index.html in a browser. CI runs the same check, and Git ignores the generated HTML. PyPI displays this README as the project description.

Metadata

Release files for python-loading-sdk 0.5.5

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

Source distribution (sdist)

Source distribution for python-loading-sdk 0.5.5
File Size Uploaded Provenance Actions
python_loading_sdk-0.5.5.tar.gz 52.6 kB With provenance Details for python_loading_sdk-0.5.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for python-loading-sdk 0.5.5
File Interpreter ABI Platform Actions
python_loading_sdk-0.5.5-py3-none-any.whl Python 3 none any Details for python_loading_sdk-0.5.5-py3-none-any.whl

Total release size: 68.6 kB

Release files / python_loading_sdk-0.5.5.tar.gz

Download URL python_loading_sdk-0.5.5.tar.gz
Size 52.6 kB
Tags Source
SHA-256 checksum
How to use checksums
032ea5225ab038a8793bb2b41e50352a4a69ae73261323524c04127f6efc2f70
BLAKE2b-256 checksum
How to use checksums
6b533d3dc7db739cfcbd048b070a2b7e3d3d94119c1ca80656f6c0a61daed377
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 30, 2026.

Transparency log

Release files / python_loading_sdk-0.5.5-py3-none-any.whl

Download URL python_loading_sdk-0.5.5-py3-none-any.whl
Size 16.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b596eb7490e5a3709bfbc828d9e9c5ae7e2f47fe15c9e5465671fe2423718691
BLAKE2b-256 checksum
How to use checksums
acaed6283594fd8dd9c5dc0d3c4d535ccf2c930597d3b7d5ef67623b1e31f02d
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 30, 2026.

Transparency log

Security for python-loading-sdk 0.5.5

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 python_loading_sdk-0.5.5.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 30, 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