Skip to main content

Paddle SDK

[!WARNING] The paddle module is deprecated and will be removed in a future version. Please use paddle.py instead. You will see a deprecation warning when using the old module.

A modern Python SDK for Paddle's API with type hints and async support.

License: MIT Python Version Code style: black

Features

  • 🚀 Synchronous and asynchronous client implementations
  • 📦 Support for Paddle's API (in development)
  • 🧩 Type hints throughout the codebase
  • 🔄 Automatic retry mechanism for failed requests
  • 🔧 Environment configuration (Sandbox/Production)
  • 🛡️ Comprehensive error handling
  • 📊 Extensive test coverage

Installation

pip install paddle-sdk

Quick Start

Synchronous Client

from paddle import Client, Environment

# Initialize the client
client = Client(
    api_key="API_KEY",
    environment=Environment.SANDBOX  # or Environment.PRODUCTION
)

# List products
products = client.products.list()
print(products)

# Get a specific product
product = client.products.get(product_id="pro_123456789")
print(product)

Asynchronous Client

import asyncio

from paddle.aio import AsyncClient
from paddle import Environment


async def main():
    async with AsyncClient(
        api_key="API_KEY",
        environment=Environment.SANDBOX,  # or Environment.PRODUCTION
    ) as client:
        # List products
        all_products = await client.products.list()
        print(all_products)

        # Get a product
        product = await client.products.get("pro_123456789")
        print(product)


if __name__ == "__main__":
    asyncio.run(main())

Development

Setup

  1. Clone the repository:
git clone https://github.com/CCXLV/paddle-sdk.git
cd paddle-sdk
  1. Create a virtual environment:
python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
  1. Install development dependencies:
pip install -e .[dev]

Running Tests

# Run all tests
pytest

# Run with coverage
pytest --cov=paddle

Contributing

For detailed information on how to contribute to this project, please see our Contributing Guidelines.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Roadmap

See the CHANGELOG.md for planned API endpoints and features.

Metadata

Release files for paddle-sdk 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for paddle-sdk 0.1.6
File Size Uploaded
paddle_sdk-0.1.6.tar.gz 31.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for paddle-sdk 0.1.6
File Interpreter ABI Platform
paddle_sdk-0.1.6-py3-none-any.whl Python 3 none any Details

Total release size: 75.7 kB

Release files / paddle_sdk-0.1.6.tar.gz

Download URL paddle_sdk-0.1.6.tar.gz
Size 31.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5ed238e14776e1cf5673ec868268a443b72c5163f097c60005f1c31d79b76785
BLAKE2b-256 checksum
How to use checksums
876c04d6953e4f8f6ee2fc267a0e21000c257807c311db125163bade5fc6ae6c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release files / paddle_sdk-0.1.6-py3-none-any.whl

Download URL paddle_sdk-0.1.6-py3-none-any.whl
Size 43.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8834144f91295260721b19a603788f86e3bba88a5a717f37ebe8f45dbb458236
BLAKE2b-256 checksum
How to use checksums
e13b40e33de020f11e3ee3cdc3b02394a7792fa834ad81b8499ae7e86e53f69f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release history Release notifications | RSS feed

This release

0.1.6 This release

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page