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.21.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

stripe_agent_toolkit-0.1.21-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: stripe_agent_toolkit-0.1.21.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.21.tar.gz
Algorithm Hash digest
SHA256 2e79b9bd32a53a90f7eb257d16de41a2f84c9c89ed8be456f70ae6e2d2044954
MD5 acd266ec241822fdd2f677cabf272397
BLAKE2b-256 50a90e22e7b1cee3aa51c73a79df5a59125e8893be0f279c87ed1ef4df10a4ea

See more details on using hashes here.

Provenance

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

Publisher: release.yml on stripe/agent-toolkit

Attestations:

File details

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

File metadata

File hashes

Hashes for stripe_agent_toolkit-0.1.21-py3-none-any.whl
Algorithm Hash digest
SHA256 6c19652bb81190621644506027bdcabbeddc846db44adcb80751a349fb4338bc
MD5 919a2a4a5333f15eb8ed67416a1569cd
BLAKE2b-256 9a46e6aa1392757774ae4463b294664c41865f27c02e336dbb9feed080e27315

See more details on using hashes here.

Provenance

The following attestation bundles were made for stripe_agent_toolkit-0.1.21-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