An asynchronous Python API wrapper for the Warframestat API and (later) the warframe.market API.
Project description
An asynchronous and typed Python API wrapper for the Warframestat API and (later) the warframe.market API.
What to expect
This library is in its early states. The goal is to make it the best and most up-to-date Python Warframe API wrapper.
Quickstart
# queries are just another way to get the data to the corresponding objects.
# this is really just personal preference.
import asyncio
import logging
from warframe.worldstate import WorldstateClient, WorldstateLogger
# import the models you want to use
from warframe.worldstate.models import Cetus
async def main():
# Note that the default logger is pretty much empty (nothing will be logged)
# so if you want to make use of the logger, make your own:
logger = WorldstateLogger("name whatever you want", logging.DEBUG)
logger.addHandler(logging.StreamHandler())
async with WorldstateClient(logger=logger) as client: # pass the logger
cetus = await client.get_cetus()
# or ...
# just throw the model into `query(type)`
# note that for stuff like fissures you need `query_list_of(type)`
cetus = await client.query(Cetus)
print(cetus)
if __name__ == "__main__":
loop = asyncio.new_event_loop()
loop.run_until_complete(main())
Installing
To install the library, use the following command:
pip install warframe.py
Supported python versions:
3.11
3.10
3.9
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
warframe.py-1.0.0.tar.gz
(16.1 kB
view hashes)
Built Distribution
Close
Hashes for warframe.py-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1482af56f8ac0837cf318cd472de0ead0f13682f59d7e4a951458cc375dffaec |
|
MD5 | 75fbaa47a931b03543bb8d00f2d4fe30 |
|
BLAKE2b-256 | e438d23f62651fcc6ca66e1b9bbf18888653a06ccba42fc26cfa78889455aa52 |