Metadata-Version: 2.4
Name: dinq-people-search
Version: 0.1.1
Summary: DINQ People Search SDK for Python.
Project-URL: Homepage, https://dinq.me
Project-URL: Repository, https://github.com/DINQ-labs/dinq-fastapi
Author: DINQ Labs
Keywords: dinq,people-search,talent-search
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Typing :: Typed
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# DINQ People Search Python SDK

Thin SDK for the production DINQ People Search API.

## Install

```bash
pip install dinq-people-search
```

## Usage

```python
from dinq_people_search import DinqPeopleSearch

client = DinqPeopleSearch(api_key="sk-...")

response = client.search(
    query="AI agent engineer",
    limit=10,
    sources=["github", "huggingface"],
)
```

The SDK calls:

```text
POST https://api.dinq.me/v2/people/search
```

## Request

```python
client.search(
    query: str,
    limit: int | None = None,
    sources: list[str] | None = None,
)
```

Supported sources are `github`, `huggingface`, `company`, `linkedin`, `scholar`, and `academic`.

## Response

The SDK returns the API response as-is:

```json
{
  "code": 0,
  "data": {
    "results": [],
    "meta": {}
  },
  "message": "OK"
}
```

If the HTTP request fails or `code` is non-zero, the SDK raises `DinqPeopleSearchError`.
