Skip to main content

API Wrapper

Project description

psutierlist-api-wrapper

A fully-typed, modern Python wrapper for the internal API used on psutierlist.org.

[!WARNING] This library is not affiliated with the website or anyone behind SPL's PSU Tier List. It may break at any time if the API changes, due to this being an unofficial wrapper that relies on an undocumented API.

Installation

This package is on PyPI, so you can use pip:

pip install psutierlist-api-wrapper

Usage

Sync usage:

import psutierlist_api_wrapper as paw

def main() -> None:
    pages = paw.get_pages()  # type is `paw.Response`

if __name__ == "__main__":
    main()

Async usage:

import asyncio
import psutierlist_api_wrapper as paw

async def main() -> None:
    pages = await paw.get_pages_async()

if __name__ == "__main__":
    asyncio.run(main())

Docs

I have not written docs yet. The code is pretty simple and self-explanatory, so you can just browse through psutierlist_api_wrapper/__init__.py and psutierlist_api_wrapper/enums.py at the GitHub Page to see how everything is structured. Sorry for the inconvenience!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

psutierlist_api_wrapper-1.0.2-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file psutierlist_api_wrapper-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for psutierlist_api_wrapper-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 79e4a3860f0f26012b1cd0eef9253eb5ec5069255f8742c65eb057f913105a44
MD5 30946bdf8f5d71f4a3e9cfc838fbf546
BLAKE2b-256 7f63b4c9407eedb486b09e4efe3157f461366f48f78274660158629086bea713

See more details on using hashes here.

Supported by

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