SDK to talk to the Fusio REST API
Project description
Fusio Python SDK
This is the official Fusio Python SDK, it helps to talk to the Fusio REST API. Fusio is an open source API management system, more information at: https://www.fusio-project.org
Usage
The following example shows how you can get all registered routes at the backend. A working example is also available at: https://github.com/apioo/fusio-sample-python-cli
from sdk.client import Client
from sdkgen import OAuth2, MemoryTokenStore
tokenStore = MemoryTokenStore()
scopes = ["backend"]
credentials = OAuth2(
"test",
"FRsNh1zKCXlB",
"https://demo.fusio-project.org/authorization/token",
"",
tokenStore,
scopes
)
client = Client("https://demo.fusio-project.org", credentials)
print("Operations:")
collection = client.backend().operation().get_all(0, 16, "")
for operation in collection.entry:
print(" * " + operation.http_method + " " + operation.http_path)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fusio_sdk-5.1.8.tar.gz
(36.6 kB
view hashes)
Built Distribution
fusio_sdk-5.1.8-py3-none-any.whl
(161.2 kB
view hashes)
Close
Hashes for fusio_sdk-5.1.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65ed9d0aa6379eae55fe104155a3cf4aa65b028d4fb02235bf2f10016968d32f |
|
MD5 | a24ccad6d17b457e1e9f85d48f2ecea3 |
|
BLAKE2b-256 | 44eabe224362d8f47d6936792c22463283637747eb5889b8e0292c320ab8f93b |