semvec/pypi-packages huggingface dataset:
llm-tool-runtime 0.1.5
Tool calling runtime for text-only LLMs with LangChain support
License: MIT
Requires Python: >=3.12
Keywords: llm, tool-calling, langchain, ai, agents

# llm-tool-runtime

A lightweight, extensible runtime for calling LLM tools and chaining them together. Installable from PyPI for easy integration into your Python projects.

## Installation

Install the core package:

```bash
pip install llm-tool-runtime
```

### Optional Model Support

Some LLM providers require extra dependencies. You can install them with extras:

- **Google Gemma**:
  ```bash
  pip install "llm-tool-runtime[google]"
  ```
- **OpenAI**:
  ```bash
  pip install "llm-tool-runtime[openai]"
  ```
- **Anthropic**:
  ```bash
  pip install "llm-tool-runtime[anthropic]"
  ```
- **Ollama**:
  ```bash
  pip install "llm-tool-runtime[ollama]"
  ```
- **Together**:
  ```bash
  pip install "llm-tool-runtime[together]"
  ```
- **All supported providers**:
  ```bash
  pip install "llm-tool-runtime[all]"
  ```

## Usage

Import and use the runtime in your Python code:

```python
from llm_tool_runtime import ToolRuntime
from langchain_google_genai import ChatGoogleGenerativeAI
llm = ChatGoogleGenerativeAI(model="gemma-3-27b-it")
runtime = ToolRuntime(llm, verbose=True)

@runtime.tool
def add(a: int, b: int) -> int:
    """Add two numbers together."""
    return a + b

result = runtime.run("What is 15 + 27?")
print(result)  # "The result of 15 + 27 is 42."
```

See [example.py](https://github.com/Anky9972/llm_tool_runtime/blob/main/example.py) and [example_chain.py](https://github.com/Anky9972/llm_tool_runtime/blob/main/example_chain.py) for usage examples.

## Features
- Register and call tools with LLMs
- Chain tools together for complex workflows
- Extensible registry for custom tools
- Error handling and type safety

## Documentation
- [Project Documentation](https://anky9972.github.io/llm_tool_runtime/)
- [Project README and Contribution Guide](https://github.com/Anky9972/llm_tool_runtime/blob/main/README.md)
- [PyPI Project Page](https://pypi.org/project/llm-tool-runtime/)

## Contributing

Contributions are welcome! Please see the [main README](https://github.com/Anky9972/llm_tool_runtime/blob/main/README.md) for guidelines.

## License

This project is licensed under the terms of the [MIT License](https://github.com/Anky9972/llm_tool_runtime/blob/main/LICENSE). See the LICENSE file for details.

## Support

For issues, suggestions, or questions, please open an issue on the [GitHub repository](https://github.com/Anky9972/llm_tool_runtime).
word-number-converter 0.1.0
A multi-language library to convert numbers to words and words to numbers.
License: MIT
Requires Python: >=3.7
Keywords: number, word, converter, nlp, chinese, arabic, spanish, french, german

# Word Number Converter

A lightweight, multi-language Python library for converting **numbers to words** and **words back to numbers**.  
It supports multiple human languages, Chinese numeral systems, and Roman numerals, all through a simple API.

---

## ✨ Features

- Convert integers to words in multiple languages
- Convert words back to integers (where supported)
- Chinese number systems:
  - Simplified
  - Traditional
  - Financial
- Roman numeral conversion
- Handles negative numbers
- No external dependencies

---

## 🌍 Supported Languages

### Number → Words
- English (`en`)
- Chinese (`zh`)
- Spanish (`es`)
- French (`fr`)
- German (`de`)
- Swahili (`sw`)
- Japanese (`ja`)
- Arabic (`ar`)
- Roman numerals

### Words → Number
- English (`en`)
- Chinese (`zh`)
- Roman numerals (`roman`)

> ⚠️ Reverse conversion is not yet implemented for all languages.

---

## 📦 Installation

```bash
pip install word-number-converter
````

---

## 🚀 Quick Start

```python
from word_number_converter import WordNumberConverter

converter = WordNumberConverter()
```

### Number to Words

```python
converter.number_to_words(123)
# "one hundred twenty-three"

converter.number_to_words(456, lang="es")
# "cuatrocientos cincuenta y seis"

converter.number_to_words(789, lang="fr")
# "sept cent quatre-vingt-neuf"

converter.number_to_words(2024, lang="zh", system="simplified")
# "二千零二十四"

converter.number_to_words(-15, lang="de")
# "minus fünfzehn"
```

### Words to Number

```python
converter.words_to_number("one hundred twenty three")
# 123

converter.words_to_number("一百二十三", lang="zh")
# 123

converter.words_to_number("MCMXCIV", lang="roman")
# 1994
```

### Roman Numerals

```python
converter.number_to_roman(1994)
# "MCMXCIV"

converter.roman_to_number("XLII")
# 42
```

---

## 🀄 Chinese Number Systems

```python
converter.number_to_words(1024, lang="zh", system="simplified")
# 一千零二十四

converter.number_to_words(1024, lang="zh", system="traditional")
# 一千零二十四

converter.number_to_words(1024, lang="zh", system="financial")
# 壹仟零贰拾肆
```

Supported systems:

* `simplified`
* `traditional`
* `financial`

---

## 🧠 Design Notes

* Focused on correctness and readability over linguistic edge cases
* Designed for NLP preprocessing, localization, and educational use
* No third-party dependencies
* Python ≥ 3.7

---

## 📄 License

[MIT License](LICENSE)

---

## 👤 Author

**Ricardo**
📧 [ricardo.devstudio@gmail.com](mailto:ricardo.devstudio@gmail.com)

---

## 🔗 Links

* Homepage: [https://github.com/mricardo888/WordNumberConverter](https://github.com/mricardo888/WordNumberConverter)
* Issues: [https://github.com/mricardo888/WordNumberConverter/issues](https://github.com/mricardo888/WordNumberConverter/issues)