Patch 0.2.3
This version addresses several issues related to recent API changes, as well as a number of performance and bugfixes.
Features
- Experimental support for third-party endpoints has been introduced to the REST and WSS endpoints (57)
Note that these endpoints are currently still compared against the API spec of the Census, making this support limited to endpoints that exactly mirror the DBG Census. Larger fixes to support custom endpoints and data types seamlessly is planned, proper documentation will be created once this has been established.
Example for REST clients with endpoint fall-through
All requests will first be made to the first entry in the list, then fail over to the next one on error.
DBG_CENSUS = 'http://census.daybreakgames.com'
FALLBACK_ENDPOINT = 'https://my.custom.endpoint.xyz'
async with auraxium.Client(endpoints=[DBG_CENSUS, FALLBACK_ENDPOINT]) as client:
...
Example for ESS clients (only 1 endpoint supported)
Known working endpoints are available in the auraxium.endpoints
namespace.
import auraxium
from auraxium import event
from auraxium.endpoints import NANITE_SYSTEMS
async def main():
async with auraxium.EventClient(ess_endpoint=NANITE_SYSTEMS) as client:
...
Fixes
- Resolved an issue with the
Character.items()
helper when accessing internal/removed items for which noItem
type exists (#58) Client.get_by_name(ps2.Character, 'Higby')
will now target thecharacter.name.first_lower
field instead of using a case-insensitive query (#61)- Added guard against spurious errors on shutdown on Python <3.11 (#60)