semvec/pypi-packages huggingface dataset:
muuntuu 2025.12.5
Transforms (Finnish: muuntuu) helper tool.
Requires Python: >=3.9
Keywords: author-tools, developer-tools, JSON, YAML

# Muuntuu

Transforms (Finnish: muuntuu) helper tool.

## Usage:

```erlang
❯ muuntuu
usage: muuntuu [-h] [--source FILE] [--target FILE] [--debug] [--policy-writer POLICY_WRITER]
               [--general-offset GEN_OFFSET] [--mapping-offset MAP_OFFSET] [--sequence-offset SEQ_OFFSET]
               [--width WIDTH] [--default-flow-style] [--sort-base] [--force] [--quiet] [--version]
               [SOURCE_FILE] [TARGET_FILE]

Transforms (Finish: muuntuu) helper tool.

positional arguments:
  SOURCE_FILE           JSON or YAML source as positional argument
  TARGET_FILE           JSON or YAML target as positional argument

options:
  -h, --help            show this help message and exit
  --source FILE, -s FILE
                        JSON or YAML source
  --target FILE, -t FILE
                        JSON or YAML target
  --debug, -d           work in debug mode (default: False), overwrites any environment variable MUUNTUU_DEBUG value
  --policy-writer POLICY_WRITER
                        [YAML only] select writer policy from (safe, r[ound-]t[rip], or "empty") (default: safe)
  --general-offset GEN_OFFSET
                        general offset (indent) on output (default: 2) - verify the amount yourself, please
  --mapping-offset MAP_OFFSET
                        [YAML only] mapping offset (indent) on output (default: 2) - verify the amount yourself, please
  --sequence-offset SEQ_OFFSET
                        [YAML only] sequence offset (indent) on output (default: 2) - verify the amount yourself, please
  --width WIDTH         [YAML only] constrain width on output (default: 150) - verify the amount yourself, please
  --default-flow-style  [YAML only] select default flow style on output (default: False)
  --sort-base           [YAML only] sort base mapping type on output (default: False)
  --force, -f           overwrite existing targets (default: False)
  --quiet, -q           work in quiet mode (default: False)
  --version, -V         display version and exit

```

> Note: some combinations of writer policy, offsets, and width may lead to
> invalid YAML as documented in `test/fixtures/offsets-width.yaml` where the
> options `--general-offset 3 --mapping-offset 1 --policy-writer rt --sequence-offset 2 --width 20`
> were used when deriving from `test/fixtures/offsets-width.yaml`:

```yaml
foo:
 bar:
    - baz
    - quux1 asd asd
   asd adssssssss
    - quux2
    - quux3
```

## Version

```erlang
❯ muuntuu --vesion
2025.9.14
```

## Status

Prototype.
bitvectorset 1.0.2
Efficient immutable sets as bit-vectors
Requires Python: >=3

# Bit-vector sets

Efficient implementation of immutable sets using bit-vectors.

It follow the same specification as `set` and `frozenset`.

```
A = BitVectorSet((0,2,4))
# {0, 2, 4}

B = BitVectorSet((0,1,2))
# {0, 1, 2}

print("Intersection:", A & B)
# {0, 2}
```

See [the demo and tests](demo.ipynb) for further informations.
py-kafka-sdk 0.1.1
A simple Python SDK for Apache Kafka
Requires Python: >=3.8

# py-kafka-sdk

A simple Python SDK for Apache Kafka, providing:
- Asynchronous producer abstraction
- Multi-threaded consumer utilities
- Batch and single-message consumption

## Requirements
- Python 3.8+
- [confluent-kafka-python](https://github.com/confluentinc/confluent-kafka-python)
- A running Kafka broker (see Docker Compose example below)

## Installation

Install dependencies:
```sh
pip install -r requirements.txt
```

## Environment Variables

Configure using a `.env` file or environment variables:

```
KAFKA_BROKERS=localhost:9092
KAFKA_TOPICS=test-topic
KAFKA_GROUP_ID=test-group
```

## Running Kafka Locally (Docker Compose)

See the included `docker-compose.yml` file.

Start Kafka:
```sh
docker-compose up -d
```

## Usage

### Producer Example
See `examples/producer_example.py`:
```sh
python examples/producer_example.py
```

### Consumer Example
See `examples/consumer_example.py`:
```sh
python examples/consumer_example.py
```

## Running Tests

To run all tests (Kafka must be running on localhost:9092):
```sh
pytest tests/test_producer.py
pytest tests/test_consumer.py
```
**Note:** Run the consumer test last, as it waits for a message sent by the producer test.

## Notes
- No brokers or topics are hardcoded; provide them via environment variables or parameters.
- See the code for advanced usage (batch consumption, custom configs, etc).