semvec/pypi-packages huggingface dataset:
orchard-lime 0.1.0
Lime is the MaaS proxy for anonymously access with OpenAI API.
Requires Python: >=3.6

# Lime

Lime is the MaaS proxy for anonymously access with OpenAI API.

* Compatible with multiple OpenAI API endpoints.
* Allow anonymous access for unregistered users.
* Configurable for free MaaS services and models.

## Install

Install with `pip`.

```
pip install orchard-lime
```

## Setup

Prepare a configuration file named `lime.yaml` with the following content. Change MaaS and API KEY if needed.

```
maas:
  base_url: "https://api.siliconflow.cn/v1"
  api_key: ""
  default_model: ""
  models:
    - "Qwen/Qwen2-7B-Instruct"
    - "Qwen/Qwen2-1.5B-Instruct"
    - "Qwen/Qwen1.5-7B-Chat"
    - "THUDM/glm-4-9b-chat"
    - "THUDM/chatglm3-6b"
    - "01-ai/Yi-1.5-9B-Chat-16K"
    - "01-ai/Yi-1.5-6B-Chat"
    - "google/gemma-2-9b-it"
    - "internlm/internlm2_5-7b-chat"
    - "meta-llama/Meta-Llama-3-8B-Instruct"
    - "meta-llama/Meta-Llama-3.1-8B-Instruct"
    - "mistralai/Mistral-7B-Instruct-v0.2"
```

Start with `uvicorn`.

```
uvicorn lime.main:app --reload --port 10000
```

## Usage

Use HTTP API with curl.

```
curl -X POST "http://127.0.0.1:10000/v1/chat/completions" -H "Content-Type: application/json" -d '{
  "model": "Qwen/Qwen2-7B-Instruct",
  "messages": [{"role": "user", "content": "Who are you?"}]
}'
```

Use [bascket](https://github.com/OrchardUniverse/basket) command.

```
basket maas use Lime

basket model use Qwen/Qwen2-7B-Instruct

basket chat "what is the meaning of life?"
```
showexception 0.1.1
Pretty print exception details
Requires Python: >=3.9
Keywords: util, utility

# ShowException

**ShowException** is a Python exception display assitant providing pretty print capability of exception details from a specified code area/module name. CLI test functionality provided to demo display characteristics for several exception types.

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install **showexception**.

```bash
pip install showexception
```


## Library Usage
```python
from showexception.showexception import exception_details

try:
    x = 1/0

except Exception as e:
    exception_details(e, 'test-except-show')
```


## CLI Utility

The following CLI is included with this package for visualizing a few exceptions.

```bash
# testexcept -h
usage: testexcept [-h] [-r] {test.zero.div,test.name.err,test.type.err} ...

-.-.-. Exception Content Display for python scripts

positional arguments:
  {test.zero.div,test.name.err,test.type.err}
    test.zero.div       display exception info for a divide by zero exception
    test.name.err       display exception info for a name error exception
    test.type.err       display exception info for a type error exception

options:
  -h, --help            show this help message and exit
  -r, --raw             show raw exception details

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
```


## License

[MIT](https://choosealicense.com/licenses/mit/)