PyTenno is an asynchronous wrapper for the warframe.market API, written in Python.
PyTenno is not associated with warframe.market or any of its affiliates. PyTenno is not associated with Digital Extremes or any of its affiliates.
Use your favorite spice of the following:
py -m pip install git+https://github.com/ShadowMagic896/pytenno.git
- Git-SCM is required for direct installation
py -m pip install pytenno
The project's only requirement is aiohttp, which is available on PyPi.
aiohttp >= 3.8.1
- Python datatypes, attributes, etc.
- Asyncrhonous programming in Python (Coroutines,
async
,await
) - Fundamental understanding of context managers in Python (
async with
) - How warframe.market works
- Warframe mechanics
import asyncio # To use asynchronous programming
import pytenno
from pytenno.models.enums import Platform # To specify platforms for requests
async def main(): # PyTenno is asynchronous, so it must be done in an asynchronous context
default_language = "en" # Set default response language to English
default_platform = Platform.pc # Set default platform to PC
# Create a client with the default language and platform
# This must be done in an asynchronous context manager (async with ... [as ...])
async with pytenno.PyTenno(default_language, default_platform) as tenno:
... # Example code goes here
if __name__ == "__main__":
asyncio.run(main()) # Create a new asyncio loop and run the coroutine
email = "you@example.com" # Email to account
password = "password123" # Password to account
current_user = await tenno.Auth.login(
email=email,
password=password
) # Log in to warframe.market
# Note: the API stores absoloutely zero information about data passed. All code
# is open-source and available at https://github.com/ShadowMagic896/pytenno
print(current_user.ingame_name) # Print the ingame name of the user that was logged in