Skip to main content

Stripe Agent Toolkit

Project description

Stripe Agent Toolkit - Python

The Stripe Agent Toolkit library enables popular agent frameworks including LangChain and CrewAI to integrate with Stripe APIs through function calling. The library is not exhaustive of the entire Stripe API. It is built directly on top of the Stripe Python SDK.

Installation

You don't need this source code unless you want to modify the package. If you just want to use the package, just run:

pip install stripe-agent-toolkit

Requirements

  • Python 3.11+

Usage

The library needs to be configured with your account's secret key which is available in your Stripe Dashboard.

from stripe_agent_toolkit.crewai.toolkit import StripeAgentToolkit

stripe_agent_toolkit = StripeAgentToolkit(
    secret_key="sk_test_...",
    configuration={
        "actions": {
            "payment_links": {
                "create": True,
            },
        }
    },
)

The toolkit works with LangChain and CrewAI and can be passed as a list of tools. For example:

from crewai import Agent

stripe_agent = Agent(
    role="Stripe Agent",
    goal="Integrate with Stripe",
    backstory="You are an expert at integrating with Stripe",
    tools=[*stripe_toolkit.get_tools()]
)

Examples for LangChain and CrewAI are included in /examples.

Development

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

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

stripe_agent_toolkit-0.1.16.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

stripe_agent_toolkit-0.1.16-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file stripe_agent_toolkit-0.1.16.tar.gz.

File metadata

  • Download URL: stripe_agent_toolkit-0.1.16.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for stripe_agent_toolkit-0.1.16.tar.gz
Algorithm Hash digest
SHA256 efd3036637b68678defc4995768bc6682c3181a911fdee97cc229a97d6ca1dcc
MD5 a369d09b7d8c2b1c876f971ab5cc8e0b
BLAKE2b-256 2709d647e078d9d6174974c4f205fbdd586236867b5c3ba257ecfb49cd960d57

See more details on using hashes here.

Provenance

The following attestation bundles were made for stripe_agent_toolkit-0.1.16.tar.gz:

Publisher: release.yml on stripe/agent-toolkit

Attestations:

File details

Details for the file stripe_agent_toolkit-0.1.16-py3-none-any.whl.

File metadata

File hashes

Hashes for stripe_agent_toolkit-0.1.16-py3-none-any.whl
Algorithm Hash digest
SHA256 a80a6c0c2086b084c83393f1438d4a9c70ace3e8ca0bc47b376ecf67f2d14114
MD5 63d4c2a5aca494176480d0de264a2434
BLAKE2b-256 d85a6a1f81d80088f7c2b003fdbb62ac90aa2790cc07026e02020990945d40a1

See more details on using hashes here.

Provenance

The following attestation bundles were made for stripe_agent_toolkit-0.1.16-py3-none-any.whl:

Publisher: release.yml on stripe/agent-toolkit

Attestations:

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page