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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ap_rest_client-0.0.6.tar.gz
  • Upload date:
  • Size: 10.7 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.6.tar.gz
Algorithm Hash digest
SHA256 9cbe3f052dd710546f599503b79ff63de35e2e94442775f7f468689462fff11e
MD5 90cc988e29b9e8c2cc95eb98e6451360
BLAKE2b-256 3c8160e162abe8a9b5d9047c2470ef1e9a74d9cf0451099d346bcdd8935f45b5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ap_rest_client-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 13.2 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 2248be48a931850dfbc5ff24d1295eda6ce1876769c2112c093a356512a54815
MD5 c114b9b4367ae35e4e6ec2e1c6a354db
BLAKE2b-256 c6fb485a910627a26d5f5f97d90a11726bbda4bdbda936aabf3d9adb4bc0ca62

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