Metadata-Version: 2.1
Name: rest_client_micro
Version: 0.1.0
Summary: A micro rest client
Author: Samuel Shiels
License-File: LICENSE
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.11.5
Description-Content-Type: text/markdown

# RestClientMicro
Run REST calls

# Usage
```python
from rest_client_micro.rest_client import RESTClient as rc
from rest_client_micro.rest_object import RESTObject as ro

rest_object = ro()
rest_object.endpoint = 'https://api.scryfall.com/cards/named'
rest_object.params = {'exact':'Overgrown Tomb'}
rest_client = rc()
result = rest_client.execute(rest_object)
print(result)
```

e.g

runs a Magic the Gathering card search against the exact name 'Overgrown Tomb'.

Returns the content of the response

```json
{"object":"card","id":"eff1f52c-5c43-4260-aaa0-6920846a191c","oracle_id":"975ec9a3-6f20-4177-8211-82526e092538","multiverse_ids":[453003],"mtgo_id":69919,"arena_id":68734,"tcgplayer_id":175196,"cardmarket_id":363554,"name":"Overgrown Tomb",.....ll"}}
```
Or an object describing an error
```json
{"error":True,"description":"Resource not found"}
# or
{"error":True,"description":"Unterminated string starting at: line 1 column 14 (char 13)"}
```

# Build

```bash
python -m build
python -m twine upload dist/*
```