My python data analysis container

Architectural configuration

I made a simple DI container with python. Below is a block diagram of the architecture.

fx analyze layer.png

About each layer

Application layer

The role of the Application layer is as follows.

Container layer

The role of the Container layer is as follows.

Logic layer

Logic execution example)

application.py


logic_dict: LogicDict = LogicDict(
    [
        {
            LogicDict.LOGIC_EXEC_KEY: 'Sample1Logic',
            LogicDict.LOGIC_EXEC_INPUT_KEY: '',
            LogicDict.LOGIC_EXEC_OUTPUT_KEY: 'ISample1Output',
        },
        {
            LogicDict.LOGIC_EXEC_KEY: 'Sample2Logic',
            LogicDict.LOGIC_EXEC_INPUT_KEY: 'ISample1Output',
            LogicDict.LOGIC_EXEC_OUTPUT_KEY: 'ISample2Output',
        }
    ]
)

application.py


container = SimulatorContainer(logic_dict)
container.execute()

Usage example

Below is an example of how kaggle can be used for Titanic. https://github.com/chikugoy/kaggle_titanic

Source

The source is published on the following github. https://github.com/chikugoy/analysis_container

Recommended Posts

My python data analysis container
Data analysis python
Data analysis with python 2
Data analysis using Python 0
Data analysis overview python
Python data analysis template
Data analysis with Python
Python for Data Analysis Chapter 4
[Python] Notes on data analysis
My python data analytics environment
Python data analysis learning notes
Python for Data Analysis Chapter 2
Data analysis using python pandas
Python for Data Analysis Chapter 3
Python: Time Series Analysis: Preprocessing Time Series Data
Preprocessing template for data analysis (Python)
Data analysis starting with python (data visualization 1)
Data analysis starting with python (data visualization 2)
My Numpy (Python)
My sys (python)
My pyproj (python)
My pandas (python)
My str (python)
Python visualization tool for data analysis work
Data analysis Titanic 2
My pyautogui (python)
Data analysis Titanic 1
[Python] First data analysis / machine learning (Kaggle)
My PySide (Python)
My shutil (python)
My matplotlib (python)
My urllib (python)
My pyperclip (python)
Data analysis starting with python (data preprocessing-machine learning)
My sklearn (python)
Data analysis Titanic 3
[My memo] python
I did Python data analysis training remotely
My ConfigParser (Python)
My Webdriver (Python)
My arcpy (python)
Python 3 Engineer Certified Data Analysis Exam Preparation
My win32gui (Python)
[python] Read data
My os (python)
[Examination Report] Python 3 Engineer Certified Data Analysis Exam
[CovsirPhy] COVID-19 Python Package for Data Analysis: Data loading
Python3 Engineer Certification Data Analysis Exam Self-made Questions
Python 3 Engineer Certification Data Analysis Exam Pre-Exam Learning
[Python] Data analysis, machine learning practice (Kaggle) -Data preprocessing-
Data analysis in Python: A note about line_profiler
[Python] Flow from web scraping to data analysis
A well-prepared record of data analysis in Python
Python: Time Series Analysis
Data analysis using xarray
My python environment memo
Data analysis parts collection
Python Data Visualization Libraries
My Beautiful Soup (Python)
Voice analysis with python
Data cleaning using Python