Skip to main content

Speakeasy API Client SDK for Python

Project description

speakeasy-client-sdk-python

This is the Speakeasy API Client SDK for Python. It is generated from our OpenAPI spec found at https://docs.speakeasyapi.dev/openapi.yaml and used for interacting with the Speakeasy API.

This SDK was generated using Speakeasy's SDK Generator. For more information on how to use the generator to generate your own SDKs, please see the Speakeasy Client SDK Generator Docs.

SDK Installation

pip install speakeasy-client-sdk-python

Example usage

import sdk
from sdk.models import operations, shared

s = sdk.SDK()
s.config_security(
    security=shared.Security(
        api_key=shared.SchemeAPIKey(
            api_key="YOUR_API_KEY" # Replace with your API key from your Speakeasy Workspace
        )
    )
)

req = operations.GetApisRequest(
    query_params=operations.GetApisQueryParams(
        metadata={'label': ['1']},
        op=operations.GetApisOp(and_=True)
    )
)

res = s.apis.get_apis(req)

if res.status_code == 200:
    print(res.apis)
else:
    print(res.error)

SDK Available Operations

ApiEndpoints

  • 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.

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-0.5.3.tar.gz (17.6 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-0.5.3-py3-none-any.whl (39.1 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for speakeasy-client-sdk-python-0.5.3.tar.gz
Algorithm Hash digest
SHA256 2605de941467e879b7c3b1776d7895a036114bfc72f72ab096042b28bc0d2029
MD5 646e67d5c5d5629d2a8778686dbb15b9
BLAKE2b-256 296beea0b3491cf308f1897ea8fa272cc43290747d60ffcd60a3972dbff6bb56

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for speakeasy_client_sdk_python-0.5.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3de4eefe148d2a550b0e035f14e5c5dfff066f25bf31fc69d21e3d72189199da
MD5 35bfb246d4915e611a33d6e92d36ef4a
BLAKE2b-256 e94b6188a62c8b72ebd57430a9f60db3649acd72d6c713f23d32fa82e9760801

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