Metadata-Version: 2.4
Name: siigo_connector
Version: 0.2.4
Summary: Python client for the Siigo API
Project-URL: homepage, https://github.com/arendondiosa/siigo-connector-py
Project-URL: repository, https://github.com/arendondiosa/siigo-connector-py
Project-URL: changelog, https://github.com/arendondiosa/siigo-connector-py/releases
Author-email: "Alejandro E. Rendon" <arendondiosa@gmail.com>
License: MIT License
        
        Copyright (c) 2025 Alejandro E. Rendon
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: httpx<0.29.0,>=0.28.1
Requires-Dist: pydantic[email]<3.0.0,>=2.11.7
Requires-Dist: tenacity>=9.1.2
Description-Content-Type: text/markdown

# siigo_connector — Python client for the Siigo API

> [!WARNING]
> **Status:** Under development (alpha). Breaking changes may occur.

A small, typed client for [Siigo](https://api.siigo.com). It handles auth (JWT with `username` + `access_key` + `Partner-Id`), retries, and pagination so you can call Python methods instead of crafting HTTP requests.

> Requires Python 3.9+

## Install

Create and activate a virtual environment and then install FastAPI:

```bash
pip install siigo-connector
```

## Usage

Create the Client instance

```python
from src.siigo_connector import client as siigo

c = siigo.Client(
    username="siigoapi@pruebas.com",
    access_key="<access_token>",
    partner_id="myapp",  # short, no spaces
)
```

### Customers

```python
for cust in c.customers.list(created_start="2024-08-30"):
    print(cust)
```

Close the connection after at the end

```python
c.close()
```
