app-store-server-library
The App Store Server Library
Decision gist · record as of 2026-08-14
Yes. This is Apple's official library, actively maintained, with no known vulnerabilities, low install friction, and a permissive MIT license. Install it if you are building a Python backend for an iOS app that uses in-app purchases or subscriptions and need to validate receipts and handle App Store notifications server-side.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires an In-App Purchase key (p8 file) and issuer ID obtained from App Store Connect with Admin role; Python 3.7 or later.
- Low install friction with a pure-Python wheel and well-maintained dependencies.
- The package is actively maintained and requires Python 3.7 or later, with no compiled extensions to build.
License · maintenance · safety
MIT (permissive) — MIT license permits free use, modification, and distribution with minimal restrictions—suitable for both commercial and open-source projects.
last release 2026-06-01 (74 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 985,937 downloads/mo, #4,573 on PyPI
Alternatives
Verify before relying
pip install app-store-server-library
from app-store-server-library import AppStoreServerAPIClient
from app-store-server-library import Environment
private_key = read_private_key("/path/to/SubscriptionKey_ABCDEFGHIJ.p8")
client = AppStoreServerAPIClient(private_key, key_id, issuer_id, bundle_id, Environment.SANDBOX)
response = client.request_test_notification()- Whether the async HTTPX support (optional dependency) is production-ready and what versions of httpx it requires.
- Performance characteristics when handling high-volume transaction history queries or concurrent API calls.
- Exact scope of the Advanced Commerce API support mentioned in the description.
What it is and what it does
This is Apple's official Python library for integrating server-side App Store operations into Python applications. It wraps the App Store Server API, App Store Server Notifications, Retention Messaging API, and Advanced Commerce API, handling the cryptographic details of JWT signing, signed data verification, and receipt parsing so developers don't have to implement these protocols manually.
The library manages authentication to Apple's servers using private keys, verifies cryptographically signed notifications and receipts from Apple, extracts transaction history, and generates promotional offer signatures. It depends on cryptography, PyJWT, requests, and related libraries to handle the underlying security operations. Developers use it to validate purchases, manage subscriptions, respond to subscription events, and create time-limited promotional pricing—all the server-side tasks needed to monetize iOS apps.
Use it for
- Validate in-app purchase receipts and transaction history from iOS apps in your backend.
- Listen to and verify signed App Store Server Notifications (subscription events, refunds, etc.) via webhooks.
- Generate cryptographically signed promotional offer codes for time-limited subscription discounts.
- Query transaction history for a user to reconcile subscriptions and detect refunds or cancellations.
- Implement retention messaging campaigns by integrating with Apple's Retention Messaging API.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
This is Apple's official library, actively maintained, with no known vulnerabilities, low install friction, and a permissive MIT license. Install it if you are building a Python backend for an iOS app that uses in-app purchases or subscriptions and need to validate receipts and handle App Store notifications server-side.
Install
app-store-server-library on PyPI
Before you install
Low install friction with a pure-Python wheel and well-maintained dependencies. The package is actively maintained and requires Python 3.7 or later, with no compiled extensions to build.
Requires an In-App Purchase key (p8 file) and issuer ID obtained from App Store Connect with Admin role; Python 3.7 or later.
License in practice
MIT license permits free use, modification, and distribution with minimal restrictions—suitable for both commercial and open-source projects.
Quickstart
pip install app-store-server-library
from app-store-server-library import AppStoreServerAPIClient
from app-store-server-library import Environment
private_key = read_private_key("/path/to/SubscriptionKey_ABCDEFGHIJ.p8")
client = AppStoreServerAPIClient(private_key, key_id, issuer_id, bundle_id, Environment.SANDBOX)
response = client.request_test_notification()
Verify before relying
- Whether the async HTTPX support (optional dependency) is production-ready and what versions of httpx it requires.
- Performance characteristics when handling high-volume transaction history queries or concurrent API calls.
- Exact scope of the Advanced Commerce API support mentioned in the description.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release <4,>=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 7 packagesattrsPyJWTrequestscryptographypyOpenSSLasn1cattrs |
| Maintenance | Actively maintained 74 days since the last release |
| First released | |
| Downloads | 985,937 / month, #4,573 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 License |
Evidence: app_store_server_library-3.1.2-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 › “app store server api python”
- app-store-server-libraryProvides Python bindings to Apple's App Store Server API, handling…
- google-play-scraperScrapes application metadata, ratings, reviews, and store details…
- azure-mgmt-appconfigurationManages Azure App Configuration resources (stores, key-values,…
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 pyobjc-framework-StoreKit · aioapns · wallet-py3k · pyapns-client · pushover-complete · apns2-up · sigstore · standardwebhooks · urbanairship · pyobjc-framework-PushKit