Skip to main content

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


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

Uploaded Source

Built Distribution

fusio_sdk-5.1.9-py3-none-any.whl (167.6 kB view details)

Uploaded Python 3

File details

Details for the file fusio_sdk-5.1.9.tar.gz.

File metadata

  • Download URL: fusio_sdk-5.1.9.tar.gz
  • Upload date:
  • Size: 38.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for fusio_sdk-5.1.9.tar.gz
Algorithm Hash digest
SHA256 83fa5c906bf11a1b5952ccfa0dece47fbe6385ae79c2885955901cb42a759b74
MD5 c2b7034b71b27a922c1c9f33a323b1a5
BLAKE2b-256 22d1c161f23bc194a62685b85d5706a63c33848b067c062e9eb1f1853104ea0a

See more details on using hashes here.

File details

Details for the file fusio_sdk-5.1.9-py3-none-any.whl.

File metadata

  • Download URL: fusio_sdk-5.1.9-py3-none-any.whl
  • Upload date:
  • Size: 167.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for fusio_sdk-5.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 890047438a18fe2b35c2781c7576c6e0a00571fdb4fb7447fcbb7adfa76e4863
MD5 6bf2a416edac53af8c9edb049bd8b678
BLAKE2b-256 9fdcac3d384ea77ed8ef4b16a1c2e71786703ff3cd7f9e1597e0794584558153

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page