forked from shuhari/500lines-rewrite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
executable file
·156 lines (144 loc) · 5.46 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
#!/usr/bin/env python
"""
Web Server example.
"""
# Run Step 00: Basic Server
# from web_server.step00_basic_server import main; main()
# Run Step 01: Middlewares
# from web_server.step01_middlewares import main; main()
# Run Step 02: Static Files
# from web_server.step02_static_file import main; main()
# Run Step 03: Routing
# from web_server.step03_routing import main; main()
"""
Template Engine example.
"""
# Run Step 00: Simple Case
# from template_engine.step00_plain_text.test_template import main; main()
# Run Step 01: Variables
# from template_engine.step01_expr.test_template import main; main()
# Run Step 02: Filters
# from template_engine.step02_filter.test_template import main; main()
# Run Step 03: Comments
# from template_engine.step03_comment.test_template import main; main()
# Run Step 04: For Block
# from template_engine.step04_for_block.test_template import main; main()
# Run Step 04: If Block
# from template_engine.step05_if_block.test_template import main; main()
# Run Step 05: Performance Test
# from template_engine.step06_perf_test.perf_test import main; main()
"""
Continuous Integration example.
"""
# To run app:
# from ci import main; main()
# To run test:
# from ci.tests.artifact_test import main; main()
"""
Static Analysis
"""
# from static_analysis.main import main; main()
"""
A Simple Object Model
"""
# Run step 00: get/set field
# from objmodel.step00_get_set_field import test_objmodel; test_objmodel.main()
# Run step 01: get/set class field
# from objmodel.step01_get_set_class_field import test_objmodel; test_objmodel.main()
# Run step 02: is instance
# from objmodel.step02_is_instance import test_objmodel; test_objmodel.main()
# Run step 03: call method
# from objmodel.step03_call_method import test_objmodel; test_objmodel.main()
# Run step 04: meta object protocol
# from objmodel.step04_meta_protocol import test_objmodel; test_objmodel.main()
# Run step 05: memory optimize
# from objmodel.step05_mem_optimize import test_objmodel; test_objmodel.main()
"""
A Python Interpreter Written in Python
"""
# Run step 00: using dis
# from interpreter.step00_using_dis import main; main()
# Run step 01: implement add code
# from interpreter.step01_add import test_interpreter; test_interpreter.main()
# Run step 02: call function
# from interpreter.step02_call_func import test_interpreter; test_interpreter.main()
# Run step 03: if branch
# from interpreter.step03_if import test_interpreter; test_interpreter.main()
# Run step 04: globals
# from interpreter.step04_define_func import test_interpreter; test_interpreter.main()
# Run step 05: list comprehension
# from interpreter.step05_listcomp import test_interpreter; test_interpreter.main()
"""
Contingent
"""
# Run step 00: project cli
# from contingent.step00_cli import main; main()
# Run step 01: tasks pipeline
# from contingent.step01_tasks import main; main()
# Run step 02: parse rst file
# from contingent.step02_parse import main; main()
# Run tests of Step 02: parse rst file
# from contingent.step02_parse.tests import main; main()
# Run step 03: transform ast to code
# from contingent.step03_transform import main; main()
# Run tests of Step 03: transform ast to code
# from contingent.step03_transform.tests import main; main()
# Run step 04: link
# from contingent.step04_link import main; main()
# Run tests of Step 04: link
# from contingent.step04_link.tests import main; main()
# Run step 05: incremental
# from contingent.step05_incremental import main; main()
# Run tests of Step 05: incremental
# from contingent.step05_incremental.tests import main; main()
"""
DBDB
"""
# Run tests from Step 00: binary tree
# from data_store.step00_binary_tree.tests import main; main()
# Run tests from Step 01: ref
# from data_store.step01_ref.tests import main; main()
# Run tests from Step 02: storage
# from data_store.step02_storage.tests import main; main()
# Run tests from Step 03: serialize
# from data_store.step03_serialize.tests import main; main()
# Run tests from Step 04: db
# from data_store.step04_db.tests import main; main()
"""
Flow shop
"""
# Run tests from Step 00: read file
# from flow_shop.step00_reader.tests import main; main()
# Run tests from Step 01: plan
# from flow_shop.step01_plan.tests import main; main()
# Run Step 01: plan
# from flow_shop.step01_plan.plan import main; main()
# Run Step 02: strategies
# from flow_shop.step02_strategies import main; main()
# Run tests from Step 03: more strategies
# from flow_shop.step03_more_strategies.tests import main; main()
# Run Step 03: more strategies
# from flow_shop.step03_more_strategies import main; main()
# Run Step 04: pick strategy
# from flow_shop.step04_pick_strategy import main; main()
# Run tests in Step 05: caching
# from flow_shop.step05_caching.tests import main; main()
# Run Step 05: caching
# from flow_shop.step05_caching import main; main()
"""
Dagoba
"""
# Run tests from Step 00: database model
# from dagoba.step00_db_model.tests import main; main()
# Run tests from Step 01: manage primary key
# from dagoba.step01_primary_key.tests import main; main()
# Run tests from Step 02: eager query
# from dagoba.step02_eager_query.tests import main; main()
# Run tests from Step 03: two-way edge
# from dagoba.step03_twoway_edge.tests import main; main()
# Run tests from Step 04: lazy query
# from dagoba.step04_lazy_query.tests import main; main()
# Run tests from Step 05: node visits
# from dagoba.step05_node_visits.tests import main; main()
# Run tests from Step 06: custom pipeline
# from dagoba.step06_custom_pipeline.tests import main; main()