Skip to main content

No project description provided

Project description

agentcat-api

API for AgentCat application

The agentcat_api package is automatically generated by the OpenAPI Generator project:

  • API version: v1
  • Package version: 1.0.0
  • Generator version: 7.14.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.9+

Installation & Usage

This python library package is generated without supporting files like setup.py or requirements files

To be able to use it, you will need these dependencies in your own package that uses this library:

  • urllib3 >= 2.1.0, < 3.0.0
  • python-dateutil >= 2.8.2
  • pydantic >= 2
  • typing-extensions >= 4.7.1

Getting Started

In your own code, to use this library to connect and interact with agentcat-api, you can run the following:

import agentcat_api
from agentcat_api.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost:8000
# See configuration.py for a list of all supported configuration parameters.
configuration = agentcat_api.Configuration(
    host = "http://localhost:8000"
)

# 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 API key authorization: tokenAuth
configuration.api_key['tokenAuth'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['tokenAuth'] = 'Bearer'


# Enter a context with an instance of the API client
with agentcat_api.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = agentcat_api.EventsApi(api_client)
    publish_event_request = agentcat_api.PublishEventRequest() # PublishEventRequest |  (optional)

    try:
        # Publish analytics event
        api_response = api_instance.publish_event(publish_event_request=publish_event_request)
        print("The response of EventsApi->publish_event:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling EventsApi->publish_event: %s\n" % e)

Documentation for API Endpoints

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

Class Method HTTP request Description
EventsApi publish_event POST /v1/public/events/ Publish analytics event
NotificationsApi unsubscribe_notification POST /v1/public/notifications/unsubscribe Disable an email notification type for the token's user

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

tokenAuth

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

Author

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

agentcat_api-1.0.0.tar.gz (26.0 kB view details)

Uploaded Source

Built Distribution

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

agentcat_api-1.0.0-py3-none-any.whl (39.8 kB view details)

Uploaded Python 3

File details

Details for the file agentcat_api-1.0.0.tar.gz.

File metadata

  • Download URL: agentcat_api-1.0.0.tar.gz
  • Upload date:
  • Size: 26.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.8

File hashes

Hashes for agentcat_api-1.0.0.tar.gz
Algorithm Hash digest
SHA256 fcf18e0bcccbfc47bd04050a325dfbbe5d637c7895158026dee3f70e8d788b5d
MD5 674411d89435a8c75c0c7f4d469b0753
BLAKE2b-256 8a7ce3e804e96823611289b85e6a8ca9728e4cd707631bb92ae9703be47cbe8b

See more details on using hashes here.

File details

Details for the file agentcat_api-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for agentcat_api-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2f616ab044e9e27de1abc5c6614554cf2de1858ffc1f164ebf1e1876ab90dbdf
MD5 5647b79276c30cb314b55510cca3c45b
BLAKE2b-256 aa033c4d0ba8ad1b88450bf7085c5a24dccf9c1640633efbfc7b263bff7a5c9f

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