semvec/pypi-packages huggingface dataset:
stables 0.1.0
tools for collecting, analyzing, and displaying stablecoin data
Requires Python: >=3.7


# Stables 🐴

tools for collecting, analyzing, and displaying stablecoin data


## Code Layout

```
- collect: functions for collecting data
    - metrics: collectors for (network, metric) pairs
    - supplements: collectors for supplemental datasets
- display: functions for displaying data
    - dash: functions related to dash
    - plotly: functions related to plotly
- store: functions for storing and loading data
- summarize: functions for summarizing data
- transform: funcitons for transforming data
```
AnthropicMockerClient 0.2.1
A lightweight wrapper around the Anthropic Python client for testing purposes
Requires Python: >=3.7

# AnthropicMockerClient

A lightweight wrapper around the Anthropic Python client for testing purposes.

Save money on your Anthropic API usage by mocking responses when your API key is prefixed with `TEST_`.

## Installation

You can install the AnthropicMockerClient package using pip:

```bash
pip install AnthropicMockerClient
```

```python
from anthropic_Mocker_client import AnthropicMockerClient
```

## Initialize the client

```python
client = AnthropicMockerClient(api_key="your_api_key_here")
```

## Use the client to interact with Anthropic's API

```python
response = client.complete(
prompt="Hello, world!",
model="claude-2",
max_tokens_to_sample=100
)
print(response)
```

```python
from anthropic_Mocker_client import AnthropicMockerClient
# Initialize the testable client
testable_client = AnthropicMockerClient(api_key="test_key")
#Set a mock response
testable_client.set_mock_response({
"completion": "This is a mock response",
"stop_reason": "stop_sequence",
"model": "claude-2"
})
# Use the client in your tests
response = testable_client.complete(
prompt="Test prompt",
model="claude-2",
max_tokens_to_sample=100
)
assert response["completion"] == "This is a mock response"
```

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

## Disclaimer

This is an unofficial Mocker and is not affiliated with or endorsed by Anthropic. Use at your own risk.