semvec/pypi-packages huggingface dataset:
img-to-pdf 1.0.2
Simple CLI tool to convert images in a directory to a PDF
License: MIT
Keywords: PDF,image,convert

# makePDF or img-to-pdf

[![PyPI version](https://badge.fury.io/py/img-to-pdf.svg)](https://badge.fury.io/py/img-to-pdf)


This is a simple script to convert all images or pdfs in a directory to a single pdf file.

- [PyPI](https://pypi.org/project/img-to-pdf/)
- [GitHub](https://github.com/Cbannon35/makePDF/)

## Usage

```bash
makePDF [operation] [flags]
```

## Operations

- `img`: Convert all images in a directory to a single PDF.
- `pdf`: Convert all PDFs in a directory to a single PDF.
- `help`: Display help information.

## Flags

- `-name`: The name of the output file.
- `-in` or `--input`: The input directory.
- `-out` or `--output`: The output directory.

## Example

Merge images from the directory `input_images` into a single PDF named `output.pdf` in the directory `example/output_pdf`:

```bash
makePDF img -in input_images -out example/output_pdf -name output.pdf
```

Merge all pdf in the current directory into a single PDF in the current directory:

```bash
makePDF.py pdf
```

## Installation

```bash
pip install img-to-pdf
```

## License

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

## Motivation

I created this script in an afternoon because I was not having a fun time converting images to PDFs for class. [Automator](https://apple.stackexchange.com/questions/12709/how-can-i-convert-jpg-into-pdf-easily) has a good solution for Mac users, but I was more comfortable in the terminal.

## Room for Improvement

- Add support for other file types.
- Further Optimization
appolo-settings 0.2.0
Apollo Config & Pydantic Settings
License: MIT
Requires Python: >=3.8,<4.0

# appolo_settings
Apollo Config & Pydantic Settings

# Install

```bash
pip install appolo-settings
```

# Usage

```python
import time
from appolo_settings import AppoloSettings, AppoloSettingsConfigDict


class MySettings(AppoloSettings):
    model_config = AppoloSettingsConfigDict(
        meta_url='your_meta_url',
        app_id='your_app_id',
    )

    openai_api_base: str = 'test'
    rerank_model: str = 'test'
    rerank_threshold: float = 0.2


class ChatEninge:

    def __init__(self, rerank_model: str) -> None:
        self.rerank_model = rerank_model
    
    def update_model(self, rerank_model: str):
        self.rerank_model = rerank_model


settings = MySettings()
engine = ChatEninge(rerank_model=settings.rerank_model)
settings.on_change(engine.update_model, fields=['rerank_model'])
print(settings)
print(engine.rerank_model)
time.sleep(1)
print(settings)
print(engine.rerank_model)

```

AppoloClient code from @[crowod](https://github.com/crowod)