Skip to main content

An asynchronous Python API wrapper for the Warframestat API and (later) the warframe.market API.

Project description

PyPI version info PyPI supported Python versions semantic-release: angular

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

import asyncio
import logging

from warframe.worldstate import WorldstateClient, utils

# 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, you can use this helper function:
    utils.setup_logging(handler=logging.StreamHandler(), level=logging.DEBUG, root=True)

    async with WorldstateClient() as client:
        # get current cetus data
        cetus = await client.get_cetus()

        # or... get it like this:

        # queries are just another way to get the data to the corresponding objects.
        # this is really just personal preference.
        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


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.1.0.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

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

warframe.py-1.1.0-py3-none-any.whl (24.3 kB view details)

Uploaded Python 3

File details

Details for the file warframe.py-1.1.0.tar.gz.

File metadata

  • Download URL: warframe.py-1.1.0.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for warframe.py-1.1.0.tar.gz
Algorithm Hash digest
SHA256 7d6115577ef5a7b5a90a9de230d8dd3d354938435d10cb43842d257c5ad28fc5
MD5 913bd423e6b5d79f1b212b4400153ccc
BLAKE2b-256 db7ffd7f91bcb45effedf4dd1b5be9e79da10fef5dfffe45a774d3b500eb7b72

See more details on using hashes here.

File details

Details for the file warframe.py-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: warframe.py-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 24.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for warframe.py-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 60719b04f750239af42aad25f9985505dd554d17a0568ceea36641ca00922daa
MD5 3ae4755da74d8459f148c2f41aed978a
BLAKE2b-256 48f5a2cdc4f100db90e8c76941ce01515a3830da2ec917564ecd4ed7d37da21a

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