Skip to content

Releases: Dataframe-Consulting/ai-spine-sdk-python

Release v2.3.1

Choose a tag to compare

@github-actions github-actions released this 15 Aug 00:44

AI Spine SDK v2.3.1

This release includes various improvements and bug fixes.

See CHANGELOG.md for details.

Full Changelog: v2.3.0...v2.3.1

Release v2.3.0

Choose a tag to compare

@github-actions github-actions released this 15 Aug 00:33

[2.3.0] - 2025-01-14

Added

  • New API key management methods for user administration (no authentication required):
    • check_user_api_key() - Check if a user has an API key and get its details
    • generate_user_api_key() - Generate or regenerate API key for a user
    • revoke_user_api_key() - Revoke (delete) a user's API key
  • Support for unauthenticated API requests via auth_required parameter in _request() method
  • New example script api_key_management.py demonstrating API key operations
  • Comprehensive test coverage for all new API key management methods

Changed

  • Enhanced authentication system to support manual API key generation
  • API key management endpoints do not require Bearer token authentication
  • Updated base URL to https://ai-spine-api.up.railway.app in examples
  • Updated documentation to clarify authentication requirements

Full Changelog: v2.2.2...v2.3.0

Release v2.2.2

Choose a tag to compare

@github-actions github-actions released this 13 Aug 18:44

[2.2.2] - 2025-01-13

Added

  • Dynamic changelog extraction for GitHub releases
  • CHANGELOG.md for tracking version history

Changed

  • Simplified CHANGELOG format (removed boilerplate)
  • GitHub Actions workflow now uses CHANGELOG.md for release notes

Full Changelog: v2.2.1...v2.2.2

Release v2.2.1

Choose a tag to compare

@github-actions github-actions released this 13 Aug 18:26

AI Spine SDK v2.2.1

Breaking Changes

  • API key is now required (no default value)
  • API key must start with 'sk_' prefix
  • New exception: InsufficientCreditsError for credit management

New Features

  • Added get_current_user() method to get user info and credits
  • Added check_credits() method to check remaining credits
  • Better error handling for 401, 403, and 429 status codes
  • Support for custom base_url with trailing slash handling

Installation

pip install ai-spine-sdk==2.2.1

Quick Start

from ai_spine import Client

# Initialize with your API key
client = Client(api_key="sk_your_api_key_here")

# Check your credits
credits = client.check_credits()
print(f"Remaining credits: {credits}")

# Execute a flow
result = client.execute_flow("flow_id", {"data": "value"})

Full Changelog: https://github.com/Dataframe-Consulting/ai-spine-sdk-python/commits/v2.2.1