<commit_before>Component Architecture
======================

circuits has a **Component Architecture**.

The design of circuits is such that the circuits framework containing useful
features in application development, networking and web development is all
implemented as simple and complex components. Functionality of an application
or system is created in components and the interaction of those components.

A good example of this is a simple web application displaying the traditional
"Hello World!" greeting:

:download:`web.py <../examples/web.py>`

.. literalinclude:: ../examples/web.py
   :language: python
   :linenos:

This very simple example demonstrates and makes use of the following set of components:
 * Server

  * TCPServer

   * Select
   * HTTP

  * Dispatcher

   * Root

    * Controller

We won't go into the any details about how these components interact with each
other or what their purpose is in such a simple web application, but it should
clearly outline the inherent **Component Architecture** behind circuits.

As a better picture of this, here's a visual graph of this simple example:

.. image:: ../images/web.png

<commit_msg>Docs docs docs<commit_after>Component Architecture
======================

circuits has a **Component Architecture**.

The design of circuits is such that the circuits framework containing useful
features in application development, networking and web development is all
implemented as simple and complex components. Functionality of an application
or system is created in components and the interaction of those components.

A good example of this is a simple web application displaying the traditional
"Hello World!" greeting:

:download:`web.py <../examples/web.py>`

.. literalinclude:: ../examples/web.py
   :language: python
   :linenos:

This very simple example demonstrates and makes use of the following set of components::

 * Server
  * TCPServer
   * Select
   * HTTP
  * Dispatcher
   * Root
    * Controller

We won't go into the any details about how these components interact with each
other or what their purpose is in such a simple web application, but it should
clearly outline the inherent **Component Architecture** behind circuits.

As a better picture of this, here's a visual graph of this simple example:

.. image:: ../images/web.png


{'fraction_non_alphanumeric': 0.07695614789337919, 'fraction_numerical': 0.0, 'mean_word_length': 4.276643990929705, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2881800', 'n_tokens_mistral': 582, 'n_tokens_neox': 528, 'n_words': 298}