semvec/pypi-packages huggingface dataset:
liblivemedia 1.0.5
A python module based on live555, version 2024.06.26
Requires Python: >=3.10

For detailed documentation about this software,
see <http://www.live555.com/liveMedia/>

This repository creates an RTSP Proxy Server python module for use in [Onvif-GUI](https://github.com/sr99622/libonvif) 

### License: LGPLv3

    Copyright (c) 2024 Stephen Rhodes 

    This library is free software; you can redistribute it and/or modify it under
    the terms of the GNU Lesser General Public License as published by the
    Free Software Foundation; either version 3 of the License, or (at your
    option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.)

    This library is distributed in the hope that it will be useful, but WITHOUT
    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
    FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for
    more details.

    You should have received a copy of the GNU Lesser General Public License
    along with this library; if not, write to the Free Software Foundation, Inc.,
    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA

This software is based upon previous works in live555

### License: LGPLv3

    Copyright (c) 1996-2024 Live Networks, Inc.  All rights reserved.

    This library is free software; you can redistribute it and/or modify it under
    the terms of the GNU Lesser General Public License as published by the
    Free Software Foundation; either version 3 of the License, or (at your
    option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.)

    This library is distributed in the hope that it will be useful, but WITHOUT
    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
    FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for
    more details.

    You should have received a copy of the GNU Lesser General Public License
    along with this library; if not, write to the Free Software Foundation, Inc.,
    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
loamy 0.0.10
This project allows you to execute a list of http operations asynchronously from within a synchronous context.
Requires Python: >=3.10

![CI Workflow](https://github.com/fullerzz/zConcurrent/actions/workflows/ci.yml/badge.svg)
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
[![PyPI version](https://badge.fury.io/py/loamy.svg)](https://badge.fury.io/py/loamy)
[![MIT License](https://img.shields.io/badge/license-MIT-blue)](https://img.shields.io/badge/license-MIT-blue)
[![uv](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json)](https://github.com/astral-sh/uv)

# Overview

This project allows you to execute a list of http operations asynchronously from within a synchronous context.

It does not care whether you should do this. It simply allows you to do so if you desire.

## Installing

The package is available via pip.

```bash
pip install loamy
```

If you're not on Windows, install the uvloop extra to increase performance.

```bash
pip install "loamy[uvloop]"
```

## Usage

The package can be imported as shown:

```python
from loamy.session import Clump, RequestMap, RequestResponse
```

| Class | Description|
| ----- | -----------|
| `Clump` | Container object that stores collection of requests (type RequestMap) to send |
| `RequestMap` | Container object that stores all info about an individual request to send |
| `RequestResponse` | Container object that stores the request response and any exception raised for each individual request |


### Example

```python
# Create RequestMap objects
req1 = RequestMap(
    url="https://baconipsum.com/api",
    http_op="GET",
    query_params={"type": "meat-and-filler", "format": "json"},
)
req2 = RequestMap(
    url="https://baconipsum.com/api",
    http_op="GET",
    query_params={"type": "all-meat", "format": "json"},
)
req3 = RequestMap(
    url="https://baconipsum.com/api",
    http_op="GET",
    query_params={"type": "meat-and-filler", "format": "json"},
)

# Create Clump and call send_requests()
session = Clump(requests=[req1, req2, req3])
responses: list[RequestResponse] = session.send_requests(return_exceptions=True)


# Handle responses for individual requests
for resp in responses:
    http_verb = resp.request_map.http_op
    print(f"Evaluating response for {http_verb} request to {resp.request_map.url}")
    if resp.error is not None:
        print("Exception raised for request")
    else:
        print(f"Status Code: {resp.status_code}")
        if resp.body is not None:
            print(resp.body)
```

#### RequestMap Class

```python
class RequestMap(BaseModel):
    url: str
    http_op: Literal["GET", "POST", "PUT", "PATCH", "OPTIONS", "DELETE"]
    body: dict | None = None
    query_params: dict[str, str] | None = None
    headers: dict[str, str] | None = None
```


#### RequestResponse Class

```python
class RequestResponse(BaseModel):
    request_map: RequestMap
    status_code: int
    body: dict | None = None
    error: BaseException | None = None
```
restack_toolhouse 0.0.13
Toolhouse for Restack AI
Requires Python: <4.0,>=3.9

### Toolhouse Restack AI integration

This integration can be used in your project to interact with Toolhouse AI.
Currently it exposes two functions that can be used in any workflow.
One function to send emails, using the send email tool from the toolhouse store. So make sure this tool is installed in your account.
The second function demostrates how you can fetch content from any url and have chat gpt give you a summary, this is using the get page contents.

### Tools

The following tools need to be installed on your toolhouse account.

[Get page contents](https://app.toolhouse.ai/store/scraper)
[Send Email with Sengrid](https://app.toolhouse.ai/store/send_email)
restack_composio 0.0.15
Composio integration for Restack AI
Requires Python: <4.0,>=3.9

### Composio Restack AI integration

This integration can be used in your project to interact with Composio.
Currently you get 4 functions exposed for your usage.

1. create_calendar_event. This function can be used as an example on how to interact with toolhouse. It will create an event on the google calendar of the connected account in the entity provided.
2. get_entity. This function will return the entity based on the entity_id provided
3. get_expected_params_for_user. This function returns the parameters needed for a user to initiate a connection. This is helpful in cases like shopify connection where user needs to provide tokens. Use this function to get list of fields and then you can decide how you want to fetch this from the end user.
4. initiate_connection. This function will initiate a connection to the provided app. In case a connection is on initiated state the connection object will be returned in which it contains the redirect url the user needs to visit in order to complete auth flow. For example for google calendar user needs to linked their google account in order for the composio tool to be able to create an event on the calendar.
5. is_entity_connected. Will help you determine if the entity is already connected to an application.

### Notes

Make sure to create an account in composio and on your project set the COMPOSIO_API_KEY as an environment variable.