semvec/pypi-packages huggingface dataset:
django-cloudflare-cdn 1.0.0
A Django package for serving static files via S3-compatible CDN (Cloudflare R2).
License: MIT
Keywords: django, cloudflare, cdn, storage, static files, s3, boto3

# DjangoCloudflareCDN

## Overview

DjangoCloudflareCDN is a simple Python package that allows you to easily integrate Cloudflare R2 with Django for serving static and media files. It provides a seamless setup using `django-storages` and `boto3` to configure Django’s storage backends for Cloudflare R2.

## Features

- Integrates Cloudflare R2 as the static and media file storage for Django.
- Supports custom domain setup for Cloudflare R2.
- Automatically configures `django-storages` for S3-compatible storage with Cloudflare R2.
- Provides customizable settings for Cloudflare R2, including access keys and cache control.

## Installation

   ```bash
   pip install django-cloudflare-cdn
   ```

## Usage
1. Add DjangoCloudflareCDN to your INSTALLED_APPS in settings.py:

```python
INSTALLED_APPS = [
    # other apps
    'DjangoCloudflareCDN',
]
```
2. Import the Cloudflare R2 settings in your settings.py

```python
# settings.py

from DjangoCloudflareCDN import cloudflare_r2
```

3. Configure Cloudflare R2 credentials and settings

```python
# settings.py

# Cloudflare R2 Settings
AWS_ACCESS_KEY_ID = '<your-access-key>'
AWS_SECRET_ACCESS_KEY = '<your-secret-key>'
AWS_STORAGE_BUCKET_NAME = '<your-bucket-name>'
AWS_S3_ENDPOINT_URL = 'https://<your-account-id>.r2.cloudflarestorage.com'
AWS_S3_OBJECT_PARAMETERS = {
    'CacheControl': 'max-age=86400'
}

AWS_S3_CUSTOM_DOMAIN = f'{AWS_STORAGE_BUCKET_NAME}.r2.cloudflarestorage.com'

# Static File Settings
STATIC_URL = f'https://{AWS_S3_CUSTOM_DOMAIN}/'

# Use S3Boto3Storage as the default storage backend
DEFAULT_FILE_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'
STATICFILES_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'
```

4. Run the collectstatic command to upload your static files to Cloudflare R2 (Depends on api configuration)

```python
python manage.py collectstatic
```

# Optional Settings

Custom ACL for Files: Uncomment the AWS_DEFAULT_ACL line to make all files publicly readable.

```python
    #settins.py

    AWS_DEFAULT_ACL = 'public-read'
```
Cache Control: Customize the cache control settings for your files.

```python
    AWS_S3_OBJECT_PARAMETERS = {
        'CacheControl': 'max-age=86400'
    }
```

# Troubleshooting

- Ensure that your Cloudflare R2 bucket is properly configured.

- Double-check your Cloudflare R2 credentials (Access Key and Secret Key).

- If files are not showing up, ensure that you have run the collectstatic command.
himosoft-sms-api-client 1.0.0
HIMOSOFT SMS API Client.
License: MIT
Requires Python: >=3.6
Keywords: himosoft sms api client


# Himosoft SMS API Client

The **Himosoft SMS API Client** is a Python client that interacts with the Himosoft SMS API, enabling you to send SMS messages, check the status of sent messages, and retrieve transaction details. This client supports automatic retries in case of transient errors, making it reliable for production environments.

## Installation

```bash
pip install himosoft-sms-api-client

```

# Initialize

```python
from sms_api_client import SMSApiClient

client = SMSApiClient(
    base_url="http://localhost:8000",  # Replace with your API base URL
    sms_api_key="your-api-key",  # Replace with your SMS API key
    transaction_api_key="your-transaction-api-key"  # Replace with your transaction API key (Optional)
)
```
# Send SMS
```python
send_response = client.send_sms("8801xxxxxxx", "Your message")
print(send_response)  # The response from the API will be printed
```

# Example Send SMS response
```json
{
    "status": "success",
    "message_id": "message-id"
}
```

# Check SMS status report
```python
report_response = client.check_sms_report("your-message-id")
print(report_response)  # The delivery report will be printed
```

# BKash Payment Transaction status
```python
status_response = client.bkash_transaction_status("your-transaction-code")
print(status_response)
```
IM-COOL-BOOY-QR 1.2.0
Stylish QR Code generator with logo, colors, and text options
License: MIT
Requires Python: >=3.6
Keywords: QR

![Coolbooy's Logo](https://imgur.com/SBRQ3JH.jpeg)

🔰 SL Android Official ™ 🇱🇰
👨‍💻 Developed by: IM COOL BOOY

IM-COOL-BOOY-QR is a powerful and easy-to-use **Python tool** for generating and decoding QR codes. Whether you’re a developer, tech enthusiast, or just someone needing a QR solution — this tool has got you covered.!


## ✨ Features

✅ **QR Code Generation** – Create QR codes from URLs, text, or other data types.  
✅ **QR Code Decoding** – Decode QR code images and extract the embedded content.  
✅ **Simple CLI** – Use directly from the command line.  
✅ **Python Library Support** – Integrate easily into your own Python projects.  
✅ **Color Customization** – Choose your favorite QR code and background colors.  
✅ **Logo Embedding** – Add a logo to the center of your QR code.  
✅ **Text Under QR** – Add custom text below your QR code.

⚙️ Optional Arguments

⬇️ Installation

• pip install colorama

• pip install qrcode

• pip install argparse

• pip install Pillow

💠 Use pip to install IM-COOL-BOOY-QR:⤵️

• pip install IM-COOL-BOOY-QR

💠 Check usage:⤵️

IM-COOL-BOOY-QR -h


🧪 Example Command

IM-COOL-BOOY-QR --data "https://t.me/SL_Android" --logo "IMG.jpg" --frame_color "#00FFFF" --qr_color "#000000" --bg_color "#FF00FF" --text "SL_Android" --text_color "#301934"


📄 License

• Licensed under the MIT License. See the LICENSE file for details.


💠 Logo Image Location Requirement

To embed a logo in the center of your QR code, place the desired image inside your Termux $HOME directory. The tool will automatically look for a file named logo.png (or any specified filename) in that location when generating the QR code.

💠 Instructions:⤵️

1️⃣ Save your logo image to the $HOME directory in Termux.

💠 Example command:⤵️

• mv your_logo_image.webp $HOME/logo.png

2️⃣ Run the QR tool. If no custom logo path is provided, it will automatically use:

• $HOME/logo.png

3️⃣ You can also manually specify a custom path:

• IM-COOL-BOOY-QR --data "https://t.me/SL_Android" --logo "IMG.jpg" --frame_color "#00FFFF" --qr_color "#000000" --bg_color "#FF00FF" --text "SL_Android" --text_color "#301934"

• By default, if no --logo argument is given, the tool will attempt to use $HOME/logo.png as the embedded logo.

---

💠 Let me know if you want me to add this directly into your Python code or CLI help message too.!

📱 Social Media & Contact: ⤵️

➡️ Telegram Group: https://t.me/SL_Android

➡️ Developer: https://t.me/COOLBOOY550

---

💠 SL Android Official™ 🇱🇰 | Powered by IM COOL BOOY