Skip to main content

A Path of Exile API wrapper

Project description

Path of Apis

A single Python library for multiple APIs that cover Path of Exile, currently supporting poe2scout.com.

Overview

path_of_apis is a Python library designed to provide a clean, type-safe, and easy-to-use interface for interacting with various APIs related to Path of Exile (PoE). Currently, it supports the poe2scout.com API, which provides data on items, leagues, currencies, and more.

This library is built with type hints and modular design in mind, making it easy to extend to support additional APIs in the future.

Installation

pip install path_of_apis

Usage

✅ Basic Example

from path_of_apis.poe_scout.api import Poe2ScoutAPI

api = Poe2ScoutAPI()
api.default.check_live()
api.default.check_ready()

📦 Available Endpoints

  • /Health - Check if the API is live and ready
  • /Realms - Get realm data
  • /Leagues - Get league data and exchange info
  • /Items - Get item data, price history, and more
  • /Uniques - Get unique item data
  • /Currencies - Get currency data and exchange history

🧠 Type Hints

All classes and methods are fully typed with Python's type hints, ensuring better code readability and IDE support.

Example:

from path_of_apis.poe_scout.api import Poe2ScoutAPI

api: Poe2ScoutAPI = Poe2ScoutAPI()
item: Item = api.items.get_items("poe2", "runes")[0]

🧪 Testing

This project includes a full test suite using pytest, and you can run it with:

pytest tests/test_poe_scout.py

Example Usage

Get Realms

from path_of_apis.poe_scout.api import Poe2ScoutAPI

api = Poe2ScoutAPI()
realms = api.realms.get_realms()
print(realms)

Get Leagues

from path_of_apis.poe_scout.api import Poe2ScoutAPI

api = Poe2ScoutAPI()
leagues = api.leagues.get_leagues("poe2")
print(leagues)

Get Items

from path_of_apis.poe_scout.api import Poe2ScoutAPI

api = Poe2ScoutAPI()
items = api.items.get_items("poe2", "runes")
for item in items:
    print(f"{item.Name}: {item.CurrentPrice}")

License

MIT License

Contributing

Contributions are welcome! If you'd like to add support for additional APIs or improve the library, feel free to open a PR or issue.

Roadmap

  • Add support for more PoE APIs
  • Improve type hints and documentation
  • Add more detailed error handling
  • Add async support for faster API calls

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

path_of_apis-0.1.0.tar.gz (30.8 kB view details)

Uploaded Source

Built Distribution

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

path_of_apis-0.1.0-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file path_of_apis-0.1.0.tar.gz.

File metadata

  • Download URL: path_of_apis-0.1.0.tar.gz
  • Upload date:
  • Size: 30.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for path_of_apis-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d80ce5e7d925c02502611f7e334b3ca34722f1fa96a9b78262d2b19901efc5cf
MD5 f9557fbdefd241949fa9cbf961eba373
BLAKE2b-256 c609d1cbefa501f998bab2a91451a2613693ed6510b9c0361164c979e9f92d69

See more details on using hashes here.

File details

Details for the file path_of_apis-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: path_of_apis-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for path_of_apis-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1af59d8388a0488afa5f4a1b7b70be3181ab1a1234f3de4412f99c805c58e543
MD5 6bd24a72f4f728a8863c0c37835779ff
BLAKE2b-256 bbf071c4a31c60a47e9dc5a5ef3b0172dd118a65c1da3b9707c8b47a35b60a30

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