Metadata-Version: 2.5
Name: crewai-asin
Version: 0.1.0
Summary: CrewAI tools for Asin: search Amazon, read a product's price history and compare its sellers' offers.
Project-URL: Homepage, https://www.asin.dev
Project-URL: Documentation, https://github.com/asindotdev/crewai-asin#readme
Project-URL: Repository, https://github.com/asindotdev/crewai-asin
Project-URL: Issues, https://github.com/asindotdev/crewai-asin/issues
Author-email: Asin <contact@asin.dev>
License-Expression: MIT
License-File: LICENSE
Keywords: agents,amazon,asin,crewai,ecommerce,price-history,price-tracking,tools
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-asin

[CrewAI](https://www.crewai.com) tools for [Asin](https://www.asin.dev): search Amazon, read a product's price history and compare its sellers' offers.

## Installation

```bash
pip install crewai-asin
export ASIN_API_KEY="your-api-key"
```

Get an API key at [www.asin.dev/app](https://www.asin.dev/app).

## Tools

| Tool | What it does |
| --- | --- |
| `AsinAmazonSearchTool` | Search an Amazon store through Asin. |
| `AsinPriceHistoryTool` | Read the price history of an Amazon product through Asin. |
| `AsinOffersTool` | Read the sellers' offers for an Amazon product through Asin. |

Each tool takes `api_key` (defaults to `ASIN_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_asin import AsinAmazonSearchTool, AsinPriceHistoryTool

agent = Agent(
    role="Analyst",
    goal="Answer with data from Asin",
    backstory="You use Asin to search Amazon.",
    tools=[AsinAmazonSearchTool(), AsinPriceHistoryTool()],
)

print(AsinAmazonSearchTool().run(**{"query": "kindle"}))
```

## Development

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

## License

MIT
