pyramid_celery
pyramid_celery copied to clipboard
safely convert ini parameters to bool, int, list and dict
This will convert ini paramerts to bool or int if they can be.
Allows for max_tasks_per_child to be set as well as others for celery workers
fixes : https://github.com/sontek/pyramid_celery/issues/103
The latest push adds json5 as safely converted value.. json5 is a human friendly json parser (accepts both ' and " ) and other things. I could also use a python AST parser if you prefer
I feel literal_eval is better solution.
- Will only evaluate python literals .. no arbitrary code execution
- No new dependencies.
I agree, ast.literal_eval
is a better approach.
Just a ping to check if the patch is accepted
@kgk
I also didn't get any answer from @sontek with #102. It seems we will never get an official release...
If you want, I can add it to the list of combined improvements as a crim-ca/[email protected]
version.
@fmigneault please add to your list