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.3.tar.gz
(36.8 kB
view hashes)
Built Distribution
fusio_sdk-5.1.3-py3-none-any.whl
(162.6 kB
view hashes)
Close
Hashes for fusio_sdk-5.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4d22ae1d2cf1714b957891ca0ca9301e42f9f63780ceb17ada6239da0e57cf1 |
|
MD5 | f32aa5a43a76fc430744180f63df0e8e |
|
BLAKE2b-256 | 41797fa2bb9f3931af4cd7bb14484cad516cebfab0f5b83b280b88c2bf7978ab |