Skip to content

Latest commit

 

History

History
86 lines (59 loc) · 1.75 KB

README.md

File metadata and controls

86 lines (59 loc) · 1.75 KB

Abacus.AI Python API Client PyPI version

The official Python API Client Library for Abacus.AI.

Installation

Install using pip:

$ pip install abacusai

Quick Start

Authentication

To use the API, you'll need an API key from your Abacus.AI account. Initialize the client:

from abacusai import ApiClient
client = ApiClient('YOUR_API_KEY')

Basic Usage Examples

# List your projects
projects = client.list_projects()

# Create a new project
project = client.create_project("My Project")

# Get project details
project_info = client.get_project(project['projectId'])

Documentation

Features

  • Complete API coverage for Abacus.AI platform
  • Type hints for better IDE support
  • Automatic retries and error handling
  • Async support
  • Comprehensive logging

Requirements

  • Python 3.7+
  • requests>=2.25.0
  • pandas>=1.0.0
  • numpy>=1.19.0

Error Handling

from abacusai.errors import AbacusAIError

try:
    client.get_project("non_existent_id")
except AbacusAIError as e:
    print(f"Error: {e.message}")
    print(f"Status code: {e.status_code}")

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Run tests: python -m pytest
  5. Submit a pull request

Support

License

MIT