Python bindings for Foreman API

Hi everyone!

I just wanted to let you know that I recently published a small python bindings
for the Foreman API, it's not widely tested but is what we are using at work, so
it should fairly stable in a short period of time.

And of course, ask for your opinion, good or bad about it and missing features
you'd like to see.

Any patches are really welcome.

https://pypi.python.org/pypi/python-foreman

Thanks!

··· -- David Caro

Red Hat S.L.
Continuous Integration Engineer - EMEA ENG Virtualization R&D

Email: dcaro@redhat.com
Web: www.redhat.com
RHT Global #: 82-62605

Outstanding work, thank you!

Out of my curiosity, are the definitions generated, or you made this by
hand? Because folks are generating those for Ruby somehow I think.

LZ

··· On Mon, Nov 25, 2013 at 04:13:05PM +0100, David Caro Estevez wrote: > Hi everyone! > > I just wanted to let you know that I recently published a small python bindings > for the Foreman API, it's not widely tested but is what we are using at work, so > it should fairly stable in a short period of time. > > And of course, ask for your opinion, good or bad about it and missing features > you'd like to see. > > Any patches are really welcome. > > https://pypi.python.org/pypi/python-foreman > > Thanks! > > -- > David Caro > > Red Hat S.L. > Continuous Integration Engineer - EMEA ENG Virtualization R&D > > Email: dcaro@redhat.com > Web: www.redhat.com > RHT Global #: 82-62605 >


Later,

Lukas “lzap” Zapletal
irc: lzap #theforeman

They are autogenerated from the api help page (Ugly I know, but better
than written by hand).
There are a couple methods to update them manually, if you have to, you
can also change them yourself, they are just a big python dict inside a
module file (definitions.py).

··· On Mon 25 Nov 2013 04:25:42 PM CET, Lukas Zapletal wrote: > Outstanding work, thank you! > > Out of my curiosity, are the definitions generated, or you made this by > hand? Because folks are generating those for Ruby somehow I think. > > LZ > > On Mon, Nov 25, 2013 at 04:13:05PM +0100, David Caro Estevez wrote: >> Hi everyone! >> >> I just wanted to let you know that I recently published a small python bindings >> for the Foreman API, it's not widely tested but is what we are using at work, so >> it should fairly stable in a short period of time. >> >> And of course, ask for your opinion, good or bad about it and missing features >> you'd like to see. >> >> Any patches are really welcome. >> >> https://pypi.python.org/pypi/python-foreman >> >> Thanks! >> >> -- >> David Caro >> >> Red Hat S.L. >> Continuous Integration Engineer - EMEA ENG Virtualization R&D >> >> Email: dcaro@redhat.com >> Web: www.redhat.com >> RHT Global #: 82-62605 >> > > >


David Caro

Red Hat S.L.
Continuous Integration Engineer - EMEA ENG Virtualization R&D

Email: dcaro@redhat.com
Web: www.redhat.com
RHT Global #: 82-62605

>> Outstanding work, thank you!
>>
>> Out of my curiosity, are the definitions generated, or you made this by
>> hand? Because folks are generating those for Ruby somehow I think.
>>
>> LZ
>>
>>> Hi everyone!
>>>
>>> I just wanted to let you know that I recently published a small python bindings
>>> for the Foreman API, it's not widely tested but is what we are using at work, so
>>> it should fairly stable in a short period of time.
>>>
>>> And of course, ask for your opinion, good or bad about it and missing features
>>> you'd like to see.
>>>
>>> Any patches are really welcome.
>>>
>>> https://pypi.python.org/pypi/python-foreman
>>>
>>> Thanks!
>>>
>>> –
>>> David Caro
>>>
>>> Red Hat S.L.
>>> Continuous Integration Engineer - EMEA ENG Virtualization R&D
>>>
>>> Email: dcaro@redhat.com
>>> Web: www.redhat.com
>>> RHT Global #: 82-62605
>>>
>>
>>
>>
>
> They are autogenerated from the api help page (Ugly I know, but better
> than written by hand).
> There are a couple methods to update them manually, if you have to, you
> can also change them yourself, they are just a big python dict inside a
> module file (definitions.py).

Nice! Btw you don't have to parse html docs. They are available also in
json. Try hitting <YOUR_FOREMAN_SERVER_URL>/apidoc.json

Note you may need to set use_cache to false in apipie initializer if
your foreman is running in production.

T.

··· On 11/25/2013 04:28 PM, David Caro wrote: > On Mon 25 Nov 2013 04:25:42 PM CET, Lukas Zapletal wrote: >> On Mon, Nov 25, 2013 at 04:13:05PM +0100, David Caro Estevez wrote:


David Caro

Red Hat S.L.
Continuous Integration Engineer - EMEA ENG Virtualization R&D

Email: dcaro@redhat.com
Web: www.redhat.com
RHT Global #: 82-62605