storekit-python
storekit-python is a Python package for accessing and validating App Store in-app purchases.
Table of Contents
Installation
Install via pip:
pip install storekit-python
Quick Start
App Store Server API
Get SignedTokenEncoder parameters reference: Generating tokens for API requests
from storekit.app_store_server_api import BaseUrl, SignedTokenEncoder, ServerAPIClient
client = ServerAPIClient(
base_url=BaseUrl.Production,
signed_token_encoder=SignedTokenEncoder(
key_id="key_id",
private_key="private_key",
issuer_id="issuer_id",
bundle_id="bundle_id",
)
)
response = client.get_all_subscription_statuses("original_transaction_id")
print(response)
App Store Server Notifications
Enabling App Store Server Notifications
from storekit.app_store_server_notifications import ResponseBodyV2
response = ResponseBodyV2.parse_obj(request_data)
print(response)
App Store Receipts
How to generate a password reference: Generating a Shared Secret
from storekit.app_store_receipts import ReceiptsClient, BaseUrl
client = ReceiptsClient(
base_url=BaseUrl.Production,
password="password",
sandbox_client=ReceiptsClient(
base_url=BaseUrl.Sandbox,
password="password",
)
)
response = client.verify_receipt("receipt_data")
print(response)
Contributing
We welcome contributions of all forms! You can participate in this project by reporting issues, submitting PRs, or improving documentation.
License
storekit-python is open-source under the MIT License.
Metadata
Release files for storekit-python 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| storekit_python-0.0.2.tar.gz | 62.1 kB | Without provenance | Details for storekit_python-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| storekit_python-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for storekit_python-0.0.2-py3-none-any.whl |
Total release size: 80.7 kB
Release files / storekit_python-0.0.2.tar.gz
| Download URL | storekit_python-0.0.2.tar.gz |
|---|---|
| Size | 62.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1eb8256ea79b1fc11437afbcd03700ef5e3a4f5354d17e4209a79311f56bbdfd
|
|
BLAKE2b-256 checksum How to use checksums |
12aff815338973dc829bdebf865d6fbe0934ea60491c0f55a9d9901d82d79723
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.7.0 CPython/3.10.6
|
Release files / storekit_python-0.0.2-py3-none-any.whl
| Download URL | storekit_python-0.0.2-py3-none-any.whl |
|---|---|
| Size | 18.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
12fa38ee4289dff270c9056f484119ebf353809b702166afb521b0e83812fef0
|
|
BLAKE2b-256 checksum How to use checksums |
d6c7477623ce6d0cb820710774133218bc23c3ea6d51dc1ef5283e0b3ada2559
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.7.0 CPython/3.10.6
|
Security for storekit-python 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.