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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for psutierlist_api_wrapper-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ce2615e55d256d6f13a4c0c57040b7ff3e8e115c7879bb74bc27d7f8e6fc3e7e
MD5 fe85788147d817f7c775a837de659dc3
BLAKE2b-256 fcbbf57669458592ce4573a89c18d98b9a7cfd9ab8de0ac4509e50851a4bf895

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