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

Uploaded Source

Built Distribution

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

fusio_sdk-5.1.14-py3-none-any.whl (165.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fusio_sdk-5.1.14.tar.gz
  • Upload date:
  • Size: 36.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for fusio_sdk-5.1.14.tar.gz
Algorithm Hash digest
SHA256 b349a14c696ca074deadd0915dd80ae5cdd5f843e57f5b7f8e9089a3145d8dca
MD5 85a378e72d29bb8deae0f202be63a642
BLAKE2b-256 ddc2c358c3139d3f83a9ad6a0dd6b06eafe76db293292e8b5f16dd8eb876834c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fusio_sdk-5.1.14-py3-none-any.whl
  • Upload date:
  • Size: 165.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for fusio_sdk-5.1.14-py3-none-any.whl
Algorithm Hash digest
SHA256 cb79d8bd7cc2acb52b6596a7739087fbe5a17546116401cc6c2a2972b8eaa52c
MD5 b6256847041c906929d184361112cbce
BLAKE2b-256 9305bbf06fd93d9c97cb141aadb67ce63386306a4d340b16fab4349b8a0f1c64

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