semvec/pypi-packages huggingface dataset:
pyfastflow 0.0.1
In process streaming workflows
Requires Python: >=3.12

# fastflow
![pypi](https://img.shields.io/pypi/v/fastflow.svg)
![versions](https://img.shields.io/pypi/pyversions/fastflow.svg)

In process streaming workflows

## Usage

```console
> pip install fastflow
```

## Getting Started

- [Quick Start](#quick-start)
- [Development](./docs/DEVELOPMENT.md)
  - [setup](./docs/DEVELOPMENT.md#setup)
  - [check](./docs/DEVELOPMENT.md#check)
  - [dream2nix](./docs/DEVELOPMENT.md#dream2nix)
  - [pypi](./docs/DEVELOPMENT.md#pypi)

## Quick Start

Install Nix

```console
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
```

Perform initial setup with:

```console
> direnv allow
> dev setup
```

Then explore other options with:

```console
> dev --help
```

## License

`fastflow` is released under the [MIT license](./LICENSE)
rsyslog-client-assist 0.1.4
Generate client-side configuration for rsyslog
Requires Python: >=3.6

# Rsyslog Configuration Generator

This Python application generates client-side configuration for rsyslog using RainerScript. The configuration includes defining a ruleset and applying it to monitor log files.

## Overview

This application provides two main functions:

1. **`client_ruleset_config`**: Generates an rsyslog RainerScript configuration string to define a ruleset with disk queue settings.
2. **`apply_ruleset_client`**: Generates an rsyslog RainerScript configuration string to apply a previously defined ruleset to monitor a log file using the imfile module.

## Prerequisites

- Python 3.x
- Basic understanding of rsyslog and RainerScript

## Functions

### `client_ruleset_config(rule_name, server_ip, port, protocol)`

### `apply_ruleset_client(log_file, tag, facility, severity, rule_name)`

Generates a RainerScript configuration string to define a ruleset and apply the rule.

**Arguments:**

- `rule_name` (str): Name of the ruleset.
- `server_ip` (str): IP address or hostname of the rsyslog server.
- `port` (int): Port number to send logs to.
- `protocol` (str): Protocol to use ('tcp' or 'udp').
- `log_file` (str): Log file name where the rule should be applicable.
- `tag` (str): tag of the log events.
- `facility` (str): Facilities of the log events('local0' to 'local6', 'authpriv','mail' etc.).
- `severity` (str): Log criticality('info','warn','crit' etc.).

**Returns:**

- `str`: RainerScript configuration string defining the ruleset.

**Examples:**

```python
config = client_ruleset_config("myRuleset", "192.168.1.100", 514, "tcp")
print(config)
```

```python
apply = apply_ruleset_client(/var/log/message, message_log, local3, info, myRuleset)
print(apply)
```