Skip to content

Repository files navigation

dreamcatcher-api

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

This Python package is automatically generated by the OpenAPI Generator project:

  • API version:
  • Package version: 0.0.1
  • Generator version: 7.7.0
  • Build package: org.openapitools.codegen.languages.PythonPydanticV1ClientCodegen

Requirements.

Python 3.7+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

importdreamcatcher

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

importdreamcatcher

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

importtimeimportdreamcatcherfromdreamcatcher.restimportApiExceptionfrompprintimportpprint# Defining the host is optional and defaults to http://localhost:4000# See configuration.py for a list of all supported configuration parameters.configuration=dreamcatcher.Configuration(
host="http://localhost:4000"
)
# The client must configure the authentication and authorization parameters# in accordance with the API server security policy.# Examples for each auth method are provided below, use the example that# satisfies your auth use case.# Configure Bearer authorization: authorizationconfiguration=dreamcatcher.Configuration(
access_token=os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API clientwithdreamcatcher.ApiClient(configuration) asapi_client:
# Create an instance of the API classapi_instance=dreamcatcher.DlpPoliciesApi(api_client)
endpoint_name='demo-endpoint'# str | Endpoint namedlp_policy_params=dreamcatcher.DlpPolicyParams() # DlpPolicyParams | DLP policy params (optional)try:
# Create a DLP policyapi_response=api_instance.dreamcatcher_web_presidio_policy_controller_create(endpoint_name, dlp_policy_params=dlp_policy_params)
print("The response of DlpPoliciesApi->dreamcatcher_web_presidio_policy_controller_create:\n")
pprint(api_response)
exceptApiExceptionase:
print("Exception when calling DlpPoliciesApi->dreamcatcher_web_presidio_policy_controller_create: %s\n"%e)

Documentation for API Endpoints

All URIs are relative to http://localhost:4000

ClassMethodHTTP requestDescription
DlpPoliciesApidreamcatcher_web_presidio_policy_controller_createPOST /api/v1/endpoints/{endpoint_name}/policies/dlpCreate a DLP policy
DlpPoliciesApidreamcatcher_web_presidio_policy_controller_deleteDELETE /api/v1/endpoints/{endpoint_name}/policies/dlp/{id}Delete a DLP policy
DlpPoliciesApidreamcatcher_web_presidio_policy_controller_scanPOST /api/v1/endpoints/{endpoint_name}/policies/dlp/{id}/scanScan content with a DLP policy
DlpPoliciesApidreamcatcher_web_presidio_policy_controller_showGET /api/v1/endpoints/{endpoint_name}/policies/dlp/{id}Get a DLP policy
DlpPoliciesApidreamcatcher_web_presidio_policy_controller_updatePATCH /api/v1/endpoints/{endpoint_name}/policies/dlp/{id}Update a DLP policy
DlpPoliciesApidreamcatcher_web_presidio_policy_controller_update__2PUT /api/v1/endpoints/{endpoint_name}/policies/dlp/{id}Update a DLP policy
DlpZsnerPoliciesApidreamcatcher_web_zero_shot_ner_policy_controller_createPOST /api/v1/endpoints/{endpoint_name}/policies/dlp_zsnerCreate a DLP ZSNER policy
DlpZsnerPoliciesApidreamcatcher_web_zero_shot_ner_policy_controller_deleteDELETE /api/v1/endpoints/{endpoint_name}/policies/dlp_zsner/{id}Delete a DLP ZSNER policy
DlpZsnerPoliciesApidreamcatcher_web_zero_shot_ner_policy_controller_scanPOST /api/v1/endpoints/{endpoint_name}/policies/dlp_zsner/{id}/scanScan content with a DLP ZSNER policy
DlpZsnerPoliciesApidreamcatcher_web_zero_shot_ner_policy_controller_showGET /api/v1/endpoints/{endpoint_name}/policies/dlp_zsner/{id}Get a DLP ZSNER policy
DlpZsnerPoliciesApidreamcatcher_web_zero_shot_ner_policy_controller_updatePATCH /api/v1/endpoints/{endpoint_name}/policies/dlp_zsner/{id}Update a DLP ZSNER policy
DlpZsnerPoliciesApidreamcatcher_web_zero_shot_ner_policy_controller_update__2PUT /api/v1/endpoints/{endpoint_name}/policies/dlp_zsner/{id}Update a DLP ZSNER policy
EndpointsApidreamcatcher_web_endpoint_controller_indexGET /api/v1/endpointsList endpoints
EndpointsApidreamcatcher_web_endpoint_controller_invoke_chat_completionsPOST /api/v1/endpoints/{endpoint_name}/openai/v1/chat/completionsInvoke a chat completion
EndpointsApidreamcatcher_web_endpoint_controller_invoke_completionsPOST /api/v1/endpoints/{endpoint_name}/openai/v1/completionsInvoke a completion
EndpointsApidreamcatcher_web_endpoint_controller_modelsGET /api/v1/endpoints/{endpoint_name}/openai/v1/modelsLists upstreams (ie models) for an endpoint
EndpointsApidreamcatcher_web_endpoint_controller_showGET /api/v1/endpoints/{id}Get an endpoint
StubOpenaiApistubidity_open_ai_chat_completion_callPOST /api/v1/stub/openai/v1/chat/completionsChat completion
StubOpenaiApistubidity_open_ai_completion_callPOST /api/v1/stub/openai/v1/completionsCompletion
StubOpenaiApistubidity_open_ai_embedding_callPOST /api/v1/stub/openai/v1/embeddingsEmbedding
StubOpenaiApistubidity_open_ai_embedding_call__2POST /api/v1/stub/openai/v1/engines/{model}Embedding

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

authorization

  • Type: Bearer authentication

Author

About

Python SDK for dreamcatcher

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages