Skip to main content

Speakeasy API Client SDK for Python

Project description

speakeasy-client-sdk-python

SDK Installation

pip install speakeasy-client-sdk-python

SDK Example Usage

import speakeasy
from speakeasy.models import operations, shared

s = speakeasy.Speakeasy(
    security=shared.Security(
        api_key="YOUR_API_KEY_HERE",
    ),
)


req = operations.GetApisRequest(
    metadata={
        "deserunt": [
            "nulla",
            "id",
            "vero",
        ],
        "perspiciatis": [
            "nihil",
            "fuga",
            "facilis",
            "eum",
        ],
        "iusto": [
            "saepe",
            "inventore",
        ],
    },
    op=operations.GetApisOp(
        and_=False,
    ),
)
    
res = s.apis.get_apis(req)

if res.apis is not None:
    # handle response

SDK Available Operations

Speakeasy SDK

  • validate_api_key - Validate the current api key.

api_endpoints

  • delete_api_endpoint - Delete an ApiEndpoint.
  • find_api_endpoint - Find an ApiEndpoint via its displayName.
  • generate_open_api_spec_for_api_endpoint - Generate an OpenAPI specification for a particular ApiEndpoint.
  • generate_postman_collection_for_api_endpoint - Generate a Postman collection for a particular ApiEndpoint.
  • get_all_api_endpoints - Get all Api endpoints for a particular apiID.
  • get_all_for_version_api_endpoints - Get all ApiEndpoints for a particular apiID and versionID.
  • get_api_endpoint - Get an ApiEndpoint.
  • upsert_api_endpoint - Upsert an ApiEndpoint.

apis

  • delete_api - Delete an Api.
  • generate_open_api_spec - Generate an OpenAPI specification for a particular Api.
  • generate_postman_collection - Generate a Postman collection for a particular Api.
  • get_all_api_versions - Get all Api versions for a particular ApiEndpoint.
  • get_apis - Get a list of Apis for a given workspace
  • upsert_api - Upsert an Api

embeds

  • get_embed_access_token - Get an embed access token for the current workspace.
  • get_valid_embed_access_tokens - Get all valid embed access tokens for the current workspace.
  • revoke_embed_access_token - Revoke an embed access EmbedToken.

metadata

  • delete_version_metadata - Delete metadata for a particular apiID and versionID.
  • get_version_metadata - Get all metadata for a particular apiID and versionID.
  • insert_version_metadata - Insert metadata for a particular apiID and versionID.

plugins

  • get_plugins - Get all plugins for the current workspace.
  • run_plugin - Run a plugin
  • upsert_plugin - Upsert a plugin

requests

  • generate_request_postman_collection - Generate a Postman collection for a particular request.
  • get_request_from_event_log - Get information about a particular request.
  • query_event_log - Query the event log to retrieve a list of requests.

schemas

  • delete_schema - Delete a particular schema revision for an Api.
  • download_schema - Download the latest schema for a particular apiID.
  • download_schema_revision - Download a particular schema revision for an Api.
  • get_schema - Get information about the latest schema.
  • get_schema_diff - Get a diff of two schema revisions for an Api.
  • get_schema_revision - Get information about a particular schema revision for an Api.
  • get_schemas - Get information about all schemas associated with a particular apiID.
  • register_schema - Register a schema.

SDK Generated by Speakeasy

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

speakeasy-client-sdk-python-1.13.0.tar.gz (22.8 kB view details)

Uploaded Source

Built Distribution

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

speakeasy_client_sdk_python-1.13.0-py3-none-any.whl (56.2 kB view details)

Uploaded Python 3

File details

Details for the file speakeasy-client-sdk-python-1.13.0.tar.gz.

File metadata

File hashes

Hashes for speakeasy-client-sdk-python-1.13.0.tar.gz
Algorithm Hash digest
SHA256 962b1be910dbf6a67035a880ff1aace5dd96833c31cee0856e1158d641d43498
MD5 1e90a8609371fb791095862572278ee8
BLAKE2b-256 dd734741fe9adad6e981dd6f9c050a6e213536a5c84f8a5a5d57e772fd3c06cf

See more details on using hashes here.

File details

Details for the file speakeasy_client_sdk_python-1.13.0-py3-none-any.whl.

File metadata

File hashes

Hashes for speakeasy_client_sdk_python-1.13.0-py3-none-any.whl
Algorithm Hash digest
SHA256 44a2a7876eaf50566ce15c7f4318f0572a91f2fd1f7fd5fabd0fd7e8ef35cd2c
MD5 5aa4bad7608b6fa941be93de2563919c
BLAKE2b-256 e514ec8714a862f1822fd8d3e7c0a7e27311cb240ece9e13d0d20d1e60b9e8ab

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