stripe-agent-toolkit


Namestripe-agent-toolkit JSON
Version 0.1.21 PyPI version JSON
download
home_pageNone
SummaryStripe Agent Toolkit
upload_time2024-11-15 21:17:47
maintainerNone
docs_urlNone
authorNone
requires_pythonNone
licenseThe MIT License (MIT) Copyright (c) 2024 Stripe Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords stripe api payments
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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][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:

```sh
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][api-keys].

```python
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:

```python
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`.

[python-sdk]: https://github.com/stripe/stripe-python
[api-keys]: https://dashboard.stripe.com/account/apikeys

## Development

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

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "stripe-agent-toolkit",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "stripe, api, payments",
    "author": null,
    "author_email": "Stripe <support@stripe.com>",
    "download_url": "https://files.pythonhosted.org/packages/50/a9/0e22e7b1cee3aa51c73a79df5a59125e8893be0f279c87ed1ef4df10a4ea/stripe_agent_toolkit-0.1.21.tar.gz",
    "platform": null,
    "description": "# Stripe Agent Toolkit - Python\n\nThe Stripe Agent Toolkit library enables popular agent frameworks including LangChain and CrewAI to integrate with Stripe APIs through function calling. The\nlibrary is not exhaustive of the entire Stripe API. It is built directly on top\nof the [Stripe Python SDK][python-sdk].\n\n## Installation\n\nYou don't need this source code unless you want to modify the package. If you just\nwant to use the package, just run:\n\n```sh\npip install stripe-agent-toolkit\n```\n\n### Requirements\n\n- Python 3.11+\n\n## Usage\n\nThe library needs to be configured with your account's secret key which is\navailable in your [Stripe Dashboard][api-keys].\n\n```python\nfrom stripe_agent_toolkit.crewai.toolkit import StripeAgentToolkit\n\nstripe_agent_toolkit = StripeAgentToolkit(\n    secret_key=\"sk_test_...\",\n    configuration={\n        \"actions\": {\n            \"payment_links\": {\n                \"create\": True,\n            },\n        }\n    },\n)\n```\n\nThe toolkit works with LangChain and CrewAI and can be passed as a list of tools. For example:\n\n```python\nfrom crewai import Agent\n\nstripe_agent = Agent(\n    role=\"Stripe Agent\",\n    goal=\"Integrate with Stripe\",\n    backstory=\"You are an expert at integrating with Stripe\",\n    tools=[*stripe_toolkit.get_tools()]\n)\n```\n\nExamples for LangChain and CrewAI are included in `/examples`.\n\n[python-sdk]: https://github.com/stripe/stripe-python\n[api-keys]: https://dashboard.stripe.com/account/apikeys\n\n## Development\n\n```\npython3 -m venv venv\nsource venv/bin/activate\npip install -r requirements.txt\n```\n",
    "bugtrack_url": null,
    "license": "The MIT License (MIT)  Copyright (c) 2024 Stripe  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "Stripe Agent Toolkit",
    "version": "0.1.21",
    "project_urls": {
        "Bug Tracker": "https://github.com/stripe/agent-toolkit/issues",
        "Source Code": "https://github.com/stripe/agent-toolkit"
    },
    "split_keywords": [
        "stripe",
        " api",
        " payments"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9a46e6aa1392757774ae4463b294664c41865f27c02e336dbb9feed080e27315",
                "md5": "919a2a4a5333f15eb8ed67416a1569cd",
                "sha256": "6c19652bb81190621644506027bdcabbeddc846db44adcb80751a349fb4338bc"
            },
            "downloads": -1,
            "filename": "stripe_agent_toolkit-0.1.21-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "919a2a4a5333f15eb8ed67416a1569cd",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 10757,
            "upload_time": "2024-11-15T21:17:45",
            "upload_time_iso_8601": "2024-11-15T21:17:45.818453Z",
            "url": "https://files.pythonhosted.org/packages/9a/46/e6aa1392757774ae4463b294664c41865f27c02e336dbb9feed080e27315/stripe_agent_toolkit-0.1.21-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "50a90e22e7b1cee3aa51c73a79df5a59125e8893be0f279c87ed1ef4df10a4ea",
                "md5": "acd266ec241822fdd2f677cabf272397",
                "sha256": "2e79b9bd32a53a90f7eb257d16de41a2f84c9c89ed8be456f70ae6e2d2044954"
            },
            "downloads": -1,
            "filename": "stripe_agent_toolkit-0.1.21.tar.gz",
            "has_sig": false,
            "md5_digest": "acd266ec241822fdd2f677cabf272397",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 9805,
            "upload_time": "2024-11-15T21:17:47",
            "upload_time_iso_8601": "2024-11-15T21:17:47.658910Z",
            "url": "https://files.pythonhosted.org/packages/50/a9/0e22e7b1cee3aa51c73a79df5a59125e8893be0f279c87ed1ef4df10a4ea/stripe_agent_toolkit-0.1.21.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-15 21:17:47",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "stripe",
    "github_project": "agent-toolkit",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "stripe-agent-toolkit"
}
        
Elapsed time: 0.40685s