semvec/pypi-packages huggingface dataset:
briq 0.1.1.dev1
Python client for the Briq messaging platform API
License: MIT
Requires Python: >=3.7

# Briq Python Client

Official Python client library for the Briq messaging platform API.

## Overview

The Briq Python client provides a simple and intuitive interface to interact with the Briq messaging platform API. It allows you to manage workspaces, campaigns, and send messages programmatically from your Python applications.

## Installation

You can install the Briq client library using pip:

```bash
pip install briq
```

## Requirements

- Python 3.7 or higher
- requests
- python-dotenv

## Authentication

The Briq client requires an API key for authentication. You can provide your API key in several ways:

1. Set it in your environment as `BRIQ_API_KEY`
2. Store it in a `.env` file in your project directory
3. Pass it directly when initializing the client

Example `.env` file:
```
BRIQ_API_KEY=your_api_key_here
```

## Quick Start

```python
import briq

# Initialize the client (will load API key from environment or .env file)
client = briq.Client()

# Or set the API key manually
client.set_api_key("your_api_key_here")

# Create a workspace
workspace = client.workspace.create(
    name="My Workspace",
    description="A workspace for my messaging campaigns"
)

# List all workspaces
workspaces = client.workspace.list()

# Send an instant message
result = client.message.send_instant(
    content="Hello from the Briq Python client!",
    recipients=["255***"],
    sender_id="my-sender-id"
)
```

## Documentation

For detailed documentation and examples, please refer to the [Official Usage Guide](https://briq.tz/documentation/home)

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
reverse-pdb 0.0.1
Remote debugging with pdb using reverse and direct connections
License: MIT
Requires Python: >=3.6

# Reverse remote debugging with pdb

Allows remote debugging with pdb (Python built-in debugger) by reverse
and direct connections to tools like **netcat** and **socat**.

Inspired by: https://pypi.org/project/rpdb/

### Installation
```bash
pip install reverse_pdb
```

## Usage:
### Remote reverse debugging
  1. Given this snippet to be debug with **pdb**

```python
def add_numbers(a, b):
    return a + b
result = add_numbers(3, 5)

breakpoint()

print("The sum is:", result)
```

  2. Add the following changes

```python
from reverse_pdb import remote_pdb_reverse

def add_numbers(a, b):
    return a + b
result = add_numbers(3, 5)

rdb = remote_pdb_reverse("127.0.0.1", 4444)
rdb.set_trace()

print("The sum is:", result)
```

  3. Run a **netcat** listener
```bash
nc -vlp 4444
```

  4. Run your code and interact with **pdb** from the **netcat** session

### Remote "direct" debugging
  1. Add these changes

```python
from reverse_pdb import remote_pdb

def add_numbers(a, b):
    return a + b
result = add_numbers(3, 5)

rdb = remote_pdb("127.0.0.1", 4444)
rdb.set_trace()

print("The sum is:", result)
```

  2. Run a **netcat** client
```bash
nc -v localhost 4444
```

  3. Run your code and interact with **pdb** from the **netcat** session

## Note: 
**In the above examples the loopback (127.0.0.1) is used for simplicity, however, any IP/hostname is also valid.**

## Uses cases
Remote debugging from:

  1. Behind a firewall/NAT
  2. Airflow tasks
  3. Sealed environments like AWS MWAA (AWS managed Airflow)

## Author

Ulises <ulises.odysseus22@gmail.com>