Debian Codegraph @

doc/old/index_old.rst

raw
1 :orphan:
2
3 .. rubric::
4 `doit` is a task management & automation tool
5
6 .. rubric::
7 `doit` comes from the idea of bringing the power of build-tools
8 to execute any kind of **task**
9
10 `doit` is a modern open-source build-tool written in python
11 designed to be simple to use and flexible to deal with complex work-flows.
12 It is specially suitable for building and managing custom work-flows where
13 there is no out-of-the-box solution available.
14
15 `doit` has been successfully used on: systems test/integration automation,
16 scientific computational pipelines, content generation,
17 configuration management, etc.
18 Check some `success stories <stories.html>`_ ...
19
20
21
22 introduction
23 ============
24
25 A **task** describes some computation to be done (*actions*),
26 and contains some extra meta-data.
27
28 .. code-block:: python
29
30 def task_example():
31 return {
32 'actions': ['myscript'],
33 'file_dep': ['my_input_file'],
34 'targets': ['result_file'],
35 }
36
37
38 **actions**:
39
40 - can be external programs (executed as shell commands) or
41 python functions.
42 - a single task may define more than one action.
43
44
45 **task meta-data**:
46
47 - task meta-data includes a description of input file (**dependencies**)
48 for the *actions* and result files (**targets**)
49 - there are many other meta-data fields to control how and when a task is
50 executed...
51
52 *doit* uses the task's meta-data to:
53
54 .. topic:: cache task results (aka *incremental-builds*)
55
56 `doit` checks if the task is **up-to-date** and skips its execution if the
57 task would produce the same result of a previous execution.
58
59 .. topic:: correct execution order
60
61 By checking the inter-dependency between tasks `doit` ensures that tasks
62 will be execute in the correct order.
63
64 .. topic:: parallel execution
65
66 built-in support for parallel (threaded or multi-process) task execution
67 (:ref:`more <parallel-execution>`)
68
69
70 Traditional build-tools were created mainly to deal with compile/link
71 process of source code. `doit` was designed to solve a broader range of tasks.
72
73 .. topic:: powerful dependency system
74
75 - the *up-to-date* check is not restricted to looking for
76 file modification on dependencies,
77 it can be customized for each task (:ref:`more <attr-uptodate>`)
78 - *target* files are not required in order to check if a task is up-to-date
79 (:ref:`more <up-to-date-def>`)
80 - *dependencies* can be dynamically calculated by other tasks
81 (:ref:`more <attr-calc_dep>`)
82
83
84 Task's metadata (actions, dependencies, targets...) are better described
85 in a declarative way,
86 but often you want to create this metadata programmatically.
87
88 .. topic:: flexible task definition
89
90 `doit` uses plain python modules to create tasks (and its meta-data)
91
92
93 .. topic:: customizable task definition
94
95 By default tasks are described by a python `dict`.
96 But it can be easily customized. (:ref:`more <create-doit-tasks>`)
97
98
99 .. topic:: debugger
100
101 Since plain python is used to define your tasks the python debugger (`pdb`)
102 is available as in any other python application
103
104
105 Other features...
106
107 .. topic:: self documented
108
109 `doit` command allows you to list and obtain help/documentation for tasks
110 (:ref:`more <cmd-list>`)
111
112 .. topic:: inotify integration
113
114 built-in support for a long-running process that automatically re-execute tasks
115 based on file changes by external process (linux/mac only)
116 (:ref:`more <cmd-auto>`)
117
118 .. topic:: custom output
119
120 process output can be completely customized through *reporters*
121 (:ref:`more <reporter>`)
122
123 .. topic:: tab-completion
124
125 built-in support tab-completion for commands/task (supports bash and zsh)
126 (:ref:`more <tabcompletion>`)
127
128 .. topic:: IPython integration
129
130 provide `%doit` magic function that loads tasks defined directly in IPython's
131 global namespace
132 (:ref:`more <tools.IPython>`)
133
134 .. topic:: extensible
135
136 Apart from using `doit` to automate your project it also expose its API
137 so you can create new applications/tools using `doit` functionality
138 (:ref:`more <extending>`)
139
140 Check the `documentation <contents.html>`_ for more features...
141
142
143 What people are saying about `doit`
144 =====================================
145
146 Congratulations! **Your tool follows the KISS principle very closely**. I always wondered why build tools had to be that complicated. - `Elena <http://schettino72.wordpress.com/2008/04/14/doit-a-build-tool-tale/#comment-514>`_
147
148 Let me start by saying I'm really lovin doit, at first the interface seemed verbose but quickly changed my mind when **I started using it and realized the flexibility**. Many thanks for the great software! - `Michael Gliwinski <https://groups.google.com/d/msg/python-doit/7cD2RiBhB9c/FzrAWkVhEgUJ>`_
149
150 I love all the traditional unix power tools, like cron, make, perl, ..., I also like new comprehensive configuration management tools like CFEngine and Puppet. But **I find doit to be so versatile and so productive**. - `Charlie Guo <https://groups.google.com/d/msg/python-doit/JXElpPfcmmM/znvBT0OFhMYJ>`_
151
152 I went back and forth on different Pythonic build tools for awhile. Scons is pretty great if you're doing 'standard' sorts of builds, but I found it a little heavy for my tastes and really hard to customize to my tool flow (in FPGA land, there are all kinds of nonstandard vendor tools that all need to play together). I have been using doit more and more over the past few months, and I'm continually impressed by the tool (aside from the goofy name). **It works amazingly well for automating tricky/exotic build processes**. Check it out! `SkOink <http://news.slashdot.org/comments.pl?sid=4319575&cid=45085519>`_
153
154 I needed a sort of 'make' tool to glue things together and after trying out all kinds, **doit ... has actually turned out to be beautiful**. Its easy to add and manage tasks, even complex ones-- gluing things together with decorators and 'library' functions I have written to do certain similar things. - `Matthew <https://groups.google.com/d/msg/python-doit/eKI0uu02ZeY/cBU0RRsO0_cJ>`_
155
156 Some time ago, I grew frustrated with Make and Ant and started porting my build files to every build tool I found (SCons, Waf, etc.). Each time, as soon as I stepped out of already available rules, I ran into some difficult to overcome stumbling blocks. **Then I discovered this little gem of simplicity: doit**. It's Python-based. It does not try to be smart, it does not try to be cool, it just works. If you are looking for a flexible little build tool for different languages and tasks, give it a chance. (...) - `lelele <http://www.hnsearch.com/search#request/all&q=python-doit.sourceforge.net&start=0>`_
157
158
159 `Success Stories... <stories.html>`_
160
161 Project Details
162 ===============
163
164 * **LICENSE** This is an open-source project
165 (`MIT license <http://opensource.org/licenses/mit-license.php>`_)
166 written in python. Runs on Python 3.4 through 3.6 (including PyPy support). For python 2 support please use *doit* version 0.29.
167
168 * **DOWNLOAD** from `PyPi <http://pypi.python.org/pypi/doit>`_
169
170 * **CONTRIBUTE** Please check the community `guidelines <https://github.com/pydoit/doit/blob/master/CONTRIBUTING.md>`_ before asking questions and reporting issues.
171
172 * **DEVELOP** Project management (bug tracker, feature requests and source code ) on `github <https://github.com/pydoit/doit>`_.
173
174 * **QUESTIONS** on `StackOverflow <https://stackoverflow.com/questions/tagged/doit>`_, use tag `doit`.
175
176 * **FORUM** (questions/feedback/discussion) on `Google group <http://groups.google.co.in/group/python-doit>`_. Please do **not** send questions to my private email.
177
178 * `doit projects <https://github.com/pydoit/doit/wiki/powered-by-doit>`_ contains a collection of third-party projects, plugins, extensions, non-trivial examples and re-usable task creators for `doit`.
179
180 * This web site is hosted on http://pages.github.com
181
182 * Professional support and consulting services available from `doit`
183 creator & maintainer (*schettino72* at gmail.com).
184
185
186
187 Status
188 ======
189
190 This blog `post <http://schettino72.wordpress.com/2008/04/14/doit-a-build-tool-tale/>`_ explains how everything started in 2008.
191
192 `doit` is under active development. Version 0.31 released on 2018-02.
193
194 `doit` core features are quite stable. If there is no recent development,
195 it does NOT mean `doit` is not being maintained...
196 The project has 100% unit-test code coverage.
197
198 Development is done based on real world use cases.
199 It is well designed and has a small code base,
200 so adding new features is not hard. Contributions are welcome.