semvec/pypi-packages huggingface dataset:
kaflow 0.2.2
Python Stream processing backed by Apache Kafka.
Requires Python: >=3.8
Keywords: data,flow,kafka,pipeline,processing,stream

<div align="center">
  <h1>kaflow</h1>
  <p>
    <em>Kafka streams topic processing in Python.</em>
  </p>
  <p>
    <a href="https://github.com/gabrielmbmb/kaflow/actions?query=workflow%3ATest+event%3Apush+branch%3Amain" target="_blank">
      <img src="https://github.com/gabrielmbmb/kaflow/workflows/Test/badge.svg?event=push&branch=main" alt="Test">
    </a>
    <a href="https://pypi.org/project/kaflow">
      <img src="https://img.shields.io/pypi/v/kaflow?color=#2cbe4e">
    </a>
    <a href="https://pypi.org/project/kaflow">
      <img src="https://img.shields.io/pypi/pyversions/kaflow?color=#2cbe4e">
    </a>
  </p>
</div>

---

`kaflow` is a simple framework that allows you to build Kafka streams processing aplications in Python with ease.

Some of the features offered by `kaflow`:

- Dependency Injection system inspired by [FastAPI](https://github.com/tiangolo/fastapi) and [xpresso](https://github.com/adriangb/xpresso), and backed by [di](https://github.com/adriangb/di).
- Automatic deserialization of incoming messages and serialization of outgoing messages. Supports popular formats like `JSON`, `Avro` or `Protobuf`.
- Message validation thanks to [pydantic](https://github.com/pydantic/pydantic).

## Requirements

Python 3.8+

## Installation

```shell
pip install kaflow
```

## Example

```python
from kaflow import (
    FromHeader,
    FromKey,
    FromValue,
    Json,
    Kaflow,
    Message,
    MessageOffset,
    MessagePartition,
    MessageTimestamp,
    String,
)
from pydantic import BaseModel


class UserClick(BaseModel):
    user_id: int
    url: str
    timestamp: int


class Key(BaseModel):
    environment: str


app = Kaflow(name="AwesomeKakfaApp", brokers="localhost:9092")


@app.consume(topic="user_clicks", sink_topics=["user_clicks_json"])
async def consume_user_clicks(
    message: FromValue[Json[UserClick]],
    key: FromKey[Json[Key]],
    x_correlation_id: FromHeader[String[str]],
    x_request_id: FromHeader[String[str]],
    partition: MessagePartition,
    offset: MessageOffset,
    timestamp: MessageTimestamp,
) -> Message:
    # Do something with the message
    ...

    # Publish to another topic
    return Message(value=b'{"user_clicked": "true"}')


app.run()

```
makey-cli 1.3.1
A simple and lightweight tool for making secure passkeys in your terminal.
Requires Python: >=3.8

# makey-cli

[![build status](https://img.shields.io/github/actions/workflow/status/boldandbrad/makey-cli/python-test.yml?branch=main&logo=github)](https://github.com/boldandbrad/makey-cli/actions/workflows/python-test.yml?query=branch%3Amain)
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)
[![codecov](https://codecov.io/gh/boldandbrad/makey-cli/branch/main/graph/badge.svg)](https://codecov.io/gh/boldandbrad/makey-cli)
[![docs](https://img.shields.io/website?down_message=down&label=docs&up_message=online&url=https%3A%2F%2Fboldandbrad.github.io%2Fmakey-cli%2F)](https://boldandbrad.github.io/makey-cli/)
[![pypi](https://img.shields.io/pypi/v/makey-cli)](https://pypi.org/project/makey-cli/)
[![downloads](https://img.shields.io/pypi/dm/makey-cli)](https://pypistats.org/packages/makey-cli)

> CLI passkey maker.

A simple and lightweight tool for making secure passkeys in your terminal.

**makey-cli** does not store information, produce logs, or make network
connections. It even avoids printing passkeys in plain-text on screen by
default, instead copying them directly to your clipboard for use.

## Install

```zsh
brew tap boldandbrad/homebrew-tap
brew install makey-cli
```

or

```zsh
pipx install makey-cli
```

or

```zsh
pip install makey-cli
```

> For more details, read the **makey-cli** [install guide](https://boldandbrad.github.io/makey-cli/#/install).

## Usage

```zsh
makey
```

New passkey copied to your clipboard!

> For more usage details, read the **makey-cli** [usage guide](https://boldandbrad.github.io/makey-cli/#/usage).

## License

Copyright (c) 2021 Bradley Wojcik. Released under the MIT License. See
[LICENSE](LICENSE) for details.
leaguedaily 1.0.1
League of Legends Esports results from your terminal!
Requires Python: >=3.10,<4.0

# LeagueDaily

Leauge of Legends Esports update straight from the terminal!

Now you can stay up-to-date with your favorite LoL teams/leagues despite your busy schedule.
# Install

requirement: `python3 >= 3.10`


`pip install leaguedaily`

# Usage

By default, `leaguedaily` without any arguments will show League of Legends Esports result from the previous day.

![Screenshot from 2023-04-20 07-43-17](https://user-images.githubusercontent.com/60205090/233401825-ff74f03d-7e29-4fc0-ad0c-9f1fb5639e72.png)

You can also specify dates in the format of `YYYY-MM-DD` as an argument to the program.

![Screenshot from 2023-04-20 07-41-48](https://user-images.githubusercontent.com/60205090/233401471-2f539f98-7a97-4dcc-a5a1-5a292ff9d77d.png)


`--team` flag can be used to specify one or more teams in addition to the given date argument.

![Screenshot from 2023-04-20 07-45-08](https://user-images.githubusercontent.com/60205090/233402355-e9d1c5ce-2a57-47a3-bfcd-23bf0bb4cf02.png)


`--league` flag can be used to limit the results to only the given leagues.

![Screenshot from 2023-04-20 07-46-33](https://user-images.githubusercontent.com/60205090/233402764-f5ec7044-8899-4bc1-a7c6-2b442acddb5d.png)

# Known problems

1. Data is pulled from leaguepedia, so there is a limit as to how much data a normal user can pull. As a result, given a too-far-away-from-present date, program's result could be truncated or incorrect.
2. A BO3 series could be in the same day in local time, but in UTC (default time when pulled from API), 2 matches are on the same day and 1 match is on the next day (past midnight UTC time, but still the same day local time). 

Given the goal of this project (daily update for some busy fans), I decide not to address these problems. The program works consistently enough for what it is created for.

Cheers! 🎆