semvec/pypi-packages huggingface dataset:
usecart 0.1.0
Python SDK for the Cart e-commerce intelligence API
Requires Python: >=3.9
Keywords: api, cart, dropshipping, ecommerce, product-research, sdk, shopify

# usecart

Python SDK for the [Cart](https://usecart.com) e-commerce intelligence API.

Zero dependencies. Python 3.9+.

## Install

```bash
pip install usecart
```

## Quick Start

```python
from usecart import Cart

cart = Cart("cart_sk_...")

# Search stores
stores = cart.stores.search(keyword="fitness", platform="shopify", min_traffic=10000)
print(stores.data)
# [{"domain": "gymshark.com", "traffic": 4200000, ...}, ...]

# Get a single store
store = cart.stores.get("gymshark.com")

# Search products
products = cart.products.search(keyword="yoga mat", min_price=20)

# Get trending
trending = cart.trending()

# Check rate limits
print(cart.rate_limit)
# RateLimitInfo(remaining=99, limit=100)
```

## Response Shape

Every method returns an `ApiResponse` with three attributes:

```python
response = cart.stores.search(keyword="fitness")

response.data          # list of dicts or single dict
response.meta          # ApiResponseMeta(request_id, timestamp, page, total_pages, total_results)
response.usage         # ApiResponseUsage(requests_today, limit)
```

## Resources

| Resource | Methods |
|----------|---------|
| `cart.stores` | `search()`, `get()`, `get_products()`, `get_ads()`, `get_traffic()`, `get_tech()`, `compare()` |
| `cart.products` | `search()`, `get()`, `trending()` |
| `cart.ads` | `search()`, `get()` |
| `cart.suppliers` | `search()` |
| `cart.niches` | `get()` |
| top-level | `cart.trending()`, `cart.account()` |

## Error Handling

```python
from usecart import Cart, CartAuthError, CartRateLimitError, CartApiError

cart = Cart("cart_sk_...")

try:
    stores = cart.stores.search(keyword="fitness")
except CartAuthError as e:
    print(f"Auth failed: {e}")
except CartRateLimitError as e:
    print(f"Rate limited. Retry after {e.retry_after}s")
except CartApiError as e:
    print(f"API error {e.status}: {e.message}")
```

## Links

- [Documentation](https://docs.usecart.com)
- [API Reference](https://docs.usecart.com)
- [TypeScript SDK](https://www.npmjs.com/package/@usecart/sdk)
smeller-sages-kalkulator 0.4.0
Add your description here
Requires Python: >=3.13

# Calculator Functions
This module provides a collection of functions for performing basic arithmetic operations, including addition, subtraction, multiplication, and division. Each function takes two numerical inputs and returns the result of the corresponding operation.
## Functions
- `add(a, b)`: Returns the sum of `a` and `b`.
- `subtract(a, b)`: Returns the difference of `a` and `b`.
- `multiply(a, b)`: Returns the product of `a` and `b`.
- `divide(a, b)`: Returns the quotient of `a` and `b`.
- `predict(features)`: Returns the prediction for given features using the loaded Iris model.
## Usage
To use the functions in this module, simply import the module and call the desired function with the appropriate arguments. For example:
```python
from smeller_sages_kalkulator import add, subtract, multiply, divide, predict
result_add = add(5, 3)        # Returns 8
result_subtract = subtract(5, 3)  # Returns 2
result_multiply = multiply(5, 3)  # Returns 15
result_divide = divide(5, 3)    # Returns 1.6666666666666667
result_predict = predict([5.1, 3.5, 1.4, 0.2]) # Returns class prediction (e.g., 0)
```

## Error Handling
The `divide` function includes error handling to prevent division by zero. If the second argument is zero, the function will raise a `ValueError` with an appropriate message. For example:
```python
try:
    result_divide = divide(5, 0)  # This will raise a ValueError
except ValueError as e:
    print(e)  # Output: Cannot divide by zero.
```
## Conclusion
This module provides a simple and efficient way to perform basic arithmetic operations. It can be easily extended
to include additional functions such as exponentiation, modulus, or more complex mathematical operations as needed.