semvec/pypi-packages huggingface dataset:
json-to-prompt 0.1.0
Convert JSON/dicts into formatted prompt text.
License: MIT
Requires Python: >=3.10
Keywords: json, prompt, llm, utilities

# JSON To Prompt
A lightweight Python utility for converting structured JSON data into formatted prompt text.

This library is designed to transform dictionaries or JSON inputs into readable, structured text prompts suitable for LLM workflows, templating systems, or downstream processing.

## Features
- Convert Python dictionaries to formatted prompt strings
- Read JSON strings directly
- Load JSON from file
- Write generated prompts to file

### Usage

### Convert a Dictionary to a Prompt
```python
from json_to_prompt import JSONToPrompt

data = {
    "Title": "Hello...",
    "Subtitle": "Goodbye...",
    "Cards": [
        {
            "ID": 1,
            "Title": "I'm a card...",
        }
    ]
}

jtp = JSONToPrompt(debug=True)
prompt = jtp.add_dict(data).parse().get_prompt()
print([prompt])
```
**Output**:
```text
Title: Hello...
Subtitle: Goodbye...
Cards:
    - ID: 1
    - Title: I'm a card... 
```
### Read from a JSON string
```python
json_str = '{"pet": "cat"}'

jtp = JSONToPrompt()
prompt = jtp.read_json(json_str).parse().get_prompt()

```

### Read from a JSON file
```python
jtp = JSONToPrompt()
prompt = jtp.read_json_file("example.json").parse().get_prompt()
```

### Write Prompt To file
```python
jtp.write_prompt_to_file("prompt.txt")
```
mt5linux 1.0.3
MetaTrader5 for linux users
License: MIT

# MetaTrader 5 for Linux

A package that uses [Wine](https://www.winehq.org), [RPyC](https://github.com/tomerfiliba-org/rpyc), and a Python Windows version to run [MetaTrader5](https://pypi.org/project/MetaTrader5) on Linux.

For an explanation of who should use mt5linux and why, see [Motivation and Use Cases](docs/MOTIVATION.md).

## Installation

1. Install [Wine](https://wiki.winehq.org/Download).

2. Install [Python for Windows](https://www.python.org/downloads/windows/) on Linux using Wine.

3. Find the path to `python.exe` (e.g., `/home/user/.wine/drive_c/users/user/Local Settings/Application Data/Programs/Python/Python39`).

4. Install the MetaTrader5 library on your **Windows** Python:

   ```bash
   pip install MetaTrader5
   ```

5. Install this package on both **Windows** and **Linux** Python:

   ```bash
   pip install mt5linux
   ```

## Docker

Alternatively, you can run this library using Docker, see the [docs](https://github.com/lucas-campagna/mt5linux/tree/master/docker#docker).

## Usage

1. Open MetaTrader5.

2. Start the server:

   - **Windows** (native):
     ```bash
     python -m mt5linux
     ```

   - **Linux** (with Wine):
     ```bash
     wine python -m mt5linux
     ```

   The server accepts various options. View them with:
   ```bash
   python -m mt5linux --help
   ```

3. On the **Linux** side, use the library as usual:

   ```python
   from mt5linux import MetaTrader5

   mt5 = MetaTrader5()
   mt5.initialize()
   mt5.terminal_info()
   mt5.shutdown()
   ```

   For full API documentation, see the [official MetaTrader5 Python integration](https://www.mql5.com/en/docs/integration/python_metatrader5/).

## Thanks

- [hpdeandrade](https://github.com/hpdeandrade) for many improvements and insights about [docker](https://github.com/ananta-dev).
- [ananta-dev](https://github.com/ananta-dev) for project [motivation](https://github.com/lucas-campagna/mt5linux/blob/master/docs/MOTIVATION.md#motivation-and-use-cases).