semvec/pypi-packages huggingface dataset:
livesync-io 0.3.16
The graph-based video processing framework
License: MIT
Requires Python: >=3.10

# LiveSync

![Logo](logo.png)

A Keras-inspired asynchronous stream processing framework for building real-time media applications. LiveSync provides a flexible layer system for creating both synchronous and asynchronous media processing pipelines.

## Installation

We recommend using `rye` for installation:

```bash
rye add livesync-io
```

Alternatively, you can use pip:

```bash
pip install livesync-io
```

## Quick Start

Here's a simple example of a webcam recording pipeline:

```python
import livesync as ls
from livesync import layers

x = ls.WebcamInput(device_id=0, fps=30)

f1 = layers.FpsControlLayer(fps=10)
f2 = layers.VideoRecorderLayer(filename="./examples/output.mp4")

h = f1(x)
y = f2(h)

sync = ls.Sync(inputs=[x], outputs=[y])
with sync.compile() as runner:
    runner.run(callback=ls.LoggingCallback())
```

You can visualize the pipeline by printing y.graph:

```
>>> print(y.graph)

● (f2): Records processed frames to MP4 file
│
● (f1): Controls frame rate of the stream
│
◇ (x): Captures frames from webcam (device 0)
```

## Features

- **Layer-Based Architecture**: Build complex processing pipelines using a Keras-inspired layer system
- **Async-First Design**: Built from the ground up for asynchronous stream processing
- **Media Processing**: Optimized for real-time audio and video processing
- **Flexible Stream System**: Support for both synchronous and asynchronous data flows
- **Remote Processing**: Built-in gRPC support for distributed processing

## Requirements

- Python 3.10 or higher
- OpenCV Python
- FFmpeg
- gRPC tools (for remote processing)

## Documentation

For detailed documentation and examples, visit our [documentation site](https://os-designers.github.io/livesync/).

## License

This project is licensed under the MIT License - see the LICENSE file for details.

## Support

LiveSync is developed and maintained by OS Designers, Inc. For support, feature requests, or bug reports, please open an issue on our [GitHub repository](https://github.com/OS-Designers/livesync).
pyemaillib 0.1.2
A simple email sending library with Jinja2 templates
License: MIT

# Email Lib

## Overview
Email Lib is a simple Python library for sending emails using SMTP and rendering email templates with Jinja2. It provides a clean and modular way to handle email functionality in your projects.

## Features
- Dynamic email rendering using Jinja2 templates.
- Easy SMTP configuration for sending emails.
- Support for sending emails in plain text or HTML format.
- Optional file attachments.
- Lightweight and reusable library.

## Installation

Install the package using pip:

```sh
pip install pyemaillib
```

Or install dependencies manually for local development:

```sh
pip install jinja2
```

## Usage

### Rendering an Email Template

```python
from pyemaillib import render_template
from jinja2 import Environment, FileSystemLoader

env = Environment(loader=FileSystemLoader("templates"))
text = render_template(env, "otp_email.txt", otp="123456", expiry=10)
print(text)
```

### Sending an Email

```python
from pyemaillib import EmailSender
import asyncio

async def main():
    email_sender = EmailSender(
        smtp_host="smtp.example.com",
        smtp_user="your_email@example.com",
        smtp_pass="your_password",
        from_email="your_email@example.com"
    )
    
    success = await email_sender.send_email(
        text="Your OTP code is 123456.",
        to_email="recipient@example.com",
        subject="🔐 Your OTP Code",
        text_type="plain",
        attachments=[("filename.txt", "Sample content")]  # Optional attachment
    )
    print("Email sent successfully!" if success else "Failed to send email.")

asyncio.run(main())
```

## Configuration
Ensure you configure SMTP settings correctly before sending emails:
- **smtp_host**: Your SMTP server (e.g., `smtp.gmail.com` for Gmail).
- **smtp_user**: Your email address used for authentication.
- **smtp_pass**: Your email account password or app-specific password.

## PyPI Link
https://pypi.org/project/pyemaillib/

## Contributing
Feel free to submit pull requests or open issues for improvements.

## License
MIT License