braintree
Braintree Python Library
Decision gist · record as of 2026-08-14
Yes, if you use Braintree for payments. It's the official SDK with low friction, active maintenance, permissive licensing, and no known vulnerabilities. Install it only if your application actually integrates with Braintree; it's not a general-purpose payment library.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with a single dependency on requests.
- Active maintenance with a release 2 days old signals ongoing support.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you can use, modify, and distribute this package freely in commercial and open-source projects with minimal restrictions.
last release 2026-08-12 (2 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,492,160 downloads/mo, #3,041 on PyPI
Alternatives
Verify before relying
pip install braintree
import braintree
braintree.Configuration.configure(
braintree.Environment.Sandbox,
merchant_id='your_merchant_id',
public_key='your_public_key',
private_key='your_private_key'
)
result = braintree.Transaction.sale({
'amount': '10.00',
'payment_method_nonce': 'nonce_from_client'
})- Whether the package supports Python versions older than 3.5 despite classifiers listing 3.5 as the minimum
- Current state of the GitHub repository and community activity level
What it is and what it does
Braintree is the official Python SDK for integrating with Braintree's payment gateway, a PayPal-owned payment processor. It abstracts the HTTP API into Python objects and methods, handling authentication, request formatting, and response parsing so you can focus on payment logic rather than protocol details. The library depends only on requests, keeping its footprint minimal.
Typical use involves configuring credentials once at startup, then calling methods like Transaction.sale() or Customer.create() to perform payment operations. It's designed for server-side integration where you control the merchant credentials; client-side payment flows use separate client tokens and nonces generated through Braintree's client SDKs.
Use it for
- Process one-time credit card payments or recurring billing through Braintree's merchant account
- Create and manage customer profiles and payment methods stored in Braintree's vault
- Handle payment webhooks and transaction status queries from your backend
- Integrate Braintree payments into a Django, Flask, or FastAPI application
- Build a subscription or SaaS billing system using Braintree's recurring transaction features
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you use Braintree for payments.
It's the official SDK with low friction, active maintenance, permissive licensing, and no known vulnerabilities. Install it only if your application actually integrates with Braintree; it's not a general-purpose payment library.
Install
braintree on PyPI
Before you install
Low install friction with a single dependency on requests. Active maintenance with a release 2 days old signals ongoing support.
License in practice
MIT license is permissive; you can use, modify, and distribute this package freely in commercial and open-source projects with minimal restrictions.
Quickstart
pip install braintree
import braintree
braintree.Configuration.configure(
braintree.Environment.Sandbox,
merchant_id='your_merchant_id',
public_key='your_public_key',
private_key='your_private_key'
)
result = braintree.Transaction.sale({
'amount': '10.00',
'payment_method_nonce': 'nonce_from_client'
})
Verify before relying
- Whether the package supports Python versions older than 3.5 despite classifiers listing 3.5 as the minimum
- Current state of the GitHub repository and community activity level
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagerequests |
| Maintenance | Actively maintained 2 days since the last release |
| First released | |
| Downloads | 2,492,160 / month, #3,041 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: braintree-4.46.0-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “braintree payment gateway sdk”
- braintreeProvides Python bindings to the Braintree payment gateway, enabling…
- types-braintreeProvides type hints for the braintree payment processing library,…
- razorpayPython client library for the Razorpay payment gateway API, enabling…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
See also razorpay · types-braintree · Adyen · beanstream · wechatpayv3 · google-shopping-merchant-products · mercadopago · paytmchecksum · yookassa · breez-sdk-spark