Metadata-Version: 2.1
Name: py-apibase
Version: 0.1.0
Summary: is a lightweight Python library that simplifies the creation of API clients
License: MIT
Author: Basri
Author-email: h@basri.me
Requires-Python: >=3.12,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: requests (>=2.32.3,<3.0.0)
Description-Content-Type: text/markdown

# apibase

`apibase` is a lightweight Python library that simplifies the creation of API clients. It uses the popular `requests` library for handling HTTP requests and abstracts away much of the complexity, allowing you to focus on interacting with the API.

## Features

- Simple and intuitive interface
- Supports basic authentication and token-based authentication
- Automatically handles URL construction
- Uses Python's `requests` library for HTTP requests

## Requirements

- Python 3.x
- `requests` library

## Installation

You can install `apibase` using pip:

```sh
pip install apibase
```

## Usage

Here's a basic example of how to use apibase to create an API client:

```python
from apibase import ApiBase

BASE_URL = 'https://api-base.cloud'

class APITest(ApiBase):
    pass

fc = APITest(username="user", password="pass", key="key", token="token")

# https://api-base.cloud/orders
orders = fc.orders.get()

for order in orders:
    print(f"uid: {order.get('uid')} description: {order.get('description')}")
```

## License

This project is licensed under the MIT License. See the LICENSE file for details.
Contributing

Contributions are welcome! Please open an issue or submit a pull request.
