Skip to main content

No project description provided

Project description

AP Rest Client

AP Rest Client is a Python package that simplifies the process of making HTTP requests to RESTful APIs, specifically designed to interact with the Langchain Agent Protocol REST API. It provides a user-friendly interface for communicating with a remote agent running behind an AP Server, handling authentication, and parsing responses.

Features

  • Easy-to-use methods for GET, POST, PUT, DELETE requests
  • Support for various authentication methods (e.g., API key, OAuth)
  • Automatic parsing of JSON responses
  • Customizable headers and parameters
  • Error handling and logging

Installation

You can install the package using pip:

pip install ap_rest_client

Usage

Here is a basic example of how to use the AP Rest Client:

from ap_rest_client.ap_protocol import invoke_graph

messages = [{"role": "user", "content": "Write a story about a cat"}]
print(invoke_graph(messages=messages))

Contributing

Contributions are welcome! Please open an issue or submit a pull request on GitHub.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For any questions or inquiries, please contact your_email@example.com.

References

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

ap_rest_client-0.0.5.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

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

ap_rest_client-0.0.5-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file ap_rest_client-0.0.5.tar.gz.

File metadata

  • Download URL: ap_rest_client-0.0.5.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.0 Windows/11

File hashes

Hashes for ap_rest_client-0.0.5.tar.gz
Algorithm Hash digest
SHA256 402ee099293828d284d90c488b06d92479a105d3b6a2c2fe4d46e705602b30bf
MD5 99bc915ade6a781f7f10e558e03927f9
BLAKE2b-256 6db17ea5a510f1288e5976e12f88bec44b0476ee4bcc191e1e913f2301bd8ae1

See more details on using hashes here.

File details

Details for the file ap_rest_client-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: ap_rest_client-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 11.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.0 Windows/11

File hashes

Hashes for ap_rest_client-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 893fbc020cd287d7d32be327761a633a5f7be22025f73206e6f800f10ffe2bab
MD5 40ad33ddceea8c96590e8e6769b74e0b
BLAKE2b-256 1c33607dbf1f6bab6b80a0c415270baefb4a721857c1099529cc1ed0dd1ae0c5

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