semvec/pypi-packages huggingface dataset:
sgpaynow-project 0.1.0
Add your description here
Requires Python: >=3.6

# SG Paynow QR Code Generator

A simple Python library to generate static and dynamic Paynow QR Codes


## Installation:

To install this package, run:

```bash
pip install sgpaynow
```

### Static QR Code:
This is for **personal use**, where you want the sender to enter the amount themselves.

```python
from sgpaynow import static_generator

# Intialise the Generator
gen = static_generator()

# Get the QR String
qr_string = gen.generate_qr_string(
    mobile_number = "8XXXXXXXX"
    merchant_name = "Your Name"
)
print(f"Generated QR String: {qr_string}")
```

### Dynamic QR Code
Use the dynamic generator when you want to pre-fill and leave some reference number.

You can control whether the amount is **locked** or just **suggested**

```python
from sgpaynow import dynamic_generator

# Intialise Generator
gen = dynamic_generator()

# This shows a QR Code which payment value is locked
gen.show_qr(
    mobile_number = "8XXXXXXXX",
    amount = "88.88",
    ref_number = "N/A",
    merchant_name = "N/A",
    editable = False
)
```

```python
from sgpaynow import dynamic_generator

# Intialise Generator
gen = dynamic_generator()

# This shows a QR Code which payment value is not locked
gen.show_qr(
    mobile_number = "8XXXXXXXX",
    amount = "88.88",
    ref_number = "N/A",
    merchant_name = "N/A",
    editable = True
)
```
daybetter-services-python 1.0.7
Python client for DayBetter devices and services
Requires Python: >=3.8
Keywords: daybetter, iot, home automation, mqtt

# DayBetter Python Client

A Python client library for interacting with DayBetter devices and services.

## Features

- Device management and control
- MQTT configuration retrieval
- Authentication handling
- Async/await support

## Installation

```bash
pip install daybetter-services-python
```

## Usage

```python
import asyncio
from daybetter_python import DayBetterClient

async def main():
    async with DayBetterClient(token="your_token") as client:
        # Fetch devices
        devices = await client.fetch_devices()
        print(f"Found {len(devices)} devices")
        
        # Control a device
        result = await client.control_device(
            device_name="device_001",
            action=True,
            brightness=80
        )
        print(f"Control result: {result}")

if __name__ == "__main__":
    asyncio.run(main())
```

## API Reference

### DayBetterClient

#### Methods

- `fetch_devices()`: Get list of devices
- `fetch_pids()`: Get device type PIDs
- `control_device(device_name, action, brightness, hs_color, color_temp)`: Control a device
- `fetch_mqtt_config()`: Get MQTT configuration

## License

MIT License

## Contributing

Contributions are welcome! Please feel free to submit a Pull Request.