Skip to main content

Python SDK

The official Gumnut Python SDK provides a Pythonic interface to the Gumnut API with full type hints support for better IDE experience.

Installation

Quick Start

Key Features

  • Python 3.8+ Support: Compatible with modern Python versions
  • Type Hints: Full type annotations for better IDE support
  • Async/Await Support: Built-in async client using httpx
  • Automatic Retries: Configurable retry logic with exponential backoff
  • Context Managers: Proper resource handling for file operations
  • Comprehensive Error Handling: Detailed exception types

Async Support

Use the async client for better performance:

File Uploads

Multiple ways to handle file uploads:

Configuration

Error Handling

Pagination

Handle large result sets easily:

Repository & Documentation

GitHub Repository: github.com/gumnut-ai/photos-sdk-python For complete API documentation, examples, and advanced usage:

Common Use Cases

Batch Upload

Data Analysis

Next Steps