Skip to main content

Python api wrapper for loading.se

Project description

Python Loading SDK

PyPI Version Build Status

Install

pip install python-loading-sdk

Usage

Instantiate the client and optionally provide login credentials to be able to use methods that requires the user to be logged in.

from loading_sdk import LoadingApiClient

client = LoadingApiClient(email="your@email.com", password="your_password")

response = client.get_profile()

It can also be used asyncrounously:

from loading_sdk import AsyncLoadingApiClient

client = await AsyncLoadingApiClient(email="your@email.com", password="your_password")

response = await client.get_profile()

Examples

Requires Auth

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(post_id="5bbb986af1deda001d33bc4b", message="My updated message!")

Anonymous

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")

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

python-loading-sdk-0.4.0.tar.gz (45.9 kB view details)

Uploaded Source

Built Distribution

python_loading_sdk-0.4.0-py3-none-any.whl (51.1 kB view details)

Uploaded Python 3

File details

Details for the file python-loading-sdk-0.4.0.tar.gz.

File metadata

  • Download URL: python-loading-sdk-0.4.0.tar.gz
  • Upload date:
  • Size: 45.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.10.6 Linux/5.15.0-1017-azure

File hashes

Hashes for python-loading-sdk-0.4.0.tar.gz
Algorithm Hash digest
SHA256 7190abde9752d796aa6c7bab5a55ae31ba20857ed8778be2e98f4af766f73676
MD5 02a86b17e72f35e7ad370f468e12995d
BLAKE2b-256 b711c42a69d7d138d239bd7724276f0e7241f280bb469a84390b569736f400d2

See more details on using hashes here.

File details

Details for the file python_loading_sdk-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: python_loading_sdk-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 51.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.10.6 Linux/5.15.0-1017-azure

File hashes

Hashes for python_loading_sdk-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a5f5b38ed6f4c173595cd760c84923d123fd79c3ad34f74295e6f21c56a4ded3
MD5 d0a8e0189f51dca9839003b8362306ad
BLAKE2b-256 c1b0c2356407b4af50fed52becba29120c6031186df751cb66b1e6c47c4c1af4

See more details on using hashes here.

Supported by

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