Skip to main content

A asynchronous Python library for interacting with the warframe.market API

Project description

PyTenno

PyTenno is an asynchronous wrapper for the warframe.market API, written in Python.

Read Documentation

Disclaimer

PyTenno is not associated with warframe.market or any of its affiliates. PyTenno is not associated with Digital Extremes or any of its affiliates.

Installation

Git

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

PyPi

py -m pip install pytenno

Requirements

The project's only requirement is aiohttp, which is available on PyPi.

aiohttp >= 3.8.1

Skill-Set Requirements

PyTenno Requires Fundamental understanding of the following:

  1. Python datatypes, attributes, etc.
  2. Asyncrhonous programming in Python (Coroutines, async, await)
  3. Fundamental understanding of context managers in Python (async with)
  4. How warframe.market works
  5. Warframe mechanics

Examples

The Following Code Will Be Used in the Examples

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

Log into warframe.market

        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

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

pytenno-0.1.5.tar.gz (24.2 kB view details)

Uploaded Source

Built Distribution

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

pytenno-0.1.5-py2.py3-none-any.whl (34.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file pytenno-0.1.5.tar.gz.

File metadata

  • Download URL: pytenno-0.1.5.tar.gz
  • Upload date:
  • Size: 24.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.10.5 Windows/10

File hashes

Hashes for pytenno-0.1.5.tar.gz
Algorithm Hash digest
SHA256 c89dc066cd70b7b5187440df1b7707b688a40d4334966c2b873a67519f6aaccb
MD5 270c3a321592bee56a20ca787f9a3740
BLAKE2b-256 329327301d08b71c7ed254910274d0b551f0998edf94e1cdb33e5898f83e5797

See more details on using hashes here.

File details

Details for the file pytenno-0.1.5-py2.py3-none-any.whl.

File metadata

  • Download URL: pytenno-0.1.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 34.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.14 CPython/3.10.5 Windows/10

File hashes

Hashes for pytenno-0.1.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 daf053b2200d1b5f5e19a6c303dae58127a09abf6e41bc63e9a4bb4855fba4ca
MD5 e6e821d15851d264fc14c7fa3535bb35
BLAKE2b-256 2e5de1abf0989cfeae019b81c919954dc002e237d3d14a83cb72f738385fd91d

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