Python api wrapper for loading.se
Project description
Python Loading SDK
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()
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.2.2.tar.gz
(44.8 kB
view details)
Built Distribution
File details
Details for the file python-loading-sdk-0.2.2.tar.gz
.
File metadata
- Download URL: python-loading-sdk-0.2.2.tar.gz
- Upload date:
- Size: 44.8 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3dcac12fcead337f53617f35fb861e6bb05d516d26428939dafa785732e5c65c |
|
MD5 | fbb6be089b5ff2fedf20373775bc9376 |
|
BLAKE2b-256 | ce60683672ae8d3f513b7aa8716721bfc9d984883fa03e1f9315c6d3283f6898 |
File details
Details for the file python_loading_sdk-0.2.2-py3-none-any.whl
.
File metadata
- Download URL: python_loading_sdk-0.2.2-py3-none-any.whl
- Upload date:
- Size: 49.3 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | d66859220f567c2b342e28a8b472e62e4d555d40b3cfa9dc0d095dc57c7b71fe |
|
MD5 | ed808bd5d0d47c68d64c6c50da77374a |
|
BLAKE2b-256 | c9c05f22399ab3392609f6040259c8cb74419e2dc02e24a6ddd2a2738b3007b6 |