* [gentoo-dev] gentoolkit - python framework...
@ 2002-02-27 20:27 Zach Forrest
0 siblings, 0 replies; 2+ messages in thread
From: Zach Forrest @ 2002-02-27 20:27 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1335 bytes --]
Good afternoon.
In an endevour to become better aquainted with Python, I've written some
code* that may be of some use in writing tools for Gentoo. As an
example, I've rewritten qpkg to use the "framework" -- I used optik to
parse the commandline, so I had to simplify some of the option names,
but most of the functionality should still be there. (I should note that
the command for getting package info is a little slow at the moment. It
uses the EPackage class, derived from Package, which is able to provide
a great deal more info, but, of course, that info takes longer to parse
out of the ebuild file. It would probably be beneficial to write a
lighter weight class that does less work.) Most of the code is well
documented which should be helpful to Python beginners (like me).
Feedback is *very* welcome. It's also my first "real" attempt at
constructing regular expressions, so please be kind. I haven't packaged
this up yet, so you just need to unpack the archive wherever you like.
Regards,
Zach
* Just the other day, I looked through the portage code (something I
haven't done in quite some time) and some of the work I've done is
fairly similar -- almost the same in some places. But, as this was a
personal exercise, I enjoyed the journey. This is not to say that there
is nothing useful to be found.
[-- Attachment #2: gentoolkit-0.1.tgz --]
[-- Type: application/octet-stream, Size: 26000 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* [gentoo-dev] gentoolkit - python framework...
@ 2002-02-27 23:55 Zach Forrest
0 siblings, 0 replies; 2+ messages in thread
From: Zach Forrest @ 2002-02-27 23:55 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1320 bytes --]
Good afternoon.
In an endevour to become better aquainted with Python, I've written some
code* that may be of some use in writing tools for Gentoo. As an
example, I've rewritten qpkg to use the "framework" -- I used optik to
parse the commandline, so I had to simplify some of the option names,
but most of the functionality should still be there. (I should note that
the command for getting package info is a little slow at the moment. It
uses the EPackage class, derived from Package, which is able to provide
a great deal more info, but, of course, that info takes longer to parse
out of the ebuild file. It would probably be beneficial to write a
lighter weight class that does less work.) Most of the code is well
documented which should be helpful to Python beginners (like me).
Feedback is *very* welcome. It's also my first "real" attempt at
constructing regular expressions, so please be kind. I haven't packaged
this up yet, so you just need to unpack the archive wherever you like.
Regards,
Zach
* Just the other day, I looked through the portage code (something I
haven't done in quite some time) and some of the work I've done is
fairly similar -- almost the same in some places. But, as this was a
personal exercise, I enjoyed the journey. This is not to say that there
is nothing useful to be found.
[-- Attachment #2: gentoolkit-0.1.tgz --]
[-- Type: application/octet-stream, Size: 26000 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-03-01 0:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-27 20:27 [gentoo-dev] gentoolkit - python framework Zach Forrest
-- strict thread matches above, loose matches on Subject: below --
2002-02-27 23:55 Zach Forrest
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox