1
1
Installing IDOM
2
2
===============
3
3
4
- The easiest way to ``pip `` install idom is to do so using the ``stable `` option:
4
+ Installing IDOM with ``pip `` will generally require doing so alongside a supported
5
+ server implementation. This can be done by specifying an installation extra using square
6
+ brackets. For example, if we want to run IDOM using `Starlette
7
+ <https://www.starlette.io/> `__ we would run:
5
8
6
9
.. code-block :: bash
7
10
8
- pip install " idom[stable ]"
11
+ pip install " idom[starlette ]"
9
12
10
- This includes a set of default dependencies for one of the builtin web server
11
- implementation. If you want to install IDOM without these dependencies you may simply
12
- ``pip install idom ``.
13
+ If you want to install a "pure" version of IDOM without a server implementation you can
14
+ do so without any installation extras. You might do this if you wanted to user a server
15
+ which is not officially supported or if you wanted to manually pin your dependencies:
16
+
17
+ .. code-block :: bash
18
+
19
+ pip install idom
13
20
14
21
15
- Installing Other Servers
16
- ------------------------
22
+ Officially Supported Servers
23
+ ----------------------------
17
24
18
25
IDOM includes built-in support for a variety web server implementations. To install the
19
- required dependencies for each you should substitute ``stable `` from the ``pip install ``
20
- command above with one of the options below:
26
+ required dependencies for each you should substitute ``starlette `` from the ``pip
27
+ install `` command above with one of the options below:
21
28
22
29
- ``fastapi `` - https://fastapi.tiangolo.com
23
30
- ``flask `` - https://palletsprojects.com/p/flask/
24
31
- ``sanic `` - https://sanicframework.org
32
+ - ``starlette `` - https://www.starlette.io/
25
33
- ``tornado `` - https://www.tornadoweb.org/en/stable/
26
34
27
35
If you need to, you can install more than one option by separating them with commas:
28
36
29
37
.. code-block :: bash
30
38
31
- pip install idom[fastapi,flask,sanic,tornado]
39
+ pip install " idom[fastapi,flask,sanic,starlette, tornado]"
32
40
33
41
Once this is complete you should be able to :ref: `run IDOM <Running IDOM >` with your
34
42
:ref: `chosen server implementation <choosing a server implementation >`.
@@ -40,7 +48,7 @@ Installing In Other Frameworks
40
48
While IDOM can run in a variety of contexts, sometimes web frameworks require extra work
41
49
in order to integrate with them. In these cases, the IDOM team distributes bindings for
42
50
various frameworks as separate Python packages. For documentation on how to install and
43
- run IDOM in the supported frameworks, follow the links below:
51
+ run IDOM in these supported frameworks, follow the links below:
44
52
45
53
.. raw :: html
46
54
0 commit comments