semvec/pypi-packages huggingface dataset:
haso-payment 0.1.0
A library to provide payment gateway for Haso Payment

# Haso Payment Extension: Data Aggregation Redirect Flow

This app provides order related data to the Haso Payment extension when plugged-in to project zero.

## Installation

Add the package to requirements.txt file and install it via pip:

    pip install haso-payment

## Configuration

### 1. Adding App
Include the following lines in your `omnife_base.settings` file:

```python
INSTALLED_APPS.append('haso_payment')

PZ_SERVICE_CLASS = "omnife.core.service.Service"

HASO_EXTENSION_CONF = {
    "default": { # Payment Option Slug / Use default for one payment option
        "extension_url": "https://your-haso-pe-extension.url",
        "hash_key": "your-haso-pe-extension-hash-key"
    }
}
```

### Explanation of Settings

| Setting Name                                              | Description                                              |
|-----------------------------------------------------------|----------------------------------------------------------|
| `HASO_EXTENSION_CONF[payment_option_slug][extension_url]` | The URL where the Payment extension is hosted. |
| `HASO_EXTENSION_CONF[payment_option_slug][hash_key]`      | A secret key used for security.                          |

### 2. Add URL Pattern
Add url pattern to `omnife_base.urls` like below:
```python
urlpatterns = [
    # ...
    path('payment-gateway/haso/', include('haso_payment.urls')),
]
```

## Running Tests

    python -m unittest discover

## Python Version Compatibility

This package is compatible with the following Python versions:
  - Python 3.9
  - Python 3.13
mytools-simple 1.0.1
A simple collection of useful Python utility functions
Requires Python: >=3.6

# MyTools

A simple collection of useful Python utility functions.

## Installation
```bash
pip install mytools-simple
```

## Usage
```python
from mytools import greet, add, reverse_string, factorial

# Greet someone
print(greet("John"))  # Hello, John!

# Math operations
print(add(5, 3))  # 8
print(multiply(4, 7))  # 28

# String operations
print(reverse_string("Python"))  # nohtyP
print(to_uppercase("hello"))  # HELLO

# Other functions
print(factorial(5))  # 120
print(is_palindrome("racecar"))  # True
print(celsius_to_fahrenheit(100))  # 212.0
```

## Available Functions

### Math Operations
- `add(a, b)` - Add two numbers
- `subtract(a, b)` - Subtract two numbers
- `multiply(a, b)` - Multiply two numbers
- `divide(a, b)` - Divide two numbers
- `factorial(n)` - Calculate factorial

### String Operations
- `greet(name)` - Greet someone
- `reverse_string(text)` - Reverse a string
- `to_uppercase(text)` - Convert to uppercase
- `to_lowercase(text)` - Convert to lowercase
- `count_words(text)` - Count words in string
- `is_palindrome(text)` - Check if palindrome

### Number Operations
- `is_even(number)` - Check if even

### Temperature Conversion
- `celsius_to_fahrenheit(celsius)` - Convert C to F
- `fahrenheit_to_celsius(fahrenheit)` - Convert F to C

## License

MIT