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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ap_rest_client-0.0.7.tar.gz
  • Upload date:
  • Size: 11.1 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.7.tar.gz
Algorithm Hash digest
SHA256 954d3d79e25f03de45de38a5344f8a005a5de399a5fca2a07331c89cc7e522ee
MD5 33a1a584cf8a701143526f6e45c1b345
BLAKE2b-256 a9fb842fd3f29b5f2e133522117ff3b9884891ac81d401339a451ea6061fe19f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ap_rest_client-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 13.7 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 0fde424c5083f0fd503d17060cfc7a4683043c08910cb3da813587dc4a7ddbb4
MD5 3feef8856e3d7afc8ab50c5215b20d29
BLAKE2b-256 c9c2dac0f18b8d1ad31f9f8b34141a6779f967b5fb83ba7b42f48be87c596f6f

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