Metadata-Version: 2.5
Name: crewai-veille
Version: 0.1.0
Summary: CrewAI tools for Veille: check emails, domains, IP addresses, phone numbers, EU VAT numbers and IBANs for fraud and validity.
Project-URL: Homepage, https://www.veille.io
Project-URL: Documentation, https://github.com/veilleio/crewai-veille#readme
Project-URL: Repository, https://github.com/veilleio/crewai-veille
Project-URL: Issues, https://github.com/veilleio/crewai-veille/issues
Author-email: Veille <contact@veille.io>
License-Expression: MIT
License-File: LICENSE
Keywords: agents,crewai,email-validation,fraud,iban,ip-reputation,phone-validation,tools,vat,veille
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Typing :: Typed
Requires-Python: <3.14,>=3.10
Requires-Dist: crewai>=0.150
Requires-Dist: httpx<1,>=0.27
Provides-Extra: test
Requires-Dist: pytest>=8.3; extra == 'test'
Requires-Dist: ruff<1,>=0.8; extra == 'test'
Description-Content-Type: text/markdown

# crewai-veille

[CrewAI](https://www.crewai.com) tools for [Veille](https://www.veille.io): check emails, domains, IP addresses, phone numbers, EU VAT numbers and IBANs for fraud and validity.

## Installation

```bash
pip install crewai-veille
export VEILLE_API_KEY="your-api-key"
```

Get an API key at [app.veille.io](https://app.veille.io).

## Tools

| Tool | What it does |
| --- | --- |
| `VeilleEmailCheckTool` | Check an email address through Veille. |
| `VeilleDomainCheckTool` | Check a domain through Veille. |
| `VeilleIPCheckTool` | Check an IP address through Veille. |
| `VeillePhoneCheckTool` | Check a phone number through Veille. |
| `VeilleVATCheckTool` | Validate an EU VAT number through Veille. |
| `VeilleIBANCheckTool` | Validate an IBAN through Veille. |

Each tool takes `api_key` (defaults to `VEILLE_API_KEY`), `base_url` and `timeout`, plus the settings shown in its docstring. Errors (invalid key, no credits, rate limit, timeout) come back to the agent as text, without the API key.

```python
from crewai import Agent
from crewai_veille import VeilleEmailCheckTool, VeilleDomainCheckTool

agent = Agent(
    role="Analyst",
    goal="Answer with data from Veille",
    backstory="You use Veille to check emails.",
    tools=[VeilleEmailCheckTool(), VeilleDomainCheckTool()],
)

print(VeilleEmailCheckTool().run(**{"email": "john@example.com"}))
```

## Development

```bash
pip install -e ".[test]"
pytest
```

## License

MIT
