semvec/pypi-packages huggingface dataset:
thaiqr-gaming 0.3.0
Thai QR Payment Generator with Gaming Features and Anti-Fraud Security
License: MIT
Requires Python: >=3.6
Keywords: Thai QR Payment Generator Gaming Anti-Fraud Security Watermark

# thai-qr-payment
Generate QR Code image in the format of `Thai QR Payment`

- [KBANK](https://apiportal.kasikornbank.com/product/public/LandingPage/QR%20Payment/Introduction/3)


## Installation

available on pip https://pypi.org/project/thaiqrpayment/

```bash
pip install thaiqrpayment
```

## Usage

```python
import thaiqrpayment

# Your code from Bank
code = "01" * 100

# Save to image file
thaiqrpayment.save(code, "/tmp/qr.png")

# Save QR with custom text (text overlays ON QR code for security)
thaiqrpayment.save(code, "/tmp/qr_with_text.png", insert_text="Online Gaming Only")

# Save QR specifically for gaming (with "Online Gaming Only" text)
thaiqrpayment.save_gaming_qr(code, "/tmp/gaming_qr.png")

# SECURE ANTI-FRAUD QR CODES (text cannot be easily removed)

# Level 2 Security: Text overlay on QR code area
thaiqrpayment.save_secure_gaming_qr(code, "/tmp/secure_gaming.png")

# Level 3 Security: Text embedded in QR pattern (maximum security)
thaiqrpayment.save_embedded_gaming_qr(code, "/tmp/embedded_gaming.png")

# Custom secure QR with warning text
secure_img = thaiqrpayment.generate_secure_qr(code, "NOT FOR REAL PAYMENT")
secure_img.save("/tmp/warning_qr.png")

# Custom embedded QR (text integrated into QR pattern)
embedded_img = thaiqrpayment.generate_embedded_watermark_qr(code, "DEMO ONLY")
embedded_img.save("/tmp/demo_qr.png")

# base64 format
base64_str = thaiqrpayment.to_base64(code)

# base64 format with security
base64_secure = thaiqrpayment.secure_gaming_qr_to_base64(code)
base64_embedded = thaiqrpayment.embedded_gaming_qr_to_base64(code)

# PIL image
pil_image = thaiqrpayment.generate(code)

# PIL image with custom text overlay
pil_image = thaiqrpayment.generate(code, insert_text="Online Gaming Only")

# PIL image for gaming
pil_image = thaiqrpayment.generate_gaming_qr(code)

```

## Security Features

### Anti-Fraud Protection Levels

1. **Level 1 - Standard Text**: Text appears below QR code (can be cropped)
2. **Level 2 - Secure Overlay**: Text overlays on QR code area (harder to remove)  
3. **Level 3 - Embedded Watermark**: Text integrated into QR pattern (cannot be removed)

### Use Cases

- **Gaming Payments**: Use `save_embedded_gaming_qr()` for maximum security
- **Demo/Test QRs**: Use `generate_secure_qr()` to prevent misuse
- **Invalid QRs**: Use embedded warnings that cannot be removed
- **Custom Warnings**: Add specific text to prevent unauthorized use

## Example Image

![Thai QR Payment example](https://github.com/kittinan/thai-qr-payment/raw/main/assets/example.png?raw=true)
SAPB1SL 2.0.0
Cliente Python para el Service Layer de SAP Business One usando requests.
License: MIT
Requires Python: >=3.7

![SAPB1S](https://github.com/Bryanluispg/SAPB1SL/blob/main/LogoPNG.png?raw=true)

#  SAPB1SL
 
Cliente Python ligero para conectarse al **Service Layer de SAP Business One** utilizando `requests`. Esta librería facilita la autenticación, el manejo de sesiones, la reconexión automática y la ejecución de peticiones HTTP de forma robusta, sencilla y limpia.

##  Características

-  Autenticación al Service Layer de SAP B1
-  Reconexión automática cuando la sesión expira
-  Métodos simplificados: `get()`, `post()`, `patch()`, `delete()`
-  Código limpio y mantenible, ideal para entornos productivos
-  Útil para integraciones backend, automatizaciones o servicios web

##  Instalación

Puedes instalar esta librería directamente desde PyPI (una vez publicada):

```bash
pip install SAPB1SL
```
---
## Ejemplo de uso

```python
from SAPB1SL import SAPB1SL

client = SAPB1SL(
    base_url="https://mi-servidor-sap:50000/b1s/v1",
    company_db="SBODemoCL",
    username="manager",
    password="1234"
)

response = client.get("BusinessPartners?$top=5")

if response.status_code == 200:
    data = response.json()
    print(data)
else:
    print("Error:", response.status_code)
```
---
## Licencia
Este proyecto está licenciado bajo los términos de la licencia MIT. Ver archivo LICENSE para más detalles.

---

## Maintainers
[@Bryanluispg](https://github.com/Bryanluispg) (Bryan L. Pineda G.)

---

## Autor
Bryan Luis Pineda
Linkedin: https://www.linkedin.com/in/blpg/

---

## Contribuciones
Este proyecto es de código abierto, pero cualquier cambio debe ser aprobado previamente por el autor. Si deseas colaborar, abre un issue primero o contáctame directamente por LinkedIn.