Metadata-Version: 2.4
Name: canigeta
Version: 0.0.1
Summary: Helpful decorators for the requests library. Allows you to return typed REST responses.
Author-email: Samuel Coles <me@smurf.codes>
License-Expression: MIT
Project-URL: Homepage, https://github.com/smurf/canigeta
Project-URL: Issues, https://github.com/smurf/canigeta/issues
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests
Requires-Dist: urllib3
Dynamic: license-file

# Can I Get A (canigeta)

`canigeta` makes getting typed REST responses via the requests library easy.

## Example

```
# Simple example of a typed return from a REST endpoint 
# This endpoint returns {'message': 'Hello, World!'} JSON.
from dataclasses import dataclass
import requests
from canigeta import response

@dataclass
class HelloData:
    message: str

@response.as_type(HelloData)
def get_hello() :
    return requests.get(url = "http://127.0.0.1:5000")

# HelloData(message='Hello, World!')
```
