File tree 1 file changed +18
-22
lines changed
1 file changed +18
-22
lines changed Original file line number Diff line number Diff line change @@ -236,46 +236,42 @@ you can write your own collectors or/and checkers.
236
236
237
237
// TOOD: add more detailed readme about it
238
238
239
- ```
239
+ .. code-block ::
240
240
241
- local/
242
- ├── requirements.txt
243
- ├── checkers
244
- │ └── custom_checker.py
245
- └── collectors
246
- └── custom_collector.py
247
-
248
- ```
241
+ local/
242
+ ├── requirements.txt
243
+ ├── checkers
244
+ │ └── custom_checker.py
245
+ └── collectors
246
+ └── custom_collector.py
249
247
250
248
You can create only checker or collector if you want so
251
249
252
250
2. Create `proxy_py/settings.py ` in current dir with the following content
253
251
254
- ```python3
255
-
256
- from ._settings import *
257
- from local.checkers.custom_checker import CustomChecker
252
+ .. code-block :: python3
258
253
259
- PROXY_CHECKERS = [CustomChecker]
254
+ from ._settings import *
255
+ from local.checkers.custom_checker import CustomChecker
260
256
261
- COLLECTORS_DIRS = ['local/collectors' ]
257
+ PROXY_CHECKERS = [CustomChecker ]
262
258
263
- ` ``
259
+ COLLECTORS_DIRS = ['local/collectors']
264
260
265
261
you can append your checker to PROXY_CHECKERS or COLLECTORS_DIRS instead of overriding to use built in ones as well, it's just normal python file.
266
262
See `proxy_py/_settings.py ` for more detailed instructions on options.
267
263
268
264
3. Follow the steps in "How to install?" but download this docker-compose config instead
269
265
270
- `` ` bash
271
- wget "https://raw.githubusercontent.com/DevAlone/proxy_py/master/docker-compose-with-local.yml"
272
- ` ``
266
+ .. code-block :: bash
267
+
268
+ wget " https://raw.githubusercontent.com/DevAlone/proxy_py/master/docker-compose-with-local.yml "
273
269
274
270
and run with command
275
271
276
- `` ` bash
277
- docker-compose -f docker-compose-with-local.yml up
278
- ` ``
272
+ .. code-block :: bash
273
+
274
+ docker-compose -f docker-compose-with-local.yml up
279
275
280
276
4. ...?
281
277
You can’t perform that action at this time.
0 commit comments