Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md with comprehensive documentation #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 66 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,86 @@
Abacus.AI API Python API Client [![PyPI version](https://badge.fury.io/py/abacusai.svg)](https://badge.fury.io/py/abacusai)
============
# Abacus.AI Python API Client [![PyPI version](https://badge.fury.io/py/abacusai.svg)](https://badge.fury.io/py/abacusai)

The official Python API Client Library for Abacus.AI.

## Install
## Installation

Install using pip:

```console
$ pip install abacusai
```

## Quick Start

### Authentication

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

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

### Basic Usage Examples

```python
# 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

Function Documentation: https://abacusai.github.io/api-python/autoapi/abacusai/index.html
- API Reference: https://abacusai.github.io/api-python/autoapi/abacusai/index.html
- Full Documentation: https://abacus.ai/app/help/ref/overview
- Examples & Tutorials: https://abacus.ai/app/help/examples

For a full list of APIs and code snippet examples, see the [Abacus.AI Documentation](https://abacus.ai/app/help/ref/overview).
## Features

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

### Calling an API
## Requirements

To call an API, you must first instantiate an `ApiClient`.
- Python 3.7+
- requests>=2.25.0
- pandas>=1.0.0
- numpy>=1.19.0

## Error Handling

```python
from abacusai import ApiClient
client = ApiClient('YOUR_API_KEY')
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

- Email: [email protected]
- Documentation: https://abacus.ai/app/help
- GitHub Issues: https://github.com/abacusai/api-python/issues

## License

[MIT](https://github.com/abacusai/api-python/blob/main/LICENSE)