semvec/pypi-packages huggingface dataset:
llama-cpp-guidance 0.1.2
A guidance compatibility layer for llama-cpp-python
Requires Python: >=3.9,<3.12

# llama.cpp Guidance

[![pypi version shield](https://img.shields.io/pypi/v/llama-cpp-guidance)](https://img.shields.io/pypi/v/llama-cpp-guidance)

The `llama-cpp-guidance` package provides an LLM client compatibility layer between [llama-cpp-python] and [guidance].

## Installation

The `llama-cpp-guidance` package can be installed using pip.

```console
pip install llama-cpp-guidance
```

⚠️ It is highly recommended that you follow the installation instructions for [llama-cpp-python] after installing `llama-cpp-guidance` to ensure that you have hardware acceleration setup appropriately.

## Basic Usage

Once installed, you can use the `LlamaCpp` class like any other guidance-compatible LLM class.

```python
from pathlib import Path
from llama_cpp_guidance.llm import LlamaCpp
import guidance

guidance.llm = LlamaCpp(
    model_path=Path("../path/to/llamacpp/model.gguf"),
    n_gpu_layers=1,
    n_threads=8
)

program = guidance(
    "The best thing about the beach is {{~gen 'best' temperature=0.7 max_tokens=10}}"
)
output = program()
print(output)
```

```console
The best thing about the beach is that there’s always something to do.
```

[llama-cpp-python]: https://github.com/abetlen/llama-cpp-python/
[guidance]: https://github.com/guidance-ai/guidance/
sim-sensors 0.4.1
A collection of classes that simulate IoT sensors
Requires Python: >=3.9
Keywords: simulated,sensors,iot

### sim_sensors

This is an educational python package that holds classes intended to simulate sensors. The sensors are those you would find in a typical IoT lab or home project.

The objects created can be placed in seperate threads and spun up to spit out values. You can use the created values to demonstrate data visualisation and analysis skills. Or store them in a database and practice sql operations.

Please check the code for additional comments that describe how the various components work.


## Contributing

Want to contribute? Check out our [contributor guidelines](CONTRIBUTING.md)!
gitea-actions-webscraper 0.0.5
Enable temporarily Gitea Actions web scraping.
Requires Python: >=3.7

# Gitea Actions Webscraper

Install with:

```
pip install gitea_actions_webscraper
```

Example usage:

```py
from gitea_actions_webscraper import GiteaActionsWebscraper
import json

print('Verifying Gitea Actions Webscraper configuration...')
gitea_actions_webscraper = GiteaActionsWebscraper('https://codeberg.org', 'User/Repository', 'YOUR_i_like_gitea_COOKIE')
print('Gitea Actions Webscraper configuration verified!')

actions = gitea_actions_webscraper.getFirstActionsPage()
lastAction = actions[0]
print(lastAction.commitTitle)
print(json.dumps(lastAction.getArtifacts(), indent = 4))
print(json.dumps(lastAction.getLogs(), indent = 4))
messages = '\n'.join([stepLog['message'] for stepLog in lastAction.getStepLogs(0)])
print(messages)
```