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.6.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.6-py2.py3-none-any.whl (34.2 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: pytenno-0.1.6.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.6.tar.gz
Algorithm Hash digest
SHA256 ae3fe2e93cf413d63a751464850bcf13b2fcf38b37657deaa85241e11017d619
MD5 b462132b96a5955840b27d16cba12b92
BLAKE2b-256 285254c4cabbdefee55b996298f31735f89483ab2e3b8bad08c3f06347d9a704

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pytenno-0.1.6-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.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c7415d1abab53d985d73c31480888ff31cfaaff448bae98637e72cf795520c44
MD5 9d69af0f74dca664c60986adbe6a6d3a
BLAKE2b-256 669ecacd26a465b4ee72a3ee99a27c9cd384f5d810f8c7e46b186057ca905098

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