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.1-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for psutierlist_api_wrapper-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 daeb493f4f8b07d0b59105705a038bfc35cc2f124a8e23a862bbc719e3433e69
MD5 cd950b748e8d57f0e3718e505594ec66
BLAKE2b-256 a1beca7c8c75a5bd2a0ab9f337975b50d884e068f3a78ae36bd5c0538d726582

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