`dev/redirector.py:`**Redirector** - main class with single function - **generate(**_yaml_file, map_file_**)**, that generates _.conf_ and _.map_ files in _MAPS_DIR_ and _CONFIG_DIR_ directories, specified in `dev/const.py`
### Redirector:
`redirector/redirector.py:`**Redirector** - main class with single function - **generate(**_yaml_file, map_file_**)**, that generates _.conf_ and _.map_ files in _MAPS_DIR_ and _CONFIG_DIR_ directories, specified in `redirector/const.py`
`dev/generators.py:`**Generator** - class, that uses **MapGenerator** and **ConfigGenerator** for creating _.map_ and _.conf_ files.
`redirector/generators.py:`**Generator** - class, that uses **MapGenerator** and **ConfigGenerator** for creating _.map_ and _.conf_ files.
File `dev/parser.py` consists of: **MapLineParser** and **ConfigReader**.
File `redirector/parser.py` consists of: **MapLineParser** and **ConfigReader**.
**MapLineParser.parse_line** reads a line from _.yaml_ file and returns a list of arguments with _return_code_ that specifies line type.
**ConfigReader.parse_map** reads _.map_ file and returns list of default redirects and _dict_ with error_code as _key_ and list of redirects with this specific code as _value_.
...
...
@@ -23,6 +25,8 @@ Usage:
**ConfigReader.parse_yaml** reads _.yaml_ file and return list of tuples (<_pathto.map_file_>, <_project_name_>)
#### RedirectorWatch:
### RedirectorWatch:
**RedirectorWatch** - main class with main function **watch(**_yaml_file_**)** that sets ThreadedNotifier for _.yaml_ file that looks for changes, and starts `Redirector.generate()` any time file is changed.
\ No newline at end of file
### RedirectorConvert:
**HtaccessParser** - class for parse and convert .htaccess data. **HtaccessReader** - class for read data from .htaccess and write this to new .map file.