semvec/pypi-packages huggingface dataset:
simple-text2sql 1.0.3
A simple implementation of Text2SQL.
Requires Python: >=3.12.3

# Text2SQL
A simple implementation of Text2SQL.

## Requirements
- Python 3.12.3+
- Postgresql / Mysql
- LLM API
- *Milvus 2.5.0+*
- *Embedding API*

## Definition
### LLM URI
A db-uri-style string that provides information for calling the model API.
#### Format
```plaintext
<model_type>+<api_type>://<model>[:<model_tag>]@[<api_key>]@<url>
```
#### Supported Model Type
- llm
- embedding
#### Supported API Type
- ollama
- openai
#### Example
llm+ollama://qwen2.5:32b@localhost:11434
llm+openai://gpt-3.5-turbo:32b@your_token@http://localhost:11434/v1
### SQL References
Optional metadata stored in Milvus.
Provide some sql references for problems similar to the current problem.
#### Format
Must contain `query` and `sql` fields.
Vector field will be matched the embedding of query.


## Usage
```python
from text2sql import Text2SQL
worker = Text2SQL(
    db_uri="postgresql+psycopg2://postgres:123456@localhost:5432/test",
    llm_uri="llm+ollama://qwen2.5:32b@localhost:11434",
    milvus_uri="http://read:123456@localhost:19530",
    collection_name="sql_references",
    embedding_uri="embedding+ollama://bge-m3@localhost:11434"
)
sql = worker("公司的设备清单", ["assets", "users", "projects"]).sql
```
mplfontutils 0.1.0
Utility package for testing and loading fonts in matplotlib
Requires Python: >=3.9

# mplfontutils

A utility package for testing and loading fonts in matplotlib.

## Installation

```shell
pip install git+https://github.com/xsjk/mplfontutils.git
```

## Usage

### Command Line

Test which fonts can display specific text:

```shell
python -m mplfontutils "Hello 世界"
```

### Python API

```python
from mplfontutils import find_available_fonts, load_fonts_from_directory

# Load fonts from directory
load_fonts_from_directory("/path/to/fonts")

# Find compatible fonts
fonts = find_available_fonts("中文测试")
print(f"Found {len(fonts)} compatible fonts")
```

## License

[MIT License](LICENSE)