squareup
Decision gist · record as of 2026-08-14
Yes. The library is actively maintained, has no known vulnerabilities, installs with low friction, and is MIT-licensed. It supports Python 3.8 through 3.15 and provides both sync and async interfaces. Install it if you need to integrate Square payments or business operations into a Python application.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.8 or later and a valid Square API token (typically passed via environment variable).
- Low install friction with a pure-wheel distribution.
- Actively maintained with a recent release (31 days old) and an active repository.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions, making it suitable for most projects without licensing concerns.
last release 2026-07-14 (31 days) · last repo commit 2026-07-14 · 114 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 474,648 downloads/mo, #6,453 on PyPI
Alternatives
Verify before relying
pip install squareup
from square import Square
import os
client = Square(token=os.environ.get("SQUARE_TOKEN"))
client.payments.create(
source_id="ccof:GaJGNaZa8x4OgDJn4GB",
idempotency_key="7b0f3ec5-086a-4871-8f13-3c81b3875218",
amount_money={"amount": 1000, "currency": "USD"},
customer_id="W92WH6P11H4Z77CTET0RNTGFW8"
)- Whether the SDK's automatic retry behavior (default 2 attempts on 408/429/5XX) is appropriate for your use case.
- Performance characteristics and rate-limit handling under high-volume payment processing.
- Webhook signature verification implementation details and security guarantees.
What it is and what it does
The squareup library is an official SDK that wraps the Square API, allowing developers to integrate payment processing, customer management, invoicing, and reporting into Python applications. It provides both synchronous and asynchronous clients built on httpx and pydantic, with automatic retries, pagination helpers, and utility functions for webhook verification and reporting queries.
The library handles authentication via API tokens, supports versioned API endpoints, and includes helpers for complex workflows like the Reporting API's polling-based query pattern. It's actively maintained and supports Python 3.8 through 3.15, making it suitable for modern production applications that need to interact with Square's merchant services.
Use it for
- Build a payment processing integration for an e-commerce platform using the synchronous client with idempotency keys.
- Implement webhook handlers to listen for Square events and verify their authenticity using provided utilities.
- Query aggregated business metrics via the Reporting API using helpers to poll for asynchronous query results.
- Manage customer records, invoices, and file uploads through the SDK's multipart file support.
- Scale payment operations with the async client to handle concurrent requests without blocking.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The library is actively maintained, has no known vulnerabilities, installs with low friction, and is MIT-licensed. It supports Python 3.8 through 3.15 and provides both sync and async interfaces. Install it if you need to integrate Square payments or business operations into a Python application.
Install
squareup on PyPI
Before you install
Low install friction with a pure-wheel distribution. Actively maintained with a recent release (31 days old) and an active repository. Depends on well-established libraries (httpx, pydantic, typing_extensions).
Requires Python 3.8 or later and a valid Square API token (typically passed via environment variable).
License in practice
MIT license permits commercial and private use with minimal restrictions, making it suitable for most projects without licensing concerns.
Quickstart
pip install squareup
from square import Square
import os
client = Square(token=os.environ.get("SQUARE_TOKEN"))
client.payments.create(
source_id="ccof:GaJGNaZa8x4OgDJn4GB",
idempotency_key="7b0f3ec5-086a-4871-8f13-3c81b3875218",
amount_money={"amount": 1000, "currency": "USD"},
customer_id="W92WH6P11H4Z77CTET0RNTGFW8"
)
Verify before relying
- Whether the SDK's automatic retry behavior (default 2 attempts on 408/429/5XX) is appropriate for your use case.
- Performance characteristics and rate-limit handling under high-volume payment processing.
- Webhook signature verification implementation details and security guarantees.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release <4.0,>=3.8 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packageshttpxpydanticpydantic-coretyping_extensions |
| Maintenance | Actively maintained 31 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 474,648 / month, #6,453 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: OS IndependentOperating System :: POSIXOperating System :: POSIX :: LinuxProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.15Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python ModulesTyping :: Typed |
Evidence: squareup-45.0.1.20260715-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 › “square api client python”
- squareupProvides a Python client library for accessing the Square API,…
- numpy-rmsCalculates Root Mean Square (RMS) values over sliding windows in…
- pystac-ext-mgrsAdds MGRS (Military Grid Reference System) extension support to…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also forex-python · vapi-server-sdk · pipedream · groundx · auth0-python · python-intercom · pycoingecko · hellosign-python-sdk