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.toolsWagoAPI.get_latest_build(product): Returns the latest build for the specified productWagoAPI.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 FileDataIDWagoAPI.get_all_files(): Returns all available files in the specified format, or json by default- Optionally, specify a version and format
Release files for wago-api 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| wago_api-0.0.1.tar.gz | 4.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wago_api-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.7 kB
Release files / wago_api-0.0.1.tar.gz
| Download URL | wago_api-0.0.1.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d140b69e6e31f9bf695784516a97f88ef3c911c9e6a53ad63baf8df605bad0d7
|
|
BLAKE2b-256 checksum How to use checksums |
d7ceed1a38129fb039c018f1208c975faea41cb96997b9fe5177ad0dd4c8e715
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.21
|
Release files / wago_api-0.0.1-py3-none-any.whl
| Download URL | wago_api-0.0.1-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
837bafdae49247aa012ed1c9179a64b124e9583908fa44694be6e9f79218596c
|
|
BLAKE2b-256 checksum How to use checksums |
63c05cade34364fe237454bfbb8f4f572ffe4401dde03287ce6c850cfafef345
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.9.21
|