Hey,
the python API for ABRT is ready. Code lives at 'problem' branch and there is a pre-built package [0] with disabled requires you can install if you have latest ABRT installed.
Documentation is available as man 5 abrt-python or as HTML version [1].
Please test it and let me know about any issues you find.
[0] http://rmarko.fedorapeople.org/packages/abrt-python-2.0.19.89.g84da.dirty-1.... [1] http://rmarko.fedorapeople.org/abrt-python/
On 12/05/2012 09:17 PM, Richard Marko wrote:
Hey,
the python API for ABRT is ready. Code lives at 'problem' branch and there is a pre-built package [0] with disabled requires you can install if you have latest ABRT installed.
Documentation is available as man 5 abrt-python or as HTML version [1].
Please test it and let me know about any issues you find.
[0] http://rmarko.fedorapeople.org/packages/abrt-python-2.0.19.89.g84da.dirty-1.... [1] http://rmarko.fedorapeople.org/abrt-python/
class problem.Problem(typ, reason) - ^^^ "type"
- the problem specific classes seems odd, can I do just??:
import problem p = problem.Problem(type="ccpp", reason="Something crashed")
On 12/06/2012 08:36 AM, Jiri Moskovcak wrote:
On 12/05/2012 09:17 PM, Richard Marko wrote:
Hey,
the python API for ABRT is ready. Code lives at 'problem' branch and there is a pre-built package [0] with disabled requires you can install if you have latest ABRT installed.
Documentation is available as man 5 abrt-python or as HTML version [1].
Please test it and let me know about any issues you find.
[0] http://rmarko.fedorapeople.org/packages/abrt-python-2.0.19.89.g84da.dirty-1....
class problem.Problem(typ, reason)
^^^ "type"
This is intentional due to built-in type function, tools would complain otherwise.
- the problem specific classes seems odd
They are just shortcuts passing respective type to Problem class.
, can I do just??:
import problem p = problem.Problem(type="ccpp", reason="Something crashed")
No, that's not a good idea because we internally use 'CCpp' and these identifiers might change in the future. It's better to use
p = problem.Problem(problem.CCPP, reason="Something crashed")
or the shortcut
p = problem.Ccpp("Something crashed")
On 12/05/2012 09:17 PM, Richard Marko wrote:
Hey,
the python API for ABRT is ready. Code lives at 'problem' branch and there is a pre-built package [0] with disabled requires you can install if you have latest ABRT installed.
Documentation is available as man 5 abrt-python or as HTML version [1].
Please test it and let me know about any issues you find.
Updated version available at 'problem' branch adding support for dump dirs and new problem notifications.
[0] http://rmarko.fedorapeople.org/packages/abrt-python-2.0.19.101.g4aa3.dirty-1... [1] http://rmarko.fedorapeople.org/abrt-python/
crash-catcher@lists.fedorahosted.org