/python-factory-pattern

The main idea of this project is to show approach to develop a Factory-class, based on auto-generated dictionary from module files.

Primary LanguagePython

python Code style: black Checked with mypy Ruff

This project created for my article at Habr.

Python Factory pattern example

based on auto-generated module files

The main idea of this project is to show approach to develop a Factory-class, based on auto-generated dictionary from module files.

All necessary files located at src\parsers directory.

Setup

If you have not poetry, I left requirements.txt file.

Install required libraries

poetry install --with dev

Activate shell

poetry shell

Usage

python -m src