semvec/pypi-packages huggingface dataset:
request-hmac 0.1.0
Secure HMAC-based authentication layer for Python requests
License: MIT
Requires Python: >=3.10

# Request HMAC
Una libreria per inviare richieste HTTP POST con autenticazione HMAC.

## Installation

```bash
pip install request-hmac
```

## Usage


### Client-Side

**GET**
```python
from request_hmac import get

response = get("https://www.example.com")

```

**POST**
```python
from request_hmac import post

json_dict = { "test" : 1 }

response = post("https://www.example.com", json=json_dict)

```

**PUT**
```python
from request_hmac import put

json_dict = { "test" : 1 }

response = put("https://www.example.com", json=json_dict)

```

**DELETE**
```python
from request_hmac import delete

response = delete("https://www.example.com")

```

<br/>

### Server-Side

**VERIFY SIGNATURE**
```python
from request_hmac import verify_hmac_signature

# GET Request
is_valid = verify_hmac_signature(method=method, url=base_url, headers=headers, params=params)

# POST Request
is_valid = verify_hmac_signature(method=method, url=base_url, headers=headers, json=json)

```