## Processor


A data processor for loading, processing, and saving data.


Usage


``` python
Processor(name)
```


## Parameters


`name: str`  
The name of the processor.


## Examples

``` python
>>> p = Processor("csv")
>>> p.report()
{'name': 'csv', 'loaded': False}
```


## Methods

| Name | Description |
|----|----|
| [__init__()](#__init__) | Initialize the processor. |
| [load()](#load) | Load data from a source. |
| [process()](#process) | Process the loaded data. |
| [report()](#report) | Generate a report on the processor state. |
| [save()](#save) | Save processed data to a destination. |
| [validate()](#validate) | Validate the loaded data. |

------------------------------------------------------------------------


#### \_\_init\_\_()


Initialize the processor.


Usage


``` python
__init__(name)
```


##### Parameters


`name: str`  
The name of the processor.


------------------------------------------------------------------------


#### load()


Load data from a source.


Usage


``` python
load(source)
```


##### Parameters


`source: str`  
The path or URI of the data source.


##### Returns


`None`  


##### Examples

``` python
>>> p = Processor("csv")
>>> p.load("data.csv")
```

------------------------------------------------------------------------


#### process()


Process the loaded data.


Usage


``` python
process()
```


##### Returns


`list`  
The processed data as a list.


##### Examples

``` python
>>> p = Processor("csv")
>>> p.load("data.csv")
>>> p.process()
['data.csv']
```

------------------------------------------------------------------------


#### report()


Generate a report on the processor state.


Usage


``` python
report()
```


##### Returns


`dict`  
A dictionary with the processor status.


------------------------------------------------------------------------


#### save()


Save processed data to a destination.


Usage


``` python
save(destination)
```


##### Parameters


`destination: str`  
The path to save data to.


##### Returns


`None`  


------------------------------------------------------------------------


#### validate()


Validate the loaded data.


Usage


``` python
validate()
```


##### Returns


`bool`  
True if data is valid, False otherwise.
