Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Is there any way to attach the deployement scenario in a Python object ?

It is possible to use pyinfra as a Python API, but this is not currently officially supported/may not follow semver, example: https://github.com/Fizzadar/pyinfra/blob/master/examples/api....

> How do I make a scenario pluggable? Reusable? Introspectable?

pyinfra comes with builtin support for packaging "deploys" as Python packages, see: https://pyinfra.readthedocs.io/en/v0.14.5/api/deploys.html, an example: https://github.com/Fizzadar/pyinfra-docker.



Thanks. I like the fact you can do a quick and dirty script, but the wrap it up in tasks if you want.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: