|
1 | 1 | Extra |
2 | 2 | ===== |
3 | 3 |
|
4 | | -The ioc package include some integration with python lib, just edit the ``config.yml`` file and add the different following ``yaml`` sections. |
| 4 | +The ioc package include some integration with some python libs, just edit the ``config.yml`` file and add the different following ``yaml`` sections. |
5 | 5 |
|
6 | | -Flask |
7 | | ------ |
| 6 | +.. toctree:: |
| 7 | + :glob: |
8 | 8 |
|
9 | | -Flask_ is a web micro framework |
| 9 | + extra/* |
10 | 10 |
|
11 | | -.. code-block:: yaml |
12 | | -
|
13 | | - ioc.extra.flask: |
14 | | - app: |
15 | | - port: 8080 |
16 | | - name: '' |
17 | | - static_path: '' |
18 | | - static_url_path: '' |
19 | | - static_folder: 'static' |
20 | | - template_folder: 'templates' |
21 | | - instance_path: '' |
22 | | - instance_relative_config: false |
23 | | -
|
24 | | - config: # use to populate the instance_relative_config kwargs |
25 | | - DEBUG: False |
26 | | - TESTING: False |
27 | | - PROPAGATE_EXCEPTIONS: |
28 | | - PRESERVE_CONTEXT_ON_EXCEPTION: |
29 | | - SECRET_KEY: |
30 | | - USE_X_SENDFILE: False |
31 | | - LOGGER_NAME: |
32 | | - SERVER_NAME: |
33 | | - APPLICATION_ROOT: |
34 | | - SESSION_COOKIE_NAME: 'session' |
35 | | - SESSION_COOKIE_DOMAIN: |
36 | | - SESSION_COOKIE_PATH: |
37 | | - SESSION_COOKIE_HTTPONLY: True |
38 | | - SESSION_COOKIE_SECURE: False |
39 | | - MAX_CONTENT_LENGTH: |
40 | | - SEND_FILE_MAX_AGE_DEFAULT: 43200 |
41 | | - TRAP_BAD_REQUEST_ERRORS: False |
42 | | - TRAP_HTTP_EXCEPTIONS: False |
43 | | - PREFERRED_URL_SCHEME: 'http' |
44 | | - JSON_AS_ASCII: True |
45 | | -
|
46 | | - blueprints: |
47 | | - - element.flask.blueprint |
48 | | - |
49 | | -
|
50 | | -Services available: |
51 | | - |
52 | | -- ioc.extra.flask.app : the Flask app |
53 | | - |
54 | | - |
55 | | -Redis-Py |
56 | | --------- |
57 | | - |
58 | | -Redis-Py_ is an interface to the Redis_ key-value store. |
59 | | - |
60 | | -.. code-block:: yaml |
61 | | -
|
62 | | - ioc.extra.redis: |
63 | | - clients: |
64 | | - default: |
65 | | - connection: default |
66 | | -
|
67 | | - connections: |
68 | | - default: |
69 | | - host: 'localhost' |
70 | | - port: 6379 |
71 | | - db: 0 |
72 | | - password: |
73 | | - socket_timeout: |
74 | | - encoding: 'utf-8' |
75 | | - encoding_errors: 'strict' |
76 | | - decode_responses: false |
77 | | -
|
78 | | -Services available: |
79 | | - |
80 | | -- ioc.extra.redis.manager: the Redis manager to retrieve client and connection |
81 | | -- ioc.extra.redis.connection.default: the ``default`` connection |
82 | | -- ioc.extra.redis.client.default: the ``default`` client |
83 | | - |
84 | | - |
85 | | -redis_wrap |
86 | | ----------- |
87 | | - |
88 | | -redis-wrap_ implements a wrapper for Redis datatypes so they mimic the datatypes found in Python |
89 | | - |
90 | | -.. code-block:: yaml |
91 | | -
|
92 | | - ioc.extra.redis_wrap: |
93 | | - clients: |
94 | | - default: ioc.extra.redis.client.default |
95 | | -
|
96 | | -Twisted |
97 | | -------- |
98 | | - |
99 | | -Twisted_ is an event-driven networking engine written. |
100 | | - |
101 | | -.. code-block:: yaml |
102 | | -
|
103 | | - ioc.extra.twisted: |
104 | | -
|
105 | | -Services available: |
106 | | - |
107 | | -- ioc.extra.twisted.reactor: the reactor instance |
108 | | -- ioc.extra.twisted.reactor.thread_pool: the reactor thread pool |
109 | | - |
110 | | - |
111 | | -Event Dispatcher |
112 | | ----------------- |
113 | | - |
114 | | -The IoC package includes a small event dispatcher, you can include it by adding this yaml. |
115 | | - |
116 | | -.. code-block:: yaml |
117 | | -
|
118 | | - ioc.extra.event: |
119 | | -
|
120 | | -Mailer |
121 | | ------- |
122 | | - |
123 | | -.. code-block:: yaml |
124 | | -
|
125 | | - ioc.extra.mailer: |
126 | | - host: localhost |
127 | | - port: |
128 | | - use_tls: false |
129 | | - user: |
130 | | - password: |
131 | | - use_ssl: false |
132 | | -
|
133 | | -
|
134 | | -.. _redis-wrap: https://github.com/Doist/redis_wrap |
135 | | -.. _Flask: http://flask.pocoo.org/ |
136 | | -.. _Redis-Py: https://github.com/andymccurdy/redis-py |
137 | | -.. _Redis: http://redis.io/ |
138 | | -.. _Twisted: http://twistedmatrix.com/ |
139 | | -.. _Mailer: https://pypi.python.org/pypi/mailer |
0 commit comments