Skip to main content

An async API wrapper for wago.tools

Project description

py-wago-api

An asynchronous Python wrapper for the wago.tools API

Install

pip install git+https://github.com/Ghostopheles/py-wago-api.git

Usage

All responses are converted from their usual JSON format into Python objects.

from wago import WagoAPI

async def main():
    client = WagoAPI()

    fdid = 6420120
    file = await client.get_file_by_fdid(fdid)

Methods

Builds
  • WagoAPI.get_all_builds(): Returns all builds that have been processed by wago.tools
  • WagoAPI.get_latest_build(product): Returns the latest build for the specified product
  • WagoAPI.get_latest_build_for_all_products(): Returns the latest build for all products
Files
  • WagoAPI.get_file_by_fdid(fdid): Returns the contents of a CASC file by FileDataID
    • Optionally, provide a version to grab the file for the specified build (i.e. "11.0.7.58187")
  • WagoAPI.get_file_info_by_fdid(fdid): Returns metadata about a given CASC file by FileDataID
  • WagoAPI.get_all_files(): Returns all available files in the specified format, or json by default
    • Optionally, specify a version and format

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

wago_api-0.0.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

wago_api-0.0.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file wago_api-0.0.1.tar.gz.

File metadata

  • Download URL: wago_api-0.0.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.21

File hashes

Hashes for wago_api-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d140b69e6e31f9bf695784516a97f88ef3c911c9e6a53ad63baf8df605bad0d7
MD5 6c236ca38505e4dcf3e8bcae877b7e26
BLAKE2b-256 d7ceed1a38129fb039c018f1208c975faea41cb96997b9fe5177ad0dd4c8e715

See more details on using hashes here.

File details

Details for the file wago_api-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: wago_api-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.21

File hashes

Hashes for wago_api-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 837bafdae49247aa012ed1c9179a64b124e9583908fa44694be6e9f79218596c
MD5 318376efc109606fe859bac182b24914
BLAKE2b-256 63c05cade34364fe237454bfbb8f4f572ffe4401dde03287ce6c850cfafef345

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